Compare commits

..
124 Commits
Author SHA1 Message Date
dependabot[bot] 9c971963be Bump the github-actions group across 2 directories with 9 updates (#1024)
Bumps the github-actions group with 9 updates in the / directory:

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

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

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

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

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

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

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

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

_Description has been truncated_

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

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

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


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

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

---

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

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


</details>

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

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

## 1. Bump Gradle Wrapper from 9.5.1 to 9.6.1

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

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

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

## 2. Update known wrapper checksums

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

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

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

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

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

## Verification

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

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

Original bot authorship is preserved on all three commits.

## Superseded PRs

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

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

---------

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

## 1. Adjust dependabot's TypeScript choices

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

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

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

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

## 2. Clear 5 open security advisories

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

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

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

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

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

## 3. Downgrade nock to 14.0.17

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

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

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

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

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

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

## 5. Run CI workflows on Node 24

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

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

## Verification

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

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

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

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

## Not included

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

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

---------

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

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

## Layout

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

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

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

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

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

## Notes

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

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

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

## Verification

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

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

---------

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

## Root cause

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

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

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

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

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

## Changes

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

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

## Not related to #1013

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

## Verification

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

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

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

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

## What

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

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

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

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

## Expected result

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

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

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

---------

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

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

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

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

(`ForceDependencyResolutionPlugin` is not IP-compatible.)

## Fix

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

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

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

---------

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

## What's here

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

## Cross-repo dependency

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

## Verification

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

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

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

## Motivation

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

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

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

## What changed

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

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

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

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

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

## Testing

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

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

---------

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

## Changes

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

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

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

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

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

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

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

---------

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

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

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

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

Implements #176

---------

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

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

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

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

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

## 1. Remove redundant security overrides

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

## 2. Remove obsolete Octokit/Azure overrides

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

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

## Verification

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

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

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

---------

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

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

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

## Notes

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

## Verification

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

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

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

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

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

## Why

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

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

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

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

## Verification

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

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

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

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

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

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

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

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

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

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

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

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


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

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

---

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

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


</details>

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

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


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

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

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

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

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

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

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

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

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

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

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

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

_Description has been truncated_

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

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

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

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

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

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

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

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

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

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

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

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

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

_Description has been truncated_

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

---------

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

Dependency Updates:

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

Bug Fix:

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

CI/CD Workflow Update:

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

---------

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

**Gradle and Develocity plugin updates:**

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

**GitHub Actions workflow updates:**

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

**JavaScript/TypeScript dependency updates:**

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


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

Updates `github/codeql-action` from 4.33.0 to 4.34.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/b1bff81932f5cdfc8695c7752dcee935dcd061c8...38697555549f1db7851b81482ff19f1fa5c4fedc)

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

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


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

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

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

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

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

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


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

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

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

---

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

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


</details>

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

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

**Type descriptor files for GitHub Actions:**

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

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

**Automation and validation:**

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

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

**Type descriptor files for GitHub Actions:**

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

**Automation and validation:**

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

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


Updates `github/codeql-action` from 4.32.6 to 4.33.0
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/0d579ffd059c29b07949a3cce3983f0780820c98...b1bff81932f5cdfc8695c7752dcee935dcd061c8)

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

Updates `github/codeql-action` from 4.32.4 to 4.32.6
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/89a39a4e59826350b863aa6b6252a07ad50cf83e...0d579ffd059c29b07949a3cce3983f0780820c98)

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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


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

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

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

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

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

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

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


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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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


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

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

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

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

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

---------

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

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

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

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

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

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

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


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

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

---

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

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


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


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

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

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-26 23:04:42 +00:00
156 changed files with 5791 additions and 7490 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/
+2 -2
View File
@@ -10,7 +10,7 @@ runs:
using: "composite"
steps:
- name: Setup Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
with:
distribution: 'temurin'
java-version: ${{ inputs.java-version }}
@@ -23,7 +23,7 @@ runs:
# Downloads a 'dist' directory artifact that was uploaded in an earlier 'build-dist' step
- name: Download dist
if: ${{ env.SKIP_DIST != 'true' && !env.ACT }}
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: dist
path: dist/
+4 -5
View File
@@ -16,11 +16,10 @@ updates:
patterns:
- "*"
ignore:
# Keep actions/cache and actions/artifact major aligned and force actions/cache version to match patch
- dependency-name: "*actions/cache*"
- dependency-name: "*actions/artifact*"
update-types: ["version-update:semver-major", "version-update:semver-minor"]
- dependency-name: "typescript"
versions: ["7.x"]
- dependency-name: "@types/node"
versions: ["25.x", "26.x"]
- package-ecosystem: "github-actions"
# github-actions with directory: "/" only monitors .github/workflows
# https://github.com/dependabot/dependabot-core/issues/6345
+3
View File
@@ -3,3 +3,6 @@
# Ignore Gradle build output directory
build
# Marker file written when the 'test' task is configured
task-configured.txt
@@ -1,8 +1,10 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=b266d5ff6b90eada6dc3b20cb090e3731302e553a27c5d3e4df1f0d76beaff06
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
distributionSha256Sum=9c0f7faeeb306cb14e4279a3e084ca6b596894089a0638e68a07c945a32c9e14
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
@@ -20,7 +20,7 @@
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
# gradlew start up script for POSIX generated by Gradle.
#
# Important for running:
#
@@ -29,7 +29,7 @@
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
# ksh gradlew
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -19,12 +19,12 @@
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem gradlew startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@@ -51,7 +51,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -65,29 +65,18 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:execute
@rem Setup the command line
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
@rem Execute gradlew
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
@@ -1,8 +1,10 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=b266d5ff6b90eada6dc3b20cb090e3731302e553a27c5d3e4df1f0d76beaff06
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
distributionSha256Sum=9c0f7faeeb306cb14e4279a3e084ca6b596894089a0638e68a07c945a32c9e14
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
+3 -3
View File
@@ -20,7 +20,7 @@
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
# gradlew start up script for POSIX generated by Gradle.
#
# Important for running:
#
@@ -29,7 +29,7 @@
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
# ksh gradlew
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
+12 -23
View File
@@ -19,12 +19,12 @@
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem gradlew startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@@ -51,7 +51,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -65,29 +65,18 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:execute
@rem Setup the command line
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
@rem Execute gradlew
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.3.2"
id "com.gradle.develocity" version "4.5.0"
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=9c0f7faeeb306cb14e4279a3e084ca6b596894089a0638e68a07c945a32c9e14
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
@@ -20,7 +20,7 @@
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
# gradlew start up script for POSIX generated by Gradle.
#
# Important for running:
#
@@ -29,7 +29,7 @@
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
# ksh gradlew
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -19,12 +19,12 @@
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem gradlew startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@@ -51,7 +51,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -65,29 +65,18 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:execute
@rem Setup the command line
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
@rem Execute gradlew
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
@@ -1,8 +1,10 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=b266d5ff6b90eada6dc3b20cb090e3731302e553a27c5d3e4df1f0d76beaff06
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
distributionSha256Sum=9c0f7faeeb306cb14e4279a3e084ca6b596894089a0638e68a07c945a32c9e14
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
+3 -3
View File
@@ -20,7 +20,7 @@
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
# gradlew start up script for POSIX generated by Gradle.
#
# Important for running:
#
@@ -29,7 +29,7 @@
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
# ksh gradlew
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
+12 -23
View File
@@ -19,12 +19,12 @@
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem gradlew startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@@ -51,7 +51,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -65,29 +65,18 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:execute
@rem Setup the command line
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
@rem Execute gradlew
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
@@ -1,5 +1,5 @@
plugins {
id("com.gradle.develocity") version "4.3.2"
id("com.gradle.develocity") version "4.5.0"
id("com.gradle.common-custom-user-data-gradle-plugin") version "2.4.0"
}
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.3.2"
id "com.gradle.develocity" version "4.5.0"
}
develocity {
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.3.2"
id "com.gradle.develocity" version "4.5.0"
}
develocity {
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.3.2"
id "com.gradle.develocity" version "4.5.0"
}
develocity {
+4 -4
View File
@@ -18,15 +18,15 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 20
node-version: 24
cache: npm
cache-dependency-path: sources/package-lock.json
- name: Setup Gradle
# Use a released version to avoid breakages
uses: gradle/actions/setup-gradle@f29f5a9d7b09a7c6b29859002d29d24e1674c884 # v5.0.1
uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0
env:
ALLOWED_GRADLE_WRAPPER_CHECKSUMS: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 # Invalid wrapper jar used for testing
with:
@@ -15,13 +15,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@7dee1b0c1557f278e5c7dc244927139d78c0e22a # v47.0.4
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
with:
files: |
dist/**
+3 -3
View File
@@ -31,11 +31,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@89a39a4e59826350b863aa6b6252a07ad50cf83e # v3.29.5
uses: github/codeql-action/init@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # 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@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v3.29.5
+21 -7
View File
@@ -8,10 +8,6 @@ on:
paths-ignore:
- 'dist/**'
pull_request:
paths:
- '.github/workflows/ci-init-script-check.yml'
- 'sources/src/resources/init-scripts/**'
- 'sources/test/init-scripts/**'
workflow_dispatch:
permissions:
@@ -22,17 +18,35 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
# Detect whether anything relevant to the init-script tests changed.
# The workflow always runs (so it always reports a status check, making it safe
# to mark as required), but the heavy steps below are skipped on pull requests
# that don't touch the init-scripts. Pushes and manual runs always execute fully.
- name: Check for relevant changes
id: changes
if: github.event_name == 'pull_request'
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
with:
files: |
.github/workflows/ci-init-script-check.yml
sources/src/resources/init-scripts/**
sources/test/init-scripts/**
- name: Setup Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
if: steps.changes.outputs.any_changed == 'true' || github.event_name != 'pull_request'
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.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@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.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
+27 -8
View File
@@ -5,35 +5,54 @@ on:
push:
branches:
- 'main'
- 'bot/gradle-actions-caching'
paths:
- 'dist/**'
concurrency:
group: integ-test
cancel-in-progress: false
- 'sources/vendor/gradle-actions-caching/**'
permissions:
contents: read
jobs:
smoke-tests:
uses: ./.github/workflows/suite-smoke-test-caching.yml
concurrency:
group: CI-smoke-test-caching
cancel-in-progress: false
with:
skip-dist: true
runner-os: '["ubuntu-latest", "windows-latest"]'
secrets: inherit
caching-integ-tests:
uses: ./.github/workflows/suite-integ-test-caching.yml
concurrency:
group: CI-integ-test-full
group: CI-integ-test-caching
cancel-in-progress: false
with:
runner-os: '["ubuntu-latest", "windows-latest", "macos-latest"]'
skip-dist: true
secrets: inherit
other-integ-tests:
permissions:
contents: write
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
+54 -7
View File
@@ -11,10 +11,6 @@ on:
paths-ignore:
- 'dist/**'
concurrency:
group: integ-test
cancel-in-progress: false
permissions:
contents: read
@@ -23,14 +19,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build and upload distribution
if: ${{ needs.determine-suite.outputs.suite != 'full' }}
uses: ./.github/actions/build-dist
smoke-tests:
needs: build-distribution
uses: ./.github/workflows/suite-smoke-test-caching.yml
concurrency:
group: CI-smoke-test-caching-${{ github.ref }}
cancel-in-progress: false
with:
skip-dist: false
runner-os: '["ubuntu-latest", "windows-latest"]'
secrets: inherit
caching-integ-tests:
needs: build-distribution
uses: ./.github/workflows/suite-integ-test-caching.yml
concurrency:
group: CI-integ-test-caching-${{ github.ref }}
cancel-in-progress: false
with:
skip-dist: false
secrets: inherit
@@ -38,8 +47,46 @@ 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
- smoke-tests
- caching-integ-tests
- other-integ-tests
- dependency-submission-integ-tests
runs-on: ubuntu-latest
steps:
- name: Fail if any integ-test job failed or was cancelled
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: |
echo "One or more integ-test jobs did not succeed:"
echo " build-distribution: ${{ needs.build-distribution.result }}"
echo " smoke-tests: ${{ needs.smoke-tests.result }}"
echo " caching-integ-tests: ${{ needs.caching-integ-tests.result }}"
echo " other-integ-tests: ${{ needs.other-integ-tests.result }}"
echo " dependency-submission-integ-tests: ${{ needs.dependency-submission-integ-tests.result }}"
exit 1
+3 -9
View File
@@ -21,13 +21,13 @@ jobs:
steps:
- name: 'Checkout code'
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
show-progress: false
- name: 'Run analysis'
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4
with:
results_file: results.sarif
results_format: sarif
@@ -44,14 +44,8 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: 'Upload artifact'
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: SARIF file
path: results.sarif
retention-days: 5
# Upload the results to GitHub's code scanning dashboard.
- name: 'Upload to code-scanning'
uses: github/codeql-action/upload-sarif@89a39a4e59826350b863aa6b6252a07ad50cf83e # v3.29.5
with:
sarif_file: results.sarif
+5 -5
View File
@@ -23,14 +23,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 20
node-version: 24
cache: npm
cache-dependency-path: sources/package-lock.json
@@ -61,7 +61,7 @@ jobs:
cp -r sources/dist .
- name: Import GPG key to sign commits
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0
with:
gpg_private_key: ${{ secrets.GH_BOT_PGP_PRIVATE_KEY }}
passphrase: ${{ secrets.GH_BOT_PGP_PASSPHRASE }}
@@ -73,7 +73,7 @@ jobs:
# Important: The push event will not trigger any other workflows, see
# https://github.com/stefanzweifel/git-auto-commit-action?tab=readme-ov-file#commits-made-by-this-action-do-not-trigger-new-workflow-runs
- name: Commit & push changes
uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
uses: stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7.2.0
with:
commit_author: bot-githubaction <bot-githubaction@gradle.com>
commit_user_name: bot-githubaction
+24
View File
@@ -0,0 +1,24 @@
name: ci-validate-typings.yml
on:
push:
branches:
- 'main'
- 'release/**'
paths-ignore:
- 'dist/**'
pull_request:
permissions:
contents: read
jobs:
validate-typings:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: typesafegithub/github-actions-typing@9ddf35b71a482be7d8922b28e8d00df16b77e315 # v2.2.2
with:
ignored-action-files: |
.github/actions/build-dist/action.yml
.github/actions/init-integ-test/action.yml
action.yml
+2 -2
View File
@@ -11,7 +11,7 @@ jobs:
validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: gradle/actions/wrapper-validation@f29f5a9d7b09a7c6b29859002d29d24e1674c884 # v5.0.1
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: gradle/actions/wrapper-validation@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build and upload distribution
uses: ./.github/actions/build-dist
@@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -62,7 +62,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -82,7 +82,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -103,7 +103,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -114,3 +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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-disabled: true
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew assemble
basic-caching:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-provider: basic
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew assemble
terms-of-use-accepted:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
build-scan-terms-of-use-url: https://gradle.com/help/legal-terms-of-use
build-scan-terms-of-use-agree: yes
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew assemble
develocity-access-key-set:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
develocity-access-key: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew assemble
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build and upload distribution
uses: ./.github/actions/build-dist
@@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -42,7 +42,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -62,7 +62,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -41,7 +41,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -62,7 +62,7 @@ jobs:
run: gradle help
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -32,7 +32,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -41,7 +41,7 @@ jobs:
with:
cache-read-only: false # For testing, allow writing cache entries on non-default branches
- name: Build with 3.1
working-directory: sources/test/jest/resources/cache-cleanup
working-directory: .github/workflow-samples/cache-cleanup
run: ./gradlew --no-daemon --build-cache -Dcommons_math3_version="3.1" build
# Second build will use the cache from the first build, but cleanup should remove unused artifacts
@@ -57,7 +57,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -67,7 +67,7 @@ jobs:
cache-read-only: false
cache-cleanup: 'on-success'
- name: Build with 3.1.1
working-directory: sources/test/jest/resources/cache-cleanup
working-directory: .github/workflow-samples/cache-cleanup
run: ./gradlew --no-daemon --build-cache -Dcommons_math3_version="3.1.1" build
# Third build will restore cache entry from second, and verify stale content removed
@@ -83,7 +83,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -62,7 +62,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -91,7 +91,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -105,7 +105,7 @@ jobs:
run: ./gradlew help
- name: Check Build Scan url is captured
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -115,7 +115,7 @@ jobs:
runs-on: ubuntu-latest # This test only runs on Ubuntu
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -129,7 +129,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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -26,7 +26,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -45,7 +45,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -62,7 +62,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -80,7 +80,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -123,7 +123,7 @@ jobs:
runs-on: ubuntu-latest # Test is not compatible with Windows
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -160,7 +160,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -178,7 +178,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Download dependency-graph artifact
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
path: downloaded-dependency-graphs
pattern: dependency-graph_*dependency-graph-generate-submit-and-upload.json
@@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -55,7 +55,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -86,7 +86,7 @@ jobs:
contents: read
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -33,7 +33,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -58,7 +58,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -82,7 +82,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -104,7 +104,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -124,7 +124,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -172,7 +172,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -193,7 +193,7 @@ jobs:
runs-on: ubuntu-latest # Test is not compatible with Windows
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -255,7 +255,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -272,7 +272,7 @@ jobs:
runs-on: ubuntu-latest # Test is not compatible with Windows
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -309,7 +309,7 @@ jobs:
runs-on: ubuntu-latest # Test is not compatible with Windows
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -350,7 +350,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -382,7 +382,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -401,7 +401,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -60,17 +60,17 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Java 16
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
with:
distribution: 'temurin'
java-version: 16
- name: Setup Java 20
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
with:
distribution: 'temurin'
java-version: 20
@@ -30,7 +30,7 @@ jobs:
matrix:
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: ['3.16.2', '4.3.2']
plugin-version: ['3.16.2', '4.5.0']
include:
- java-version: 17
- gradle: '8.14.3'
@@ -43,7 +43,7 @@ jobs:
java-version: 11
- plugin-version: '3.16.2'
accessKeyEnv: GRADLE_ENTERPRISE_ACCESS_KEY
- plugin-version: '4.3.2'
- plugin-version: '4.5.0'
accessKeyEnv: DEVELOCITY_ACCESS_KEY
runs-on: ${{ matrix.os }}
env:
@@ -55,7 +55,7 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -72,7 +72,7 @@ jobs:
run: gradle help
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -92,7 +92,7 @@ jobs:
matrix:
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: ['3.16.2', '4.3.2']
plugin-version: ['3.16.2', '4.5.0']
include:
- java-version: 17
- gradle: '8.14.3'
@@ -106,7 +106,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -129,7 +129,7 @@ jobs:
run: "[ ${#GRADLE_ENTERPRISE_ACCESS_KEY} -gt 500 ] || (echo 'GRADLE_ENTERPRISE_ACCESS_KEY does not look like a short lived token'; exit 1)"
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -148,7 +148,7 @@ jobs:
matrix:
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: [ '3.16.2', '4.3.2' ]
plugin-version: [ '3.16.2', '4.5.0' ]
include:
- java-version: 17
- gradle: '8.14.3'
@@ -162,7 +162,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -191,7 +191,7 @@ jobs:
matrix:
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: [ '3.16.2', '4.3.2' ]
plugin-version: [ '3.16.2', '4.5.0' ]
include:
- java-version: 17
- gradle: '8.14.3'
@@ -205,7 +205,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -225,7 +225,7 @@ jobs:
run: gradle help
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -33,7 +33,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -56,7 +56,7 @@ jobs:
run: gradle help "-DgradleVersionCheck=7.1.1"
# Configure JDK 17 for Gradle 9 and later
- name: Setup Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
with:
distribution: temurin
java-version: 17
@@ -77,7 +77,7 @@ jobs:
run: gradle help
- name: Check current version output parameter
if: ${{ !startsWith(steps.gradle-current.outputs.gradle-version , '9.') }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('Gradle version parameter not set correctly: value was "${{ steps.gradle-current.outputs.gradle-version }}"')
@@ -105,12 +105,12 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
with:
distribution: temurin
java-version: ${{ matrix.java-version }}
@@ -122,7 +122,7 @@ jobs:
gradle-version: ${{ matrix.gradle }}
- name: Check output parameter
if: ${{ steps.setup-gradle.outputs.gradle-version != matrix.gradle }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('Gradle version parameter not set correctly: value was "${{ steps.setup-gradle.outputs.gradle-version }}"')
@@ -132,7 +132,7 @@ jobs:
run: gradle help "-DgradleVersionCheck=${{matrix.gradle}}"
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -1,235 +0,0 @@
name: Test restore configuration-cache
on:
workflow_call:
inputs:
cache-key-prefix:
type: string
default: '0'
runner-os:
type: string
default: '["ubuntu-latest"]'
skip-dist:
type: boolean
default: false
secrets:
GRADLE_ENCRYPTION_KEY:
required: true
env:
SKIP_DIST: ${{ inputs.skip-dist }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: restore-configuration-cache-${{ inputs.cache-key-prefix }}
permissions:
contents: read
jobs:
restore-cc-seed-build-groovy:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-groovy
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: false # For testing, allow writing cache entries on non-default branches
cache-write-only: true # Ensure we start with a clean cache entry
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Groovy build with configuration-cache enabled
working-directory: .github/workflow-samples/groovy-dsl
run: gradle test --configuration-cache
restore-cc-verify-build-groovy:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-groovy
GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION: ${{github.sha}}_1
needs: restore-cc-seed-build-groovy
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: false
cache-cleanup: on-success
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Groovy build with configuration-cache enabled
id: execute
working-directory: .github/workflow-samples/groovy-dsl
run: gradle test --configuration-cache
- name: Verify configuration-cache hit
shell: bash
run: |
if [ -e ".github/workflow-samples/groovy-dsl/task-configured.txt" ]; then
echo "Configuration cache was not used - task was configured unexpectedly"
exit 1
fi
# Ensure that cache-cleanup doesn't remove all necessary files
restore-cc-verify-no-cache-cleanup-groovy:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-groovy
GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION: ${{github.sha}}_2
needs: restore-cc-verify-build-groovy
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: true
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Groovy build with configuration-cache enabled
id: execute
working-directory: .github/workflow-samples/groovy-dsl
run: gradle test --configuration-cache
- name: Verify configuration-cache hit
shell: bash
run: |
if [ -e ".github/workflow-samples/groovy-dsl/task-configured.txt" ]; then
echo "Configuration cache was not used - task was configured unexpectedly"
exit 1
fi
# Check that the build can run when no extracted cache entries are restored
restore-cc-gradle-user-home-not-fully-restored:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-groovy
GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION: ${{github.sha}}_x
needs: restore-cc-seed-build-groovy
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle with no extracted cache entries restored
uses: ./setup-gradle
env:
GRADLE_BUILD_ACTION_SKIP_RESTORE: "generated-gradle-jars|wrapper-zips|java-toolchains|instrumented-jars|dependencies|kotlin-dsl"
with:
cache-read-only: true
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Check execute Gradle build with configuration cache enabled (but not restored)
working-directory: .github/workflow-samples/groovy-dsl
run: gradle test --configuration-cache
restore-cc-seed-build-kotlin:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-kotlin
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: false # For testing, allow writing cache entries on non-default branches
cache-write-only: true # Ensure we start with a clean cache entry
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Execute 'help' with configuration-cache enabled
working-directory: .github/workflow-samples/kotlin-dsl
run: gradle help --configuration-cache
restore-cc-modify-build-kotlin:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-kotlin
GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION: ${{github.sha}}_1
needs: restore-cc-seed-build-kotlin
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: false # For testing, allow writing cache entries on non-default branches
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Execute 'test' with configuration-cache enabled
working-directory: .github/workflow-samples/kotlin-dsl
run: gradle test --configuration-cache
# Test restore configuration-cache from the third build invocation
restore-cc-verify-build-kotlin:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-kotlin
GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION: ${{github.sha}}_2
needs: restore-cc-modify-build-kotlin
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: true
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Execute 'test' again with configuration-cache enabled
id: execute
working-directory: .github/workflow-samples/kotlin-dsl
run: gradle test --configuration-cache
- name: Verify configuration-cache hit
shell: bash
run: |
if [ -e ".github/workflow-samples/kotlin-dsl/task-configured.txt" ]; then
echo "Configuration cache was not used - task was configured unexpectedly"
exit 1
fi
@@ -24,7 +24,7 @@ jobs:
container: fedora:latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -43,7 +43,7 @@ jobs:
container: fedora:latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -67,7 +67,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -31,7 +31,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -43,29 +43,6 @@ jobs:
working-directory: .github/workflow-samples/groovy-dsl
run: ./gradlew test
# Test that the gradle-user-home cache will cache dependencies, by running build with --offline
restore-gradle-home-dependencies-cache:
needs: restore-gradle-home-seed-build
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: true
- name: Execute Gradle build with --offline
working-directory: .github/workflow-samples/groovy-dsl
run: ./gradlew test --offline
# Test that the gradle-user-home cache will cache and restore local build-cache
restore-gradle-home-build-cache:
needs: restore-gradle-home-seed-build
@@ -77,7 +54,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -100,7 +77,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -125,7 +102,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -31,7 +31,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -56,7 +56,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -52,7 +52,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -52,7 +52,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -12,6 +12,7 @@ on:
env:
SKIP_DIST: ${{ inputs.skip-dist }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: wrapper-validation- # Avoid loading cache entries from other tests, that may have cached allowed wrapper checksums
permissions:
contents: read
@@ -25,7 +26,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -48,7 +49,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -77,7 +78,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -110,7 +111,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
sparse-checkout: |
.github
dist
wrapper-validation
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -118,10 +125,8 @@ jobs:
id: action-test
uses: ./wrapper-validation
with:
# to allow the invalid wrapper jar present in test data
allow-checksums: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
min-wrapper-count: 11
# Expected to fail; validated below
min-wrapper-count: 7
# There are only 6 wrappers in workflow-samples, so expected to fail
continue-on-error: true
- name: Check outcome
@@ -140,7 +145,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4.2.2 # Checkout the repository with no wrappers
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4.2.2 # Checkout the repository with no wrappers
with:
sparse-checkout: |
.github/actions
@@ -0,0 +1,70 @@
name: Smoke test basic caching
on:
workflow_call:
inputs:
cache-key-prefix:
type: string
default: '0'
runner-os:
type: string
default: '["ubuntu-latest"]'
skip-dist:
type: boolean
default: false
env:
SKIP_DIST: ${{ inputs.skip-dist }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: smoke-test-basic-caching-${{ inputs.cache-key-prefix }}
permissions:
contents: read
jobs:
basic-cache-seed-build:
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle with basic cache provider
uses: ./setup-gradle
with:
cache-provider: basic
cache-read-only: false # For testing, allow writing cache entries on non-default branches
# Basic caching does no daemon management, so the workflow must ensure no daemon is left
# holding locks on the Gradle User Home when the post-action save runs. Without this, `tar`
# cannot read the Gradle '*.lock' files on Windows and the cache entry is never saved.
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew build --no-daemon
basic-cache-verify-build:
needs: basic-cache-seed-build
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle with basic cache provider
uses: ./setup-gradle
with:
cache-provider: basic
cache-read-only: true
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew build --offline
@@ -0,0 +1,67 @@
name: Smoke test enhanced caching
on:
workflow_call:
inputs:
cache-key-prefix:
type: string
default: '0'
runner-os:
type: string
default: '["ubuntu-latest"]'
skip-dist:
type: boolean
default: false
env:
SKIP_DIST: ${{ inputs.skip-dist }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: smoke-test-enhanced-caching-${{ inputs.cache-key-prefix }}
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: smoke-test-enhanced-caching
permissions:
contents: read
jobs:
enhanced-cache-seed-build:
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: false # For testing, allow writing cache entries on non-default branches
- name: Build using Gradle wrapper
working-directory: .github/workflow-samples/groovy-dsl
run: ./gradlew test
# Test that the gradle-user-home cache will cache dependencies, by running build with --offline
enhanced-cache-verify-build:
needs: enhanced-cache-seed-build
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: true
- name: Execute Gradle build with --offline
working-directory: .github/workflow-samples/groovy-dsl
run: ./gradlew test --offline
+12 -8
View File
@@ -26,14 +26,6 @@ jobs:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
restore-configuration-cache:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/integ-test-restore-configuration-cache.yml
with:
skip-dist: ${{ inputs.skip-dist }}
secrets:
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
restore-containerized-gradle-home:
uses: ./.github/workflows/integ-test-restore-containerized-gradle-home.yml
with:
@@ -53,3 +45,15 @@ jobs:
uses: ./.github/workflows/integ-test-restore-java-toolchain.yml
with:
skip-dist: ${{ inputs.skip-dist }}
sample-kotlin-dsl:
uses: ./.github/workflows/integ-test-sample-kotlin-dsl.yml
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
sample-gradle-plugin:
uses: ./.github/workflows/integ-test-sample-gradle-plugin.yml
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
@@ -0,0 +1,43 @@
name: suite-integ-test-dependency-submission
on:
workflow_call:
inputs:
runner-os:
type: string
default: '["ubuntu-latest"]'
skip-dist:
type: boolean
default: false
permissions:
contents: read
jobs:
dependency-graph:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/integ-test-dependency-graph.yml
permissions:
contents: write
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
dependency-submission:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/integ-test-dependency-submission.yml
permissions:
contents: write
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
dependency-submission-failures:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/integ-test-dependency-submission-failures.yml
permissions:
contents: write
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
@@ -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:
@@ -0,0 +1,27 @@
name: suite-smoke-test-caching
on:
workflow_call:
inputs:
runner-os:
type: string
default: '["ubuntu-latest"]'
skip-dist:
type: boolean
default: false
permissions:
contents: read
jobs:
enhanced-caching:
uses: ./.github/workflows/smoke-test-enhanced-caching.yml
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
basic-caching:
uses: ./.github/workflows/smoke-test-basic-caching.yml
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
+5 -5
View File
@@ -19,12 +19,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 20
node-version: 24
cache: npm
cache-dependency-path: sources/package-lock.json
@@ -38,7 +38,7 @@ jobs:
working-directory: sources
- name: Import GPG key to sign commits
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0
with:
gpg_private_key: ${{ secrets.GH_BOT_PGP_PRIVATE_KEY }}
passphrase: ${{ secrets.GH_BOT_PGP_PASSPHRASE }}
@@ -48,7 +48,7 @@ jobs:
# If there are no changes, this action will not create a pull request
- name: Create or update pull request
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
branch: bot/wrapper-checksums-update
author: bot-githubaction <bot-githubaction@gradle.com>
+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
+182 -337
View File
@@ -1,269 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var wMt=Object.create;var vP=Object.defineProperty;var NMt=Object.getOwnPropertyDescriptor;var SMt=Object.getOwnPropertyNames;var RMt=Object.getPrototypeOf,DMt=Object.prototype.hasOwnProperty;var B=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var xMt=(t,e)=>()=>(t&&(e=t(t=0)),e);var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),xu=(t,e)=>{for(var r in e)vP(t,r,{get:e[r],enumerable:!0})},hTe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of SMt(e))!DMt.call(t,s)&&s!==r&&vP(t,s,{get:()=>e[s],enumerable:!(n=NMt(e,s))||n.enumerable});return t};var Xe=(t,e,r)=>(r=t!=null?wMt(RMt(t)):{},hTe(e||!t||!t.__esModule?vP(r,"default",{value:t,enumerable:!0}):r,t)),$n=t=>hTe(vP({},"__esModule",{value:!0}),t);var ITe=f(eb=>{"use strict";var Uyn=B("net"),LMt=B("tls"),$K=B("http"),mTe=B("https"),UMt=B("events"),Pyn=B("assert"),PMt=B("util");eb.httpOverHttp=_Mt;eb.httpsOverHttp=OMt;eb.httpOverHttps=HMt;eb.httpsOverHttps=qMt;function _Mt(t){var e=new _f(t);return e.request=$K.request,e}function OMt(t){var e=new _f(t);return e.request=$K.request,e.createSocket=ETe,e.defaultPort=443,e}function HMt(t){var e=new _f(t);return e.request=mTe.request,e}function qMt(t){var e=new _f(t);return e.request=mTe.request,e.createSocket=ETe,e.defaultPort=443,e}function _f(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||$K.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=CTe(s,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}PMt.inherits(_f,UMt.EventEmitter);_f.prototype.addRequest=function(e,r,n,s){var i=this,o=eX({request:e},i.options,CTe(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};_f.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=eX({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),Ym("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){Ym("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var g=new Error("tunneling socket could not be established, statusCode="+l.statusCode);g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}if(h.length>0){Ym("got illegal response body from proxy"),d.destroy();var g=new Error("got illegal response body from proxy");g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}return Ym("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Ym(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};_f.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function ETe(t,e){var r=this;_f.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=eX({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=LMt.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function CTe(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function eX(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var Ym;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ym=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:Ym=function(){};eb.debug=Ym});var HP=f((Oyn,BTe)=>{BTe.exports=ITe()});var ps=f((Hyn,QTe)=>{QTe.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var tn=f((qyn,VTe)=>{"use strict";var yTe=Symbol.for("undici.error.UND_ERR"),Ts=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[yTe]===!0}[yTe]=!0},bTe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),tX=class extends Ts{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[bTe]===!0}[bTe]=!0},wTe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),rX=class extends Ts{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[wTe]===!0}[wTe]=!0},NTe=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),nX=class extends Ts{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[NTe]===!0}[NTe]=!0},STe=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),sX=class extends Ts{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[STe]===!0}[STe]=!0},RTe=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),iX=class extends Ts{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function sUt(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(qLt.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function iUt(){return"allowed"}function oUt(){return"success"}function aUt(){return"success"}function AUt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function cUt(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&zX(t.origin)&&!zX(PT(t))&&(e=null);break;case"same-origin":A_(t,PT(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function ub(t,e){return t}function uUt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:ub(t.domainLookupStartTime,r),domainLookupEndTime:ub(t.domainLookupEndTime,r),connectionStartTime:ub(t.connectionStartTime,r),connectionEndTime:ub(t.connectionEndTime,r),secureConnectionStartTime:ub(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function lUt(t){return ub(WLt.now(),t)}function dUt(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function ake(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function hUt(t){return{referrerPolicy:t.referrerPolicy}}function gUt(t){let e=t.referrerPolicy;aB(e);let r=null;if(t.referrer==="client"){let a=tke();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=WX(r),s=WX(r,!0);n.toString().length>4096&&(n=s);let i=A_(t,n),o=UT(n)&&!UT(t.url);switch(e){case"origin":return s??WX(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=PT(t);return A_(n,a)?n:UT(n)&&!UT(a)?"no-referrer":s}default:return o?"no-referrer":s}}function WX(t,e){return aB(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function UT(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function fUt(t,e){if(a_===void 0)return!0;let r=Ake(e);if(r==="no metadata"||r.length===0)return!0;let n=mUt(r),s=EUt(r,n);for(let i of s){let o=i.algo,a=i.hash,A=a_.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),CUt(A,a))return!0}return!1}var pUt=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Ake(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=pUt.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();nke.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function mUt(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function EUt(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}function CUt(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function IUt(t){}function A_(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function BUt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function QUt(t){return t.controller.state==="aborted"}function yUt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function bUt(t){return KLt[t.toLowerCase()]??t}function wUt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return aB(typeof e=="string"),e}var NUt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function cke(t,e,r=0,n=1){class s{ Line truncated
`);function rPt(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function nPt(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}function sPt(t,e){u_(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&l_(t,ePt,i)||i.position===t.length-4&&l_(t,tPt,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=iPt(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let g=t.indexOf(n.subarray(2),i.position);if(g===-1)return"failure";d=t.subarray(i.position,g-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",rPt(u)||(u=""),h=new ZUt([d],c,{type:u})):h=WUt(Buffer.from(d)),u_(Bke(A)),u_(typeof h=="string"&&Bke(h)||jUt(h)),s.push(KUt(A,h,c))}}function iPt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=db(a=>a!==10&&a!==13&&a!==58,t,e);if(o=tZ(o,!0,!0,a=>a===9||a===32),!zUt.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,db(a=>a===32||a===9,t,e),VUt(o)){case"content-disposition":{if(r=n=null,!l_(t,$Ut,e)||(e.position+=17,r=bke(t,e),r===null))return"failure";if(l_(t,yke,e)){let a=e.position+yke.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=bke(t,e),n===null))return"failure"}break}case"content-type":{let a=db(A=>A!==10&&A!==13,t,e);a=tZ(a,!1,!0,A=>A===9||A===32),s=Qke(a);break}case"content-transfer-encoding":{let a=db(A=>A!==10&&A!==13,t,e);a=tZ(a,!1,!0,A=>A===9||A===32),i=Qke(a);break}default:db(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function bke(t,e){u_(t[e.position-1]===34);let r=db(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function db(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function tZ(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function l_(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}wke.exports={multipartFormDataParser:sPt,validateBoundary:nPt}});var fb=f((hbn,Lke)=>{"use strict";var HT=mr(),{ReadableStreamFrom:oPt,isBlobLike:Ske,isReadableStreamLike:aPt,readableStreamClose:APt,createDeferredPromise:cPt,fullyReadBody:uPt,extractMimeType:lPt,utf8DecodeBytes:xke}=Qc(),{FormData:Rke}=OT(),{kState:gb}=Jm(),{webidl:dPt}=Oo(),{Blob:hPt}=B("node:buffer"),rZ=B("node:assert"),{isErrored:Tke,isDisturbed:gPt}=B("node:stream"),{isArrayBuffer:fPt}=B("node:util/types"),{serializeAMimeType:pPt}=yA(),{multipartFormDataParser:mPt}=Nke(),nZ;try{let t=B("node:crypto");nZ=e=>t.randomInt(0,e)}catch{nZ=t=>Math.floor(Math.random(t))}var d_=new TextEncoder;function EPt(){}var kke=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Fke;kke&&(Fke=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!gPt(e)&&!Tke(e)&&e.cancel("Response object has been garbage collected").catch(EPt)}));function Mke(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Ske(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?d_.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>APt(A))},start(){},type:"bytes"}),rZ(aPt(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(fPt(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(HT.isFormDataLike(t)){let A=`----formdata-undici-0${`${nZ(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=d_.encode(c+`; name="${u(l(C))}"\r
var g6e=Object.create;var pL=Object.defineProperty;var p6e=Object.getOwnPropertyDescriptor;var m6e=Object.getOwnPropertyNames;var E6e=Object.getPrototypeOf,C6e=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var C=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},xa=(t,e)=>{for(var r in e)pL(t,r,{get:e[r],enumerable:!0})},I6e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of m6e(e))!C6e.call(t,s)&&s!==r&&pL(t,s,{get:()=>e[s],enumerable:!(n=p6e(e,s))||n.enumerable});return t};var ge=(t,e,r)=>(r=t!=null?g6e(E6e(t)):{},I6e(e||!t||!t.__esModule?pL(r,"default",{value:t,enumerable:!0}):r,t));var Dee=C($p=>{"use strict";var gJt=Q("net"),S6e=Q("tls"),IL=Q("http"),Tee=Q("https"),N6e=Q("events"),pJt=Q("assert"),T6e=Q("util");$p.httpOverHttp=x6e;$p.httpsOverHttp=R6e;$p.httpOverHttps=D6e;$p.httpsOverHttps=k6e;function x6e(t){var e=new Au(t);return e.request=IL.request,e}function R6e(t){var e=new Au(t);return e.request=IL.request,e.createSocket=xee,e.defaultPort=443,e}function D6e(t){var e=new Au(t);return e.request=Tee.request,e}function k6e(t){var e=new Au(t);return e.request=Tee.request,e.createSocket=xee,e.defaultPort=443,e}function Au(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||IL.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=Ree(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)})}T6e.inherits(Au,N6e.EventEmitter);Au.prototype.addRequest=function(e,r,n,s){var i=this,o=yL({request:e},i.options,Ree(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)}})};Au.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=yL({},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")),vl("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){vl("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){vl("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 vl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),vl(`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)}};Au.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 xee(t,e){var r=this;Au.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=yL({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=S6e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function Ree(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function yL(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 vl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?vl=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)}:vl=function(){};$p.debug=vl});var BL=C((EJt,kee)=>{kee.exports=Dee()});var br=C((CJt,vee)=>{vee.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 _t=C((IJt,ste)=>{"use strict";var _ee=Symbol.for("undici.error.UND_ERR"),Qr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[_ee]===!0}[_ee]=!0},Fee=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),bL=class extends Qr{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[Fee]===!0}[Fee]=!0},Mee=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),QL=class extends Qr{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[Mee]===!0}[Mee]=!0},Lee=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),wL=class extends Qr{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[Lee]===!0}[Lee]=!0},Uee=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),SL=class extends Qr{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[Uee]===!0}[Uee]=!0},Pee=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),NL=class extends Qr{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 zHe(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(kHe.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function jHe(){return"allowed"}function KHe(){return"success"}function $He(){return"success"}function XHe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function ZHe(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&&EU(t.origin)&&!EU(OI(t))&&(e=null);break;case"same-origin":kS(t,OI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function am(t,e){return t}function e9e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:am(t.domainLookupStartTime,r),domainLookupEndTime:am(t.domainLookupEndTime,r),connectionStartTime:am(t.connectionStartTime,r),connectionEndTime:am(t.connectionEndTime,r),secureConnectionStartTime:am(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function t9e(t){return am(LHe.now(),t)}function r9e(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 Ere(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function n9e(t){return{referrerPolicy:t.referrerPolicy}}function s9e(t){let e=t.referrerPolicy;Vh(e);let r=null;if(t.referrer==="client"){let a=dre();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=mU(r),s=mU(r,!0);n.toString().length>4096&&(n=s);let i=kS(t,n),o=PI(n)&&!PI(t.url);switch(e){case"origin":return s??mU(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=OI(t);return kS(n,a)?n:PI(n)&&!PI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function mU(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 PI(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 i9e(t,e){if(DS===void 0)return!0;let r=Cre(e);if(r==="no metadata"||r.length===0)return!0;let n=a9e(r),s=c9e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=DS.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)),A9e(c,a))return!0}return!1}var o9e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Cre(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=o9e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();fre.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function a9e(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 c9e(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 A9e(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 u9e(t){}function kS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function l9e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function d9e(t){return t.controller.state==="aborted"}function h9e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function f9e(t){return OHe[t.toLowerCase()]??t}function g9e(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 p9e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Ire(t,e,r=0,n=1){class s{ Line truncated
`);function W9e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function J9e(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}function z9e(t,e){_S(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&&FS(t,Y9e,i)||i.position===t.length-4&&FS(t,V9e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=j9e(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",W9e(u)||(u=""),h=new G9e([d],A,{type:u})):h=L9e(Buffer.from(d)),_S(kre(c)),_S(typeof h=="string"&&kre(h)||P9e(h)),s.push(O9e(c,h,A))}}function j9e(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=Am(a=>a!==10&&a!==13&&a!==58,t,e);if(o=wU(o,!0,!0,a=>a===9||a===32),!U9e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Am(a=>a===32||a===9,t,e),M9e(o)){case"content-disposition":{if(r=n=null,!FS(t,q9e,e)||(e.position+=17,r=Fre(t,e),r===null))return"failure";if(FS(t,_re,e)){let a=e.position+_re.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Fre(t,e),n===null))return"failure"}break}case"content-type":{let a=Am(c=>c!==10&&c!==13,t,e);a=wU(a,!1,!0,c=>c===9||c===32),s=vre(a);break}case"content-transfer-encoding":{let a=Am(c=>c!==10&&c!==13,t,e);a=wU(a,!1,!0,c=>c===9||c===32),i=vre(a);break}default:Am(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Fre(t,e){_S(t[e.position-1]===34);let r=Am(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 Am(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function wU(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 FS(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}Mre.exports={multipartFormDataParser:z9e,validateBoundary:J9e}});var dm=C((VJt,Jre)=>{"use strict";var qI=dt(),{ReadableStreamFrom:K9e,isBlobLike:Ure,isReadableStreamLike:$9e,readableStreamClose:X9e,createDeferredPromise:Z9e,fullyReadBody:eGe,extractMimeType:tGe,utf8DecodeBytes:Hre}=vi(),{FormData:Pre}=GI(),{kState:lm}=_l(),{webidl:rGe}=Zn(),{Blob:nGe}=Q("node:buffer"),SU=Q("node:assert"),{isErrored:Gre,isDisturbed:sGe}=Q("node:stream"),{isArrayBuffer:iGe}=Q("node:util/types"),{serializeAMimeType:oGe}=ei(),{multipartFormDataParser:aGe}=Lre(),NU;try{let t=Q("node:crypto");NU=e=>t.randomInt(0,e)}catch{NU=t=>Math.floor(Math.random(t))}var MS=new TextEncoder;function cGe(){}var qre=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Yre;qre&&(Yre=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!sGe(e)&&!Gre(e)&&e.cancel("Response object has been garbage collected").catch(cGe)}));function Vre(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Ure(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?MS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>X9e(c))},start(){},type:"bytes"}),SU($9e(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(iGe(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(qI.isFormDataLike(t)){let c=`----formdata-undici-0${`${NU(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=E=>E.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,m]of t)if(typeof m=="string"){let I=MS.encode(A+`; name="${u(l(E))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=d_.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(I),i+=I.byteLength}else{let I=MS.encode(`${A}; name="${u(l(E))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=d_.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${A}`}else if(Ske(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(HT.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:oPt(t)}if((typeof s=="string"||HT.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!Tke(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function CPt(t,e=!1){return t instanceof ReadableStream&&(rZ(!HT.isDisturbed(t),"The body has already been consumed."),rZ(!t.locked,"The stream is locked.")),Mke(t,e)}function IPt(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function BPt(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function QPt(t){return{blob(){return hb(this,r=>{let n=Dke(this);return n===null?n="":n&&(n=pPt(n)),new hPt([r],{type:n})},t)},arrayBuffer(){return hb(this,r=>new Uint8Array(r).buffer,t)},text(){return hb(this,xke,t)},json(){return hb(this,bPt,t)},formData(){return hb(this,r=>{let n=Dke(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=mPt(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Rke;return i[gb]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Rke;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return hb(this,r=>new Uint8Array(r),t)}}}function yPt(t){Object.assign(t.prototype,QPt(t))}async function hb(t,e,r){if(dPt.brandCheck(t,r),vke(t))throw new TypeError("Body is unusable: Body has already been read");BPt(t[gb]);let n=cPt(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[gb].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await uPt(t[gb].body,i,s),n.promise)}function vke(t){let e=t[gb].body;return e!=null&&(e.stream.locked||HT.isDisturbed(e.stream))}function bPt(t){return JSON.parse(xke(t))}function Dke(t){let e=t[gb].headersList,r=lPt(e);return r==="failure"?null:r}Lke.exports={extractBody:Mke,safelyExtractBody:CPt,cloneBody:IPt,mixinBody:yPt,streamRegistry:Fke,hasFinalizationRegistry:kke,bodyUnusable:vke}});var Wke=f((gbn,Vke)=>{"use strict";var xt=B("node:assert"),Yt=mr(),{channels:Uke}=rb(),sZ=_X(),{RequestContentLengthMismatchError:AB,ResponseContentLengthMismatchError:wPt,RequestAbortedError:Gke,HeadersTimeoutError:NPt,HeadersOverflowError:SPt,SocketError:E_,InformationalError:pb,BodyTimeoutError:RPt,HTTPParserError:DPt,ResponseExceededMaxSizeError:xPt}=tn(),{kUrl:Yke,kReset:bA,kClient:AZ,kParser:Js,kBlocking:YT,kRunning:sa,kPending:TPt,kSize:Pke,kWriting:Wm,kQueue:Ad,kNoRef:qT,kKeepAliveDefaultTimeout:kPt,kHostHeader:FPt,kPendingIdx:MPt,kRunningIdx:ku,kError:Fu,kPipelining:p_,kSocket:mb,kKeepAliveTimeoutValue:C_,kMaxHeadersSize:iZ,kKeepAliveMaxTimeout:vPt,kKeepAliveTimeoutThreshold:LPt,kHeadersTimeout:UPt,kBodyTimeout:PPt,kStrictContentLength:cZ,kMaxRequests:_ke,kCounter:_Pt,kMaxResponseSize:OPt,kOnError:HPt,kResume:Vm,kHTTPContext:Jke}=ps(),Qh=F1e(),qPt=Buffer.alloc(0),h_=Buffer[Symbol.species],g_=Yt.addListener,GPt=Yt.removeAllListeners,oZ;async function YPt(){let t=process.env.JEST_WORKER_ID?qX():void 0,e;try{e=await WebAssembly.compile(L1e())}catch{e=await WebAssembly.compile(t||qX())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{xt(qi.ptr===r);let i=n-bh+yh.byteOffset;return qi.onStatus(new h_(yh.buffer,i,s))||0},wasm_on_message_begin:r=>(xt(qi.ptr===r),qi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{xt(qi.ptr===r);let i=n-bh+yh.byteOffset;return qi.onHeaderField(new h_(yh.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{xt(qi.ptr===r);let i=n-bh+yh.byteOffset;return qi.onHeaderValue(new h_(yh.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(xt(qi.ptr===r),qi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{xt(qi.ptr===r);let i=n-bh+yh.byteOffset;return qi.onBody(new h_(yh.buffer,i,s))||0},wasm_on_message_complete:r=>(xt(qi.ptr===r),qi.onMessageComplete()||0)}})}var aZ=null,uZ=YPt();uZ.catch();var qi=null,yh=null,f_=0,bh=null,JPt=0,GT=1,Eb=2|GT,m_=4|GT,lZ=8|JPt,dZ=class{constructor(e,r,{exports:n}){xt(Number.isFinite(e[iZ])&&e[iZ]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Qh.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[FPt],i?p+=`connection: upgrade\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:f=!0}let g=MS.encode(`--${c}--\r
`);d.push(g),i+=g.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(Ure(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(qI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:K9e(t)}if((typeof s=="string"||qI.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(!Gre(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 AGe(t,e=!1){return t instanceof ReadableStream&&(SU(!qI.isDisturbed(t),"The body has already been consumed."),SU(!t.locked,"The stream is locked.")),Vre(t,e)}function uGe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function lGe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function dGe(t){return{blob(){return um(this,r=>{let n=Ore(this);return n===null?n="":n&&(n=oGe(n)),new nGe([r],{type:n})},t)},arrayBuffer(){return um(this,r=>new Uint8Array(r).buffer,t)},text(){return um(this,Hre,t)},json(){return um(this,fGe,t)},formData(){return um(this,r=>{let n=Ore(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=aGe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Pre;return i[lm]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Pre;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 um(this,r=>new Uint8Array(r),t)}}}function hGe(t){Object.assign(t.prototype,dGe(t))}async function um(t,e,r){if(rGe.brandCheck(t,r),Wre(t))throw new TypeError("Body is unusable: Body has already been read");lGe(t[lm]);let n=Z9e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[lm].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await eGe(t[lm].body,i,s),n.promise)}function Wre(t){let e=t[lm].body;return e!=null&&(e.stream.locked||qI.isDisturbed(e.stream))}function fGe(t){return JSON.parse(Hre(t))}function Ore(t){let e=t[lm].headersList,r=tGe(e);return r==="failure"?null:r}Jre.exports={extractBody:Vre,safelyExtractBody:AGe,cloneBody:uGe,mixinBody:hGe,streamRegistry:Yre,hasFinalizationRegistry:qre,bodyUnusable:Wre}});var Ane=C((WJt,cne)=>{"use strict";var Me=Q("node:assert"),Pe=dt(),{channels:zre}=Zp(),TU=AU(),{RequestContentLengthMismatchError:Wh,ResponseContentLengthMismatchError:jre,RequestAbortedError:nne,InvalidArgumentError:gGe,HeadersTimeoutError:pGe,HeadersOverflowError:mGe,SocketError:hm,InformationalError:fm,BodyTimeoutError:EGe,HTTPParserError:CGe,ResponseExceededMaxSizeError:IGe}=_t(),{kUrl:sne,kReset:ti,kClient:OS,kParser:lr,kBlocking:WI,kRunning:cn,kPending:ine,kSize:Kre,kWriting:Fl,kQueue:Da,kNoRef:YI,kKeepAliveDefaultTimeout:yGe,kHostHeader:BGe,kPendingIdx:bGe,kRunningIdx:To,kError:Ts,kPipelining:HS,kSocket:zh,kKeepAliveTimeoutValue:qS,kMaxHeadersSize:xU,kKeepAliveMaxTimeout:QGe,kKeepAliveTimeoutThreshold:wGe,kHeadersTimeout:SGe,kBodyTimeout:NGe,kStrictContentLength:kU,kMaxRequests:$re,kCounter:TGe,kMaxResponseSize:xGe,kOnError:Xre,kResume:gu,kHTTPContext:one}=br(),_i=Yte(),Zre=Buffer.alloc(0),LS=Buffer[Symbol.species],US=Pe.addListener,RGe=Pe.removeAllListeners,jh=Symbol("kIdleSocketValidation"),Jh=Symbol("kIdleSocketValidationTimeout"),MU=Symbol("kSocketUsed"),RU;async function DGe(){let t=process.env.JEST_WORKER_ID?dU():void 0,e;try{e=await WebAssembly.compile(Jte())}catch{e=await WebAssembly.compile(t||dU())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Me(Ur.ptr===r);let i=n-Rc+xc.byteOffset;return Ur.onStatus(new LS(xc.buffer,i,s))||0},wasm_on_message_begin:r=>(Me(Ur.ptr===r),Ur.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Me(Ur.ptr===r);let i=n-Rc+xc.byteOffset;return Ur.onHeaderField(new LS(xc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Me(Ur.ptr===r);let i=n-Rc+xc.byteOffset;return Ur.onHeaderValue(new LS(xc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Me(Ur.ptr===r),Ur.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Me(Ur.ptr===r);let i=n-Rc+xc.byteOffset;return Ur.onBody(new LS(xc.buffer,i,s))||0},wasm_on_message_complete:r=>(Me(Ur.ptr===r),Ur.onMessageComplete()||0)}})}var DU=null,vU=DGe();vU.catch();var Ur=null,xc=null,PS=0,Rc=null,kGe=0,VI=1,gm=2|VI,GS=4|VI,_U=8|kGe,FU=class{constructor(e,r,{exports:n}){Me(Number.isFinite(e[xU])&&e[xU]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(_i.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[BGe],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[p_]&&!h[bA]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return Uke.sendHeaders.hasSubscribers&&Uke.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Hke(g,null,t,e,h,u,p,l):Yt.isBuffer(A)?Hke(g,A,t,e,h,u,p,l):Yt.isBlobLike(A)?typeof A.stream=="function"?qke(g,A.stream(),t,e,h,u,p,l):XPt(g,A,t,e,h,u,p,l):Yt.isStream(A)?KPt(g,A,t,e,h,u,p,l):Yt.isIterable(A)?qke(g,A,t,e,h,u,p,l):xt(!1),!0}function KPt(t,e,r,n,s,i,o,a){xt(i!==0||r[sa]===0,"stream body cannot be pipelined");let A=!1,c=new I_({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Yt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new Gke;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,xt(s.destroyed||s[Wm]&&r[sa]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Yt.destroy(e,g):Yt.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function Hke(t,e,r,n,s,i,o,a){try{e?Yt.isBuffer(e)&&(xt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[bA]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(xt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Vm]()}catch(A){t(A)}}async function XPt(t,e,r,n,s,i,o,a){xt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new AB;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[bA]=!0),r[Vm]()}catch(A){t(A)}}async function qke(t,e,r,n,s,i,o,a){xt(i!==0||r[sa]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{xt(A===null),s[Fu]?h(s[Fu]):A=d});s.on("close",c).on("drain",c);let l=new I_({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Fu])throw s[Fu];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var I_=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Wm]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Fu])throw r[Fu];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[cZ])throw new AB;process.emitWarning(new AB)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[bA]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Js].timeout&&r[Js].timeoutType===Eb&&r[Js].timeout.refresh&&r[Js].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Wm]=!1,e[Fu])throw e[Fu];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[cZ])throw new AB;process.emitWarning(new AB)}e[Js].timeout&&e[Js].timeoutType===Eb&&e[Js].timeout.refresh&&e[Js].timeout.refresh(),n[Vm]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Wm]=!1,e&&(xt(n[sa]<=1,"pipeline should only contain this request"),s(e))}};Vke.exports=VPt});var t2e=f((fbn,e2e)=>{"use strict";var Mu=B("node:assert"),{pipeline:ZPt}=B("node:stream"),wr=mr(),{RequestContentLengthMismatchError:hZ,RequestAbortedError:zke,SocketError:JT,InformationalError:gZ}=tn(),{kUrl:B_,kReset:y_,kClient:Cb,kRunning:b_,kPending:$Pt,kQueue:zm,kPendingIdx:fZ,kRunningIdx:cd,kError:ld,kSocket:oo,kStrictContentLength:e_t,kOnError:pZ,kMaxConcurrentStreams:$ke,kHTTP2Session:ud,kResume:jm,kSize:t_t,kHTTPContext:r_t}=ps(),Jf=Symbol("open streams"),jke,Kke=!1,Q_;try{Q_=B("node:http2")}catch{Q_={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:n_t,HTTP2_HEADER_METHOD:s_t,HTTP2_HEADER_PATH:i_t,HTTP2_HEADER_SCHEME:o_t,HTTP2_HEADER_CONTENT_LENGTH:a_t,HTTP2_HEADER_EXPECT:A_t,HTTP2_HEADER_STATUS:c_t}}=Q_;function u_t(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function l_t(t,e){t[oo]=e,Kke||(Kke=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Q_.connect(t[B_],{createConnection:()=>e,peerMaxConcurrentStreams:t[$ke]});r[Jf]=0,r[Cb]=t,r[oo]=e,wr.addListener(r,"error",h_t),wr.addListener(r,"frameError",g_t),wr.addListener(r,"end",f_t),wr.addListener(r,"goaway",p_t),wr.addListener(r,"close",function(){let{[Cb]:s}=this,{[oo]:i}=s,o=this[oo][ld]||this[ld]||new JT("closed",wr.getSocketInfo(i));if(s[ud]=null,s.destroyed){Mu(s[$Pt]===0);let a=s[zm].splice(s[cd]);for(let A=0;A<a.length;A++){let c=a[A];wr.errorRequest(s,c,o)}}}),r.unref(),t[ud]=r,e[ud]=r,wr.addListener(e,"error",function(s){Mu(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ld]=s,this[Cb][pZ](s)}),wr.addListener(e,"end",function(){wr.destroy(this,new JT("other side closed",wr.getSocketInfo(this)))}),wr.addListener(e,"close",function(){let s=this[ld]||new JT("closed",wr.getSocketInfo(this));t[oo]=null,this[ud]!=null&&this[ud].destroy(s),t[fZ]=t[cd],Mu(t[b_]===0),t.emit("disconnect",t[B_],[t],s),t[jm]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return E_t(t,...s)},resume(){d_t(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function d_t(t){let e=t[oo];e?.destroyed===!1&&(t[t_t]===0&&t[$ke]===0?(e.unref(),t[ud].unref()):(e.ref(),t[ud].ref()))}function h_t(t){Mu(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[oo][ld]=t,this[Cb][pZ](t)}function g_t(t,e,r){if(r===0){let n=new gZ(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[oo][ld]=n,this[Cb][pZ](n)}}function f_t(){let t=new JT("other side closed",wr.getSocketInfo(this[oo]));this.destroy(t),wr.destroy(this[oo],t)}function p_t(t){let e=this[ld]||new JT(`HTTP/2: "GOAWAY" frame received with code ${t}`,wr.getSocketInfo(this)),r=this[Cb];if(r[oo]=null,r[r_t]=null,this[ud]!=null&&(this[ud].destroy(e),this[ud]=null),wr.destroy(this[oo],e),r[cd]<r[zm].length){let n=r[zm][r[cd]];r[zm][r[cd]++]=null,wr.errorRequest(r,n,e),r[fZ]=r[cd]}Mu(r[b_]===0),r.emit("disconnect",r[B_],[r],e),r[jm]()}function m_t(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function E_t(t,e){let r=t[ud],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return wr.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let w=0;w<c.length;w+=2){let H=c[w+0],z=c[w+1];if(Array.isArray(z))for(let F=0;F<z.length;F++)l[H]?l[H]+=`,${z[F]}`:l[H]=z[F];else l[H]=z}let d,{hostname:h,port:g}=t[B_];l[n_t]=i||`${h}${g?`:${g}`:""}`,l[s_t]=n;let p=w=>{e.aborted||e.completed||(w=w||new zke,wr.errorRequest(t,e,w),d!=null&&wr.destroy(d,w),wr.destroy(u,w),t[zm][t[cd]++]=null,t[jm]())};try{e.onConnect(p)}catch(w){wr.errorRequest(t,e,w)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Jf],t[zm][t[cd]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Jf],t[zm][t[cd]++]=null}),d.once("close",()=>{r[Jf]-=1,r[Jf]===0&&r.unref()}),!0;l[i_t]=s,l[o_t]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=wr.bodyLength(u);if(wr.isFormDataLike(u)){jke??=fb().extractBody;let[w,H]=jke(u);l["content-type"]=H,u=w.stream,m=w.length}if(m==null&&(m=e.contentLength),(m===0||!C)&&(m=null),m_t(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[e_t])return wr.errorRequest(t,e,new hZ),!1;process.emitWarning(new hZ)}m!=null&&(Mu(u,"no body must not have content length"),l[a_t]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[A_t]="100-continue",d=r.request(l,{endStream:I,signal:A}),d.once("cont Line truncated
`,this[Y_t]=A??3e5,this[G_t]=s??3e5,this[J_t]=I??!0,this[V_t]=w,this[IZ]=z,this[Xm]=null,this[X_t]=W>-1?W:-1,this[$_t]=oe??100,this[fi]=null,this[dd]=[],this[Wf]=0,this[hd]=0,this[jT]=he=>QZ(this,he),this[Z_t]=he=>h2e(this,he)}get pipelining(){return this[R_]}set pipelining(e){this[R_]=e,this[jT](!0)}get[ZT](){return this[dd].length-this[hd]}get[XT](){return this[hd]-this[Wf]}get[KT](){return this[dd].length-this[Wf]}get[L_t](){return!!this[fi]&&!this[Bb]&&!this[fi].destroyed}get[CZ](){return!!(this[fi]?.busy(null)||this[KT]>=(d2e(this)||1)||this[ZT]>0)}[v_t](e){g2e(this),this.once("connect",e)}[K_t](e,r){let n=e.origin||this[Nh].origin,s=new D_t(n,e,r);return this[dd].push(s),this[uB]||(cB.bodyLength(s.body)==null&&cB.isIterable(s.body)?(this[uB]=1,queueMicrotask(()=>QZ(this))):this[jT](!0)),this[uB]&&this[Zm]!==2&&this[CZ]&&(this[Zm]=2),this[Zm]<2}async[z_t](){return new Promise(e=>{this[KT]?this[Xm]=e:e(null)})}async[j_t](e){return new Promise(r=>{let n=this[dd].splice(this[hd]);for(let i=0;i<n.length;i++){let o=n[i];cB.errorRequest(this,o,e)}let s=()=>{this[Xm]&&(this[Xm](),this[Xm]=null),r(null)};this[fi]?(this[fi].destroy(e,s),this[fi]=null):queueMicrotask(s),this[jT]()})}},rOt=S_();function h2e(t,e){if(t[XT]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Vf(t[hd]===t[Wf]);let r=t[dd].splice(t[Wf]);for(let n=0;n<r.length;n++){let s=r[n];cB.errorRequest(t,s,e)}Vf(t[KT]===0)}}async function g2e(t){Vf(!t[Bb]),Vf(!t[fi]);let{host:e,hostname:r,protocol:n,port:s}=t[Nh];if(r[0]==="["){let i=r.indexOf("]");Vf(i!==-1);let o=r.substring(1,i);Vf(l2e.isIP(o)),r=o}t[Bb]=!0,Ib.beforeConnect.hasSubscribers&&Ib.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[Km],localAddress:t[zT]},connector:t[WT]});try{let i=await new Promise((o,a)=>{t[WT]({host:e,hostname:r,protocol:n,port:s,servername:t[Km],localAddress:t[zT]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){cB.destroy(i.on("error",c2e),new k_t);return}Vf(i);try{t[fi]=i.alpnProtocol==="h2"?await tOt(t,i):await eOt(t,i)}catch(o){throw i.destroy().on("error",c2e),o}t[Bb]=!1,i[W_t]=0,i[IZ]=t[IZ],i[M_t]=t,i[P_t]=null,Ib.connected.hasSubscribers&&Ib.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[Km],localAddress:t[zT]},connector:t[WT],socket:i}),t.emit("connect",t[Nh],[t])}catch(i){if(t.destroyed)return;if(t[Bb]=!1,Ib.connectError.hasSubscribers&&Ib.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[Km],localAddress:t[zT]},connector:t[WT],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Vf(t[XT]===0);t[ZT]>0&&t[dd][t[hd]].servername===t[Km];){let o=t[dd][t[hd]++];cB.errorRequest(t,o,i)}else h2e(t,i);t.emit("connectionError",t[Nh],[t],i)}t[jT]()}function u2e(t){t[Zm]=0,t.emit("drain",t[Nh],[t])}function QZ(t,e){t[uB]!==2&&(t[uB]=2,nOt(t,e),t[uB]=0,t[Wf]>256&&(t[dd].splice(0,t[Wf]),t[hd]-=t[Wf],t[Wf]=0))}function nOt(t,e){for(;;){if(t.destroyed){Vf(t[ZT]===0);return}if(t[Xm]&&!t[KT]){t[Xm](),t[Xm]=null;return}if(t[fi]&&t[fi].resume(),t[CZ])t[Zm]=2;else if(t[Zm]===2){e?(t[Zm]=1,queueMicrotask(()=>u2e(t))):u2e(t);continue}if(t[ZT]===0||t[XT]>=(d2e(t)||1))return;let r=t[dd][t[hd]];if(t[Nh].protocol==="https:"&&t[Km]!==r.servername){if(t[XT]>0)return;t[Km]=r.servername,t[fi]?.destroy(new T_t("servername changed"),()=>{t[fi]=null,QZ(t)})}if(t[Bb])return;if(!t[fi]){g2e(t);return}if(t[fi].destroyed||t[fi].busy(r))return;!r.aborted&&t[fi].write(r)?t[hd]++:t[dd].splice(t[hd],1)}}f2e.exports=BZ});var yZ=f((Ibn,p2e)=>{"use strict";var D_=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};p2e.exports=class{constructor(){this.head=this.tail=new D_}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new D_),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var E2e=f((Bbn,m2e)=>{var{kFree:sOt,kConnected:iOt,kPending:oOt,kQueued:aOt,kRunning:AOt,kSize:cOt}=ps(),lB=Symbol("pool"),bZ=class{constructor(e){this[lB]=e}get connected(){return this[lB][iOt]}get free(){return this[lB][sOt]}get pending(){return this[lB][oOt]}get queued(){return this[lB][aOt]}get running(){return this[lB][AOt]}get size(){return this[lB][cOt]}};m2e.exports=bZ});var xZ=f((Qbn,R2e)=>{"use strict";var uOt=ob(),lOt=yZ(),{kConnected:wZ,kSize:C2e,kRunning:I2e,kPending:B2e,kQueued:$T,kBusy:dOt,kFree:hOt,kUrl:gOt,kClose:fOt,kDestroy:pOt,kDispatch:mOt}=ps(),EOt=E2e(),wA=Symbol("clients"),Ha=Symbol("needDrain"),e1=Symbol("queue"),NZ=Symbol("closed resolve"),SZ=Symbol("onDrain"),Q2e=Symbol("onConnect"),y2e=Symbol("onDisconnect"),b2e=Symbol("onC Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};MMe.exports=x$});var W_=f((Kbn,_Me)=>{"use strict";var LMe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Yqt}=tn(),Jqt=bb();PMe()===void 0&&UMe(new Jqt);function UMe(t){if(!t||typeof t.dispatch!="function")throw new Yqt("Argument agent must implement Agent");Object.defineProperty(globalThis,LMe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function PMe(){return globalThis[LMe]}_Me.exports={setGlobalDispatcher:UMe,getGlobalDispatcher:PMe}});var z_=f((Zbn,OMe)=>{"use strict";OMe.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var qMe=f(($bn,HMe)=>{"use strict";var Vqt=N_();HMe.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new Vqt(r,o,s,i);return r(a,A)}}});var YMe=f((ewn,GMe)=>{"use strict";var Wqt=U_();GMe.exports=t=>e=>function(n,s){return e(n,new Wqt({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var VMe=f((twn,JMe)=>{"use strict";var zqt=mr(),{InvalidArgumentError:jqt,RequestAbortedError:Kqt}=tn(),Xqt=z_(),T$=class extends Xqt{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new jqt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=zqt.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Kqt(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Zqt({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new T$({maxSize:i},s);return e(n,o)}}JMe.exports=Zqt});var jMe=f((rwn,zMe)=>{"use strict";var{isIP:$qt}=B("node:net"),{lookup:eGt}=B("node:dns"),tGt=z_(),{InvalidArgumentError:Mb,InformationalError:rGt}=tn(),WMe=Math.pow(2,31)-1,k$=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new rGt("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){eGt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===WMe?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===WMe?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new F$(this,e,r)}},F$=class extends tGt{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":RUe(i)&&(r[s]=i);break;case"id":DUe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&RUe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&DUe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};xUe.exports={EventSourceStream:Eee}});var _Ue=f((Fwn,PUe)=>{"use strict";var{pipeline:uYt}=B("node:stream"),{fetching:lYt}=h1(),{makeRequest:dYt}=Ub(),{webidl:Zf}=Oo(),{EventSourceStream:hYt}=TUe(),{parseMIMEType:gYt}=yA(),{createFastMessageEvent:fYt}=Gb(),{isNetworkError:kUe}=l1(),{delay:pYt}=pee(),{kEnumerableProperty:NB}=mr(),{environmentSettingsObject:FUe}=Qc(),MUe=!1,vUe=3e3,w1=0,LUe=1,N1=2,mYt="anonymous",EYt="use-credentials",zb=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=w1;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Zf.util.markAsUncloneable(this);let n="EventSource constructor";Zf.argumentLengthCheck(arguments,1,n),MUe||(MUe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Zf.converters.USVString(e,n,"url"),r=Zf.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:vUe};let s=FUe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=mYt;r.withCredentials&&(o=EYt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=FUe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=dYt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===N1)return;this.#r=w1;let e={request:this.#s,dispatcher:this.#a},r=n=>{kUe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(kUe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?gYt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=LUe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new hYt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(fYt(A.type,A.options))}});uYt(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=lYt(e)}async#c(){this.#r!==N1&&(this.#r=w1,this.dispatchEvent(new Event("error")),await pYt(this.#o.reconnectionTime),this.#r===w1&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Zf.brandCheck(this,t),this.#r!==N1&&(this.#r=N1,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},UUe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:w1,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:LUe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:N1,writable:!1}};Object.defineProperties(zb,UUe);Object.defineProperties(zb.prototype,UUe);Object.defineProperties(zb.prototype,{close:NB,onerror:NB,onmessage:NB,onopen:NB,readyState:NB,url:NB,withCredentials:NB});Zf.converters.EventSourceInitDict=Zf.dictionaryConverter([{key:"withCredentials",converter:Zf.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Zf.converters.any}]);PUe.exports={EventSource:zb,defaultReconnectionTime:vUe}});var GUe=f((Mwn,Mt)=>{"use strict";var CYt=Qb(),OUe=TT(),IYt=yb(),BYt=U2e(),QYt=bb(),yYt=GZ(),bYt=aFe(),wYt=hFe(),HUe=tn(),LO=mr(),{InvalidArgumentError:vO}=HUe,jb=$Fe(),NYt=FT(),SYt=b$(),RYt=vMe(),DYt=S$(),xYt=l$(),TYt=U_(),{getGlobalDispatcher:qUe,setGlobalDispatcher:kYt}=W_(),FYt=z_(),MYt=N_(),vYt=S_();Object.assign(OUe.prototype,jb);Mt.exports.Dispatcher=OUe;Mt.exports.Client=CYt;Mt.exports.Pool=IYt;Mt.exports.BalancedPool=BYt;Mt.exports.Agent=QYt;Mt.exports.ProxyAgent=yYt;Mt.exports.EnvHttpProxyAgent=bYt;Mt.expo Line truncated
\r
`),S6t=/\r\n/g,R6t=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function ew(t){qPe.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=HPe(t,"maxHeaderPairs",2e3),this.maxHeaderSize=HPe(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new w6t(N6t),this.ss.on("info",function(r,n,s,i){n&&!e.maxed&&(e.nread+i-s>=e.maxHeaderSize?(i=e.maxHeaderSize-e.nread+s,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=i-s,e.buffer+=n.toString("binary",s,i)),r&&e._finish()})}b6t(ew,qPe);ew.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};ew.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};ew.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};ew.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(S6t),e=t.length,r,n;for(var s=0;s<e;++s){if(t[s].length===0)continue;if((t[s][0]===" "||t[s][0]===" ")&&n){this.header[n][this.header[n].length-1]+=t[s];continue}let i=t[s].indexOf(":");if(i===-1||i===0)return;if(r=R6t.exec(t[s]),n=r[1].toLowerCase(),this.header[n]=this.header[n]||[],this.header[n].push(r[2]||""),++this.npairs===this.maxHeaderPairs)break}};GPe.exports=ew});var ate=f((NNn,VPe)=>{"use strict";var ote=B("node:stream").Writable,D6t=B("node:util").inherits,x6t=ste(),JPe=_Pe(),T6t=YPe(),k6t=45,F6t=Buffer.from("-"),M6t=Buffer.from(`\r
`),v6t=function(){};function Ed(t){if(!(this instanceof Ed))return new Ed(t);if(ote.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new T6t(t),this._hparser.on("header",function(r){e._inHeader=!1,e._part.emit("header",r)})}D6t(Ed,ote);Ed.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let r=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(r+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else ote.prototype.emit.apply(this,arguments)};Ed.prototype._write=function(t,e,r){if(!this._hparser&&!this._bparser)return r();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new JPe(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let n=this._hparser.push(t);if(!this._inHeader&&n!==void 0&&n<t.length)t=t.slice(n);else return r()}this._firstWrite&&(this._bparser.push(M6t),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=r:r()};Ed.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};Ed.prototype.setBoundary=function(t){let e=this;this._bparser=new x6t(`\r
--`+t),this._bparser.on("info",function(r,n,s,i){e._oninfo(r,n,s,i)})};Ed.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",v6t),this._part.resume())};Ed.prototype._oninfo=function(t,e,r,n){let s,i=this,o=0,a,A=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&r+o<n;)if(e[r+o]===k6t)++o,++this._dashes;else{this._dashes&&(s=F6t),this._dashes=0;break}if(this._dashes===2&&(r+o<n&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(r+o,n)),this.reset(),this._finished=!0,i._parts===0&&(i._realFinish=!0,i.emit("finish"),i._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new JPe(this._partOpts),this._part._read=function(c){i._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&r<n&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(s&&(A=this._part.push(s)),A=this._part.push(e.slice(r,n)),A||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(s&&this._hparser.push(s),a=this._hparser.push(e.slice(r,n)),!this._inHeader&&a!==void 0&&a<n&&this._oninfo(!1,e,r+a,n))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:r!==n&&(++this._parts,this._part.on("end",function(){--i._parts===0&&(i._finished?(i._realFinish=!0,i.emit("finish"),i._realFinish=!1):i._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};Ed.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};VPe.exports=Ed});var jO=f((Ate,jPe)=>{"use strict";var WPe=new TextDecoder("utf-8"),zPe=new Map([["utf-8",WPe],["utf8",WPe]]);function L6t(t){let e;for(;;)switch(t){case"utf-8":case"utf8":return v1.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return v1.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return v1.utf16le;case"base64":return v1.base64;default:if(e===void 0){e=!0,t=t.toLowerCase();continue}return v1.other.bind(t)}}var v1={utf8:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.utf8Slice(0,t.length)),latin1:(t,e)=>t.length===0?"":typeof t=="string"?t:t.latin1Slice(0,t.length),utf16le:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.ucs2Slice(0,t.length)),base64:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.base64Slice(0,t.length)),other:(t,e)=>{if(t.length===0)return"";if(typeof t=="string"&&(t=Buffer.from(t,e)),zPe.has(Ate.toString()))try{return zPe.get(Ate).decode(t)}catch{}return typeof t=="string"?t:t.toString()}};function U6t(t,e,r){return t&&L6t(r)(t,e)}jPe.exports=U6t});var ute=f((SNn,e_e)=>{"use strict";var KO=jO(),KPe=/%[a-fA-F0-9][a-fA-F0-9]/g,P6t={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xLine truncated
`))}function U9t(t,e){let{headersList:r}=e,n=(r.get("referrer-policy")??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(y9t.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function P9t(){return"allowed"}function _9t(){return"success"}function O9t(){return"success"}function H9t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}function q9t(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&Ete(t.origin)&&!Ete(P1(t))&&(e=null);break;case"same-origin":tH(t,P1(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}function G9t(t){return N9t.now()}function Y9t(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function J9t(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function V9t(t){return{referrerPolicy:t.referrerPolicy}}function W9t(t){let e=t.referrerPolicy;iw(e);let r=null;if(t.referrer==="client"){let a=w9t();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=pte(r),s=pte(r,!0);n.toString().length>4096&&(n=s);let i=tH(t,n),o=U1(n)&&!U1(t.url);switch(e){case"origin":return s??pte(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=P1(t);return tH(n,a)?n:U1(n)&&!U1(a)?"no-referrer":s}default:return o?"no-referrer":s}}function pte(t,e){return iw(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function U1(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function z9t(t,e){if(eH===void 0)return!0;let r=S_e(e);if(r==="no metadata"||r.length===0)return!0;let n=K9t(r),s=X9t(r,n);for(let i of s){let o=i.algo,a=i.hash,A=eH.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),Z9t(A,a))return!0}return!1}var j9t=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function S_e(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=j9t.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();y_e.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function K9t(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function X9t(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}function Z9t(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function $9t(t){}function tH(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function eJt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function tJt(t){return t.controller.state==="aborted"}function rJt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}var Cte={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(Cte,null);function nJt(t){return Cte[t.toLowerCase()]??t}function sJt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return iw(typeof e=="string"),e}var iJt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function oJt(t,e,r){let n={index:0,kind:r,target:t},s={next(){if(Object.getPrototypeOf(this)!==s)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:i,kind:o,target:a}=n,A=a(),c=A.length;if(i>=c)return{value:void 0,done:!0};let u=A[i];return n.index=i+1,aJt(u,o)},[Symbol.toStringTag]:`${e} Iterator`};return Object.setPrototypeOf(s,iJt),Object.setPrototypeOf({},s)}function aJt(t,e){let r;switch(e){case"key":{r=t[0];brea Line truncated
`||t===" "||t===" "}function Ite(t,e=!0,r=!0){let n=0,s=t.length-1;if(e)for(;n<t.length&&M_e(t[n]);n++);if(r)for(;s>0&&M_e(t[s]);s--);return t.slice(n,s+1)}function v_e(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}function NJt(t,e=!0,r=!0){let n=0,s=t.length-1;if(e)for(;n<t.length&&v_e(t[n]);n++);if(r)for(;s>0&&v_e(t[s]);s--);return t.slice(n,s+1)}__e.exports={dataURLProcessor:QJt,URLSerializer:L_e,collectASequenceOfCodePoints:sH,collectASequenceOfCodePointsFast:ow,stringPercentDecode:U_e,parseMIMEType:Bte,collectAnHTTPQuotedString:P_e,serializeAMimeType:wJt}});var iH=f((_Nn,Y_e)=>{"use strict";var{Blob:q_e,File:O_e}=B("buffer"),{types:Qte}=B("util"),{kState:xc}=np(),{isBlobLike:G_e}=Hu(),{webidl:fn}=Ya(),{parseMIMEType:SJt,serializeAMimeType:RJt}=Cd(),{kEnumerableProperty:H_e}=Gr(),DJt=new TextEncoder,_1=class t extends q_e{constructor(e,r,n={}){fn.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=fn.converters["sequence<BlobPart>"](e),r=fn.converters.USVString(r),n=fn.converters.FilePropertyBag(n);let s=r,i=n.type,o;e:{if(i){if(i=SJt(i),i==="failure"){i="";break e}i=RJt(i).toLowerCase()}o=n.lastModified}super(xJt(e,n),{type:i}),this[xc]={name:s,lastModified:o,type:i}}get name(){return fn.brandCheck(this,t),this[xc].name}get lastModified(){return fn.brandCheck(this,t),this[xc].lastModified}get type(){return fn.brandCheck(this,t),this[xc].type}},yte=class t{constructor(e,r,n={}){let s=r,i=n.type,o=n.lastModified??Date.now();this[xc]={blobLike:e,name:s,type:i,lastModified:o}}stream(...e){return fn.brandCheck(this,t),this[xc].blobLike.stream(...e)}arrayBuffer(...e){return fn.brandCheck(this,t),this[xc].blobLike.arrayBuffer(...e)}slice(...e){return fn.brandCheck(this,t),this[xc].blobLike.slice(...e)}text(...e){return fn.brandCheck(this,t),this[xc].blobLike.text(...e)}get size(){return fn.brandCheck(this,t),this[xc].blobLike.size}get type(){return fn.brandCheck(this,t),this[xc].blobLike.type}get name(){return fn.brandCheck(this,t),this[xc].name}get lastModified(){return fn.brandCheck(this,t),this[xc].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(_1.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:H_e,lastModified:H_e});fn.converters.Blob=fn.interfaceConverter(q_e);fn.converters.BlobPart=function(t,e){if(fn.util.Type(t)==="Object"){if(G_e(t))return fn.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||Qte.isAnyArrayBuffer(t))return fn.converters.BufferSource(t,e)}return fn.converters.USVString(t,e)};fn.converters["sequence<BlobPart>"]=fn.sequenceConverter(fn.converters.BlobPart);fn.converters.FilePropertyBag=fn.dictionaryConverter([{key:"lastModified",converter:fn.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:fn.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=fn.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function xJt(t,e){let r=[];for(let n of t)if(typeof n=="string"){let s=n;e.endings==="native"&&(s=TJt(s)),r.push(DJt.encode(s))}else Qte.isAnyArrayBuffer(n)||Qte.isTypedArray(n)?n.buffer?r.push(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)):r.push(new Uint8Array(n)):G_e(n)&&r.push(n);return r}function TJt(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}function kJt(t){return O_e&&t instanceof O_e||t instanceof _1||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}Y_e.exports={File:_1,FileLike:yte,isFileLike:kJt}});var aH=f((ONn,j_e)=>{"use strict";var{isBlobLike:oH,toUSVString:FJt,makeIterator:bte}=Hu(),{kState:aa}=np(),{File:z_e,FileLike:J_e,isFileLike:MJt}=iH(),{webidl:wn}=Ya(),{Blob:vJt,File:wte}=B("buffer"),V_e=wte??z_e,aw=class t{constructor(e){if(e!==void 0)throw wn.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[aa]=[]}append(e,r,n=void 0){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!oH(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=wn.converters.USVString(e),r=oH(r)?wn.converters.Blob(r,{strict:!1}):wn.converters.USVString(r),n=arguments.length===3?wn.converters.USVString(n):void 0;let s=W_e(e,r,n);this[aa].push(s)}delete(e){wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=wn.converters.USVString(e),this[aa]=this[aa].filter(r=>r.name!==e)}get(e){wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=wn.converters.USVString(e);let r=this[aa].findIndex(n=>n.name===e);return r===-1?null:this[aa][r].value}getAll(e){return wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=wn.converters.USVString(e),this[aa].filter(r=>r.name===e).map(r=>r.value)}has(e){return wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=wn.converters.USVString(e),this[aa].findIndex(r=>r.name===e)!==-1}set(e,r,n=void 0){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!oH(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=wn.converters.USVString(e),r=oH(r)?wn.converters.Blob(r,{strict:!1}):wn.converters.USVString(r),n=arguments.length===3?FJt(n):void 0;let s=W_e(e,r,n),i=this[aa].findIndex(o=>o.name===e);i!==-1?this[aa]=[...this[aa].slice(0,i),s,...this[aa].slice(i+1).filter(o=>o.name!==e)]:this[aa].push(s)}entries(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","key")}values(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,r=globalThis){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[n,s]of this)e.apply(r,[s,n,this])}};aw.prototype[Symbol.iterator]=aw.prototype.entries;Object.defineProperties(aw.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function W_e(t,e,r){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(MJt(e)||(e=e instanceof vJt?new V_e([e],"blob",{type:e.type}):new J_e(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=wte&&e instanceof wte||e instanceof z_e?new V_e([e],r,n):new J_e(e,r,n)}return{name:t,value:e}}j_e.exports={FormData:aw}});var O1=f((HNn,sOe)=>{"use strict";var LJt=h_e(),Aw=Gr(),{ReadableStreamFrom:UJt,isBlobLike:K_e,isReadableStreamLike:PJt,readableStreamClose:_Jt,createDeferredPromise:OJt,fullyReadBody:HJt}=Hu(),{FormData:X_e}=aH(),{kState:ip}=np(),{webidl:Nte}=Ya(),{DOMException:eOe,structuredClone:qJt}=gE(),{Blob:GJt,File:YJt}=B("buffer"),{kBodyUsed:JJt}=ts(),Ste=B("assert"),{isErrored:VJt}=Gr(),{isUint8Array:tOe,isArrayBuffer:WJt}=B("util/types"),{File:zJt}=iH(),{parseMIMEType:jJt,serializeAMimeType:KJt}=Cd(),Rte;try{let t=B("node:crypto");Rte=e=>t.randomInt(0,e)}catch{Rte=t=>Math.floor(Math.random(t))}var sp=globalThis.ReadableStream,Z_e=YJt??zJt,AH=new TextEncoder,XJt=new TextDecoder;function rOe(t,e=!1){sp||(sp=B("stream/web").ReadableStream);let r=null;t instanceof sp?r=t:K_e(t)?r=t.stream():r=new sp({async pull(A){A.enqueue(typeof s=="string"?AH.encode(s):s),queueMicrotask(()=>_Jt(A))},start(){},type:void 0}),Ste(PJt(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(WJt(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Aw.isFormDataLike(t)){let A=`----formdata-undici-0${`${Rte(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=AH.encode(c+`; name="${u(l(C))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=AH.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=AH.encode(`--${A}--`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o="multipart/form-data; boundary="+A}else if(K_e(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Aw.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof sp?t:UJt(t)}if((typeof s=="string"||Aw.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new sp({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();return l?queueMicrotask(()=>{c.close()}):VJt(r)||c.enqueue(new Uint8Array(u)),c.desiredSize>0},async cancel(c){await A.return()},type:void 0})}return[{stream:r,source:s,length:i},o]}function ZJt(t,e=!1){return sp||(sp=B("stream/web").ReadableStream),t instanceof sp&&(Ste(!Aw.isDisturbed(t),"The body has already been consumed."),Ste(!t.locked,"The stream is locked.")),rOe(t,e)}function $Jt(t){let[e,r]=t.stream.tee(),n=qJt(r,{transfer:[r]}),[,s]=n.tee();return t.stream=e,{stream:s,length:t.length,source:t.source}}async function*$_e(t){if(t)if(tOe(t))yield t;else{let e=t.stream;if(Aw.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[JJt]=!0,yield*e}}function Dte(t){if(t.aborted)throw new eOe("The operation was aborted.","AbortError")}function eVt(t){return{blob(){return cH(this,r=>{let n=sVt(this);return n==="failure"?n="":n&&(n=KJt(n)),new GJt([r],{type:n})},t)},arrayBuffer(){return cH(this,r=>new Uint8Array(r).buffer,t)},text(){return cH(this,nOe,t)},json(){return cH(this,nVt,t)},async formData(){Nte.brandCheck(this,t),Dte(this[ip]);let r=this.headers.get("Content-Type");if(/multipart\/form-data/.test(r)){let n={};for(let[a,A]of this.headers)n[a.toLowerCase()]=A;let s=new X_e,i;try{i=new LJt({headers:n,preservePath:!0})}catch(a){throw new eOe(`${a}`,"AbortError")}i.on("field",(a,A)=>{s.append(a,A)}),i.on("file",(a,A,c,u,l)=>{let d=[];if(u==="base64"||u.toLowerCase()==="base64"){let h="";A.on("data",g=>{h+=g.toString().replace(/[\r\n]/gm,"");let p=h.length-h.length%4;d.push(Buffer.from(h.slice(0,p),"base64")),h=h.slice(p)}),A.on("end",()=>{d.push(Buffer.from(h,"base64")),s.append(a,new Z_e(d,c,{type:l}))})}else A.on("data",h=>{d.push(h)}),A.on("end",()=>{s.append(a,new Z_e(d,c,{type:l}))})});let o=new Promise((a,A)=>{i.on("finish",a),i.on("error",c=>A(new TypeError(c)))});if(this.body!==null)for await(let a of $_e(this[ip].body))i.write(a);return i.end(),await o,s}else if(/application\/x-www-form-urlencoded/.test(r)){let n;try{let i="",o=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let a of $_e(this[ip].body)){if(!tOe(a))throw new TypeError("Expected Uint8Array chunk");i+=o.decode(a,{stream:!0})}i+=o.decode(),n=new URLSearchParams(i)}catch(i){throw Object.assign(new TypeError,{cause:i})}let s=new X_e;for(let[i,o]of n)s.append(i,o);return s}else throw await Promise.resolve(),Dte(this[ip]),Nte.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}function tVt(t){Object.assign(t.prototype,eVt(t))}async function cH(t,e,r){if(Nte.brandCheck(t,r),Dte(t[ip]),rVt(t[ip].body))throw new TypeError("Body is unusable");let n=OJt(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[ip].body==null?(i(new Uint8Array),n.promise):(await HJt(t[ip].body,i,s),n.promise)}function rVt(t){return t!=null&&(t.stream.locked||Aw.isDisturbed(t.stream))}function nOe(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),XJt.decode(t))}function nVt(t){return JSON.parse(nOe(t))}function sVt(t){let{headersList:e}=t[ip],r=e.get("content-type");return r===null?"failure":jJt(r)}sOe.exports={extractBody:rOe,safelyExtractBody:ZJt,cloneBody:$Jt,mixinBody:tVt}});var AOe=f((qNn,aOe)=>{"use strict";var{InvalidArgumentError:Yn,NotSupportedError:iVt}=Un(),op=B("assert"),{kHTTP2BuildRequest:oVt,kHTTP2CopyHeaders:aVt,kHTTP1BuildRequest:AVt}=ts(),xA=Gr(),iOe=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,oOe=/[^\t\x20-\x7e\x80-\xff]/,cVt=/[^\u0021-\u00ff]/,Id=Symbol("handler"),Ti={},xte;try{let t=B("diagnostics_channel");Ti.create=t.channel("undici:request:create"),Ti.bodySent=t.channel("undici:request:bodySent"),Ti.headers=t.channel("undici:request:headers"),Ti.trailers=t.channel("undici:request:trailers"),Ti.error=t.channel("undici:request:error")}catch{Ti.create={hasSubscribers:!1},Ti.bodySent={hasSubscribers:!1},Ti.headers={hasSubscribers:!1},Ti.trailers={hasSubscribers:!1},Ti.error={hasSubscribers:!1}}var Tte=class t{constructor(e,{path:r,method:n,body:s,headers:i,query:o,idempotent:a,blocking:A,upgrade:c,headersTimeout:u,bodyTimeout:l,reset:d,throwOnError:h,expectContinue:g},p){if(typeof r!="string")throw new Yn("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsLine truncated
`),this.body=C.stream,this.contentLength=C.length}else xA.isBlobLike(s)&&this.contentType==null&&s.type&&(this.contentType=s.type,this.headers+=`content-type: ${s.type}\r
`);xA.validateHandler(p,n,c),this.servername=xA.getServerName(this.host),this[Id]=p,Ti.create.hasSubscribers&&Ti.create.publish({request:this})}onBodySent(e){if(this[Id].onBodySent)try{return this[Id].onBodySent(e)}catch(r){this.abort(r)}}onRequestSent(){if(Ti.bodySent.hasSubscribers&&Ti.bodySent.publish({request:this}),this[Id].onRequestSent)try{return this[Id].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(op(!this.aborted),op(!this.completed),this.error)e(this.error);else return this.abort=e,this[Id].onConnect(e)}onHeaders(e,r,n,s){op(!this.aborted),op(!this.completed),Ti.headers.hasSubscribers&&Ti.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:s}});try{return this[Id].onHeaders(e,r,n,s)}catch(i){this.abort(i)}}onData(e){op(!this.aborted),op(!this.completed);try{return this[Id].onData(e)}catch(r){return this.abort(r),!1}}onUpgrade(e,r,n){return op(!this.aborted),op(!this.completed),this[Id].onUpgrade(e,r,n)}onComplete(e){this.onFinally(),op(!this.aborted),this.completed=!0,Ti.trailers.hasSubscribers&&Ti.trailers.publish({request:this,trailers:e});try{return this[Id].onComplete(e)}catch(r){this.onError(r)}}onError(e){if(this.onFinally(),Ti.error.hasSubscribers&&Ti.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Id].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,r){return H1(this,e,r),this}static[AVt](e,r,n){return new t(e,r,n)}static[oVt](e,r,n){let s=r.headers;r={...r,headers:null};let i=new t(e,r,n);if(i.headers={},Array.isArray(s)){if(s.length%2!==0)throw new Yn("headers array must be even");for(let o=0;o<s.length;o+=2)H1(i,s[o],s[o+1],!0)}else if(s&&typeof s=="object"){let o=Object.keys(s);for(let a=0;a<o.length;a++){let A=o[a];H1(i,A,s[A],!0)}}else if(s!=null)throw new Yn("headers must be an object or an array");return i}static[aVt](e){let r=e.split(`\r
`),n={};for(let s of r){let[i,o]=s.split(": ");o==null||o.length===0||(n[i]?n[i]+=`,${o}`:n[i]=o)}return n}};function FB(t,e,r){if(e&&typeof e=="object")throw new Yn(`invalid ${t} header`);if(e=e!=null?`${e}`:"",oOe.exec(e)!==null)throw new Yn(`invalid ${t} header`);return r?e:`${t}: ${e}\r
`}function H1(t,e,r,n=!1){if(r&&typeof r=="object"&&!Array.isArray(r))throw new Yn(`invalid ${e} header`);if(r===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(oOe.exec(r)!==null)throw new Yn(`invalid ${e} header`);t.host=r}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(r,10),!Number.isFinite(t.contentLength))throw new Yn("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=r,n?t.headers[e]=FB(e,r,n):t.headers+=FB(e,r);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new Yn("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let s=typeof r=="string"?r.toLowerCase():null;if(s!=="close"&&s!=="keep-alive")throw new Yn("invalid connection header");s==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new Yn("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new Yn("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new iVt("expect header not supported");if(iOe.exec(e)===null)throw new Yn("invalid header key");if(Array.isArray(r))for(let s=0;s<r.length;s++)n?t.headers[e]?t.headers[e]+=`,${FB(e,r[s],n)}`:t.headers[e]=FB(e,r[s],n):t.headers+=FB(e,r[s]);else n?t.headers[e]=FB(e,r,n):t.headers+=FB(e,r)}}}aOe.exports=Tte});var uH=f((GNn,cOe)=>{"use strict";var uVt=B("events"),kte=class extends uVt{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};cOe.exports=kte});var G1=f((YNn,uOe)=>{"use strict";var lVt=uH(),{ClientDestroyedError:Fte,ClientClosedError:dVt,InvalidArgumentError:cw}=Un(),{kDestroy:hVt,kClose:gVt,kDispatch:Mte,kInterceptors:MB}=ts(),uw=Symbol("destroyed"),q1=Symbol("closed"),ap=Symbol("onDestroyed"),lw=Symbol("onClosed"),lH=Symbol("Intercepted Dispatch"),vte=class extends lVt{constructor(){super(),this[uw]=!1,this[ap]=null,this[q1]=!1,this[lw]=[]}get destroyed(){return this[uw]}get closed(){return this[q1]}get interceptors(){return this[MB]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[MB][r]!="function")throw new cw("interceptor must be an function")}this[MB]=e}close(e){if(e===void 0)return new Promise((n,s)=>{this.close((i,o)=>i?s(i):n(o))});if(typeof e!="function")throw new cw("invalid callback");if(this[uw]){queueMicrotask(()=>e(new Fte,null));return}if(this[q1]){this[lw]?this[lw].push(e):queueMicrotask(()=>e(null,null));return}this[q1]=!0,this[lw].push(e);let r=()=>{let n=this[lw];this[lw]=null;for(let s=0;s<n.length;s++)n[s](null,null)};this[gVt]().then(()=>this.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((s,i)=>{this.destroy(e,(o,a)=>o?i(o):s(a))});if(typeof r!="function")throw new cw("invalid callback");if(this[uw]){this[ap]?this[ap].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new Fte),this[uw]=!0,this[ap]=this[ap]||[],this[ap].push(r);let n=()=>{let s=this[ap];this[ap]=null;for(let i=0;i<s.length;i++)s[i](null,null)};this[hVt](e).then(()=>{queueMicrotask(n)})}[lH](e,r){if(!this[MB]||this[MB].length===0)return this[lH]=this[Mte],this[Mte](e,r);let n=this[Mte].bind(this);for(let s=this[MB].length-1;s>=0;s--)n=this[MB][s](n);return this[lH]=n,n(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new cw("handler must be an object");try{if(!e||typeof e!="object")throw new cw("opts must be an object.");if(this[uw]||this[ap])throw new Fte;if(this[q1])throw new dVt;return this[lH](e,r)}catch(n){if(typeof r.onError!="function")throw new cw("invalid onError method");return r.onError(n),!1}}};uOe.exports=vte});var Y1=f((WNn,hOe)=>{"use strict";var fVt=B("net"),lOe=B("assert"),dOe=Gr(),{InvalidArgumentError:pVt,ConnectTimeoutError:mVt}=Un(),Lte,Ute;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?Ute=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(r=>{if(this._sessionCache.size<this._maxCachedSessions)return;let n=this._sessionCache.get(r);n!==void 0&&n.deref()===void 0&&this._sessionCache.delete(r)})}get(e){let r=this._sessionCache.get(e);return r?r.deref():null}set(e,r){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(r)),this._sessionRegistry.register(r,e))}}:Ute=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,r){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:n}=this._sessionCache.keys().next();this._sessionCache.delete(n)}this._sessionCache.set(e,r)}}};function EVt({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,...s}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new pVt("maxCachedSessions must be a positive integer or zero");let i={path:r,...s},o=new Ute(e??100);return n=n??1e4,t Line truncated
`,this[xOe]=A??3e5,this[DOe]=s??3e5,this[K1]=I??!0,this[zVt]=w,this[X1]=z,this[pE]=null,this[kOe]=W>-1?W:-1,this[Ph]="h1",this[kc]=null,this[CH]=oe?{openStreams:0,maxConcurrentStreams:Z??100}:null,this[FOe]=`${this[qo].hostname}${this[qo].port?`:${this[qo].port}`:""}`,this[rs]=[],this[ns]=0,this[Tc]=0}get pipelining(){return this[EE]}set pipelining(e){this[EE]=e,Fc(this,!0)}get[UB](){return this[rs].length-this[Tc]}get[Fs](){return this[Tc]-this[ns]}get[LB](){return this[rs].length-this[ns]}get[WVt](){return!!this[Ws]&&!this[hw]&&!this[Ws].destroyed}get[Jte](){let e=this[Ws];return e&&(e[Ja]||e[up]||e[fw])||this[LB]>=(this[EE]||1)||this[UB]>0}[VVt](e){UOe(this),this.once("connect",e)}[XVt](e,r){let n=e.origin||this[qo].origin,s=this[Ph]==="h2"?Yte[$Vt](n,e,r):Yte[tWt](n,e,r);return this[rs].push(s),this[vB]||(ft.bodyLength(s.body)==null&&ft.isIterable(s.body)?(this[vB]=1,process.nextTick(Fc,this)):Fc(this,!0)),this[vB]&&this[mE]!==2&&this[Jte]&&(this[mE]=2),this[mE]<2}async[jVt](){return new Promise(e=>{this[LB]?this[pE]=e:e(null)})}async[KVt](e){return new Promise(r=>{let n=this[rs].splice(this[Tc]);for(let i=0;i<n.length;i++){let o=n[i];Va(this,o,e)}let s=()=>{this[pE]&&(this[pE](),this[pE]=null),r()};this[kc]!=null&&(ft.destroy(this[kc],e),this[kc]=null,this[CH]=null),this[Ws]?ft.destroy(this[Ws].on("close",s),e):queueMicrotask(s),Fc(this)})}};function cWt(t){Ve(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ws][Go]=t,yH(this[Uh],t)}function uWt(t,e,r){let n=new Lh(`HTTP/2: "frameError" received - type ${t}, code ${e}`);r===0&&(this[Ws][Go]=n,yH(this[Uh],n))}function lWt(){ft.destroy(this,new gw("other side closed")),ft.destroy(this[Ws],new gw("other side closed"))}function dWt(t){let e=this[Uh],r=new Lh(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[Ws]=null,e[kc]=null,e.destroyed){Ve(this[UB]===0);let n=e[rs].splice(e[ns]);for(let s=0;s<n.length;s++){let i=n[s];Va(this,i,r)}}else if(e[Fs]>0){let n=e[rs][e[ns]];e[rs][e[ns]++]=null,Va(e,n,r)}e[Tc]=e[ns],Ve(e[Fs]===0),e.emit("disconnect",e[qo],[e],r),Fc(e)}var Fh=fOe(),hWt=gH(),gWt=Buffer.alloc(0);async function fWt(){let t=process.env.JEST_WORKER_ID?Hte():void 0,e;try{e=await WebAssembly.compile(Buffer.from(QOe(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||Hte(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-vh+Mh.byteOffset;return Gi.onStatus(new fH(Mh.buffer,i,s))||0},wasm_on_message_begin:r=>(Ve.strictEqual(Gi.ptr,r),Gi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-vh+Mh.byteOffset;return Gi.onHeaderField(new fH(Mh.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-vh+Mh.byteOffset;return Gi.onHeaderValue(new fH(Mh.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ve.strictEqual(Gi.ptr,r),Gi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-vh+Mh.byteOffset;return Gi.onBody(new fH(Mh.buffer,i,s))||0},wasm_on_message_complete:r=>(Ve.strictEqual(Gi.ptr,r),Gi.onMessageComplete()||0)}})}var Gte=null,zte=fWt();zte.catch();var Gi=null,Mh=null,pH=0,vh=null,pw=1,EH=2,jte=3,Kte=class{constructor(e,r,{exports:n}){Ve(Number.isFinite(e[mH])&&e[mH]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Fh.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[mH],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[kOe]}setTimeout(e,r){this.timeoutType=r,e!==this.timeoutValue?(qte.clearTimeout(this.timeout),e?(this.timeout=qte.setTimeout(pWt,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(Ve(this.ptr!=null),Ve(Gi==null),this.llhttp.llhttp_resume(this.ptr),Ve(this.timeoutType===EH),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||gWt),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Ve(this.ptr!=null),Ve(Gi==null),Ve(!this.paused);let{socket:r,llhttp:n}=this;e.length>pH&&(vh&&n.free(vh),pH=Math.ceil(e.length/4096)*4096,vh=n.malloc(pH)),new Uint8Array(n.memory.buffer,vh,pH).set(e);try{let s;try{Mh=e,Gi=this,s=n.llhttp_execute(this.ptr,vh,e.length)}catch(o){throw o}finally{Gi=null,Mh=null}let i=n.llhttp_get_error_pos(this.ptr)-vh;if(s===Fh.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(i));else if(s===Fh.ERROR.PAUSED)this.paused=!0,r.unshift(e.slice(i));else if(s!==Fh.ERROR.OK){let o=n.llhttp_get_error_reason(this.ptr),a="";if(o){let A=new Uint8Array(n.memory.buffer,o).indexOf(0);a="Response do Line truncated
`;return typeof i=="string"?g+=`host: ${i}\r
`:g+=t[NOe],o?g+=`connection: upgrade\r
upgrade: ${o}\r
`:t[EE]&&!h[Ja]?g+=`connection: keep-alive\r
`:t[HS]&&!h[ti]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,a&&(g+=a),Aa.sendHeaders.hasSubscribers&&Aa.sendHeaders.publish({request:e,headers:g,socket:h}),!r||l===0?(d===0?h.write(`${g}content-length: 0\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return zre.sendHeaders.hasSubscribers&&zre.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?tne(f,null,t,e,h,u,g,l):Pe.isBuffer(c)?tne(f,c,t,e,h,u,g,l):Pe.isBlobLike(c)?typeof c.stream=="function"?rne(f,c.stream(),t,e,h,u,g,l):PGe(f,c,t,e,h,u,g,l):Pe.isStream(c)?UGe(f,c,t,e,h,u,g,l):Pe.isIterable(c)?rne(f,c,t,e,h,u,g,l):Me(!1),!0}function UGe(t,e,r,n,s,i,o,a){Me(i!==0||r[cn]===0,"stream body cannot be pipelined");let c=!1,A=new YS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){Pe.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new nne;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Me(s.destroyed||s[Fl]&&r[cn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Pe.destroy(e,f):Pe.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 tne(t,e,r,n,s,i,o,a){try{e?Pe.isBuffer(e)&&(Me(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"):(Ve(d===null,"no body must not have content length"),h.write(`${g}\r
`,"latin1")),e.onRequestSent()):ft.isBuffer(r)?(Ve(d===r.byteLength,"buffer body must have content length"),h.cork(),h.write(`${g}content-length: ${d}\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[ti]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"),h.write(r),h.uncork(),e.onBodySent(r),e.onRequestSent(),u||(h[Ja]=!0)):ft.isBlobLike(r)?typeof r.stream=="function"?BH({body:r.stream(),client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):OOe({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):ft.isStream(r)?_Oe({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):ft.isIterable(r)?BH({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):Ve(!1),!0}function CWt(t,e,r){let{body:n,method:s,path:i,host:o,upgrade:a,expectContinue:A,signal:c,headers:u}=r,l;if(typeof u=="string"?l=Yte[eWt](u.trim()):l=u,a)return Va(t,r,new Error("Upgrade not supported for H2")),!1;try{r.onConnect(I=>{r.aborted||r.completed||Va(t,r,I||new Zte)})}catch(I){Va(t,r,I)}if(r.aborted)return!1;let d,h=t[CH];if(l[rWt]=o||t[FOe],l[nWt]=s,s==="CONNECT")return e.ref(),d=e.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(r.onUpgrade(null,null,d),++h.openStreams):d.once("ready",()=>{r.onUpgrade(null,null,d),++h.openStreams}),d.once("close",()=>{h.openStreams-=1,h.openStreams===0&&e.unref()}),!0;l[sWt]=i,l[iWt]="https";let g=s==="PUT"||s==="POST"||s==="PATCH";n&&typeof n.read=="function"&&n.read(0);let p=ft.bodyLength(n);if(p==null&&(p=r.contentLength),(p===0||!g)&&(p=null),POe(s)&&p>0&&r.contentLength!=null&&r.contentLength!==p){if(t[K1])return Va(t,r,new cp),!1;process.emitWarning(new cp)}p!=null&&(Ve(n,"no body must not have content length"),l[oWt]=`${p}`),e.ref();let C=s==="GET"||s==="HEAD";return A?(l[aWt]="100-continue",d=e.request(l,{endStream:C,signal:c}),d.once("continue",m)):(d=e.request(l,{endStream:C,signal:c}),m()),++h.openStreams,d.once("response",I=>{let{[AWt]:y,...w}=I;r.onHeaders(Number(y),w,d.resume.bind(d),"")===!1&&d.pause()}),d.once("end",()=>{r.onComplete([])}),d.on("data",I=>{r.onData(I)===!1&&d.pause()}),d.once("close",()=>{h.openStreams-=1,h.openStreams===0&&e.unref()}),d.once("error",function(I){t[kc]&&!t[kc].destroyed&&!this.closed&&!this.destroyed&&(h.streams-=1,ft.destroy(d,I))}),d.once("frameError",(I,y)=>{let w=new Lh(`HTTP/2: "frameError" received - type ${I}, code ${y}`);Va(t,r,w),t[kc]&&!t[kc].destroyed&&!this.closed&&!this.destroyed&&(h.streams-=1,ft.destroy(d,w))}),!0;function m(){n?ft.isBuffer(n)?(Ve(p===n.byteLength,"buffer body must have content length"),d.cork(),d.write(n),d.uncork(),d.end(),r.onBodySent(n),r.onRequestSent()):ft.isBlobLike(n)?typeof n.stream=="function"?BH({client:t,request:r,contentLength:p,h2stream:d,expectsPayload:g,body:n.stream(),socket:t[Ws],header:""}):OOe({body:n,client:t,request:r,contentLength:p,expectsPayload:g,h2stream:d,header:"",socket:t[Ws]}):ft.isStream(n)?_Oe({body:n,client:t,request:r,contentLength:p,expectsPayload:g,socket:t[Ws],h2stream:d,header:""}):ft.isIterable(n)?BH({body:n,client:t,request:r,contentLength:p,expectsPayload:g,header:"",h2stream:d,socket:t[Ws]}):Ve(!1):r.onRequestSent()}}function _Oe({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){if(Ve(i!==0||r[Fs]===0,"stream body cannot be pipelined"),r[Ph]==="h2"){let p=function(C){n.onBodySent(C)},g=LVt(e,t,C=>{C?(ft.destroy(e,C),ft.destroy(t,C)):n.onRequestSent()});g.on("data",p),g.once("end",()=>{g.removeListener("data",p),ft.destroy(g)});return}let A=!1,c=new QH({socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){ft.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(A)return;let g=new Zte;queueMicrotask(()=>h(g))},h=function(g){if(!A){if(A=!0,Ve(s.destroyed||s[up]&&r[Fs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("error",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?ft.destroy(e,g):ft.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h)}async function OOe({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){Ve(i===e.size,"blob body must have content length");let A=r[Ph]==="h2";try{if(i!=null&&i!==e.size)throw new cp;let c=Buffer.from(await e.arrayBuffer());A?(t.cork(),t.write(c),t.uncork()):(s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(Me(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[gu]()}catch(c){t(c)}}async function PGe(t,e,r,n,s,i,o,a){Me(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(c),s.uncork()),n.onBodySent(c),n.onRequestSent(),a||(s[Ja]=!0),Fc(r)}catch(c){ft.destroy(A?t:s,c)}}async function BH({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){Ve(i!==0||r[Fs]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ve(A===null),s[Go]?h(s[Go]):A=d});if(r[Ph]==="h2"){t.on("close",c).on("drain",c);try{for await(let d of e){if(s[Go])throw s[Go];let h=t.write(d);n.onBodySent(d),h||await u()}}catch(d){t.destroy(d)}finally{n.onRequestSent(),t.end(),t.off("close",c).off("drain",c)}return}s.on("close",c).on("drain",c);let l=new QH({socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Go])throw s[Go];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var QH=class{constructor({socket:e,request:r,contentLength:n,client:s,expectsPayload:i,header:o}){this.socket=e,this.request=r,this.contentLength=n,this.client=s,this.bytesWritten=0,this.expectsPayload=i,this.header=o,e[up]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Go])throw r[Go];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[K1])throw new cp;process.emitWarning(new cp)}r.cork(),o===0&&(a||(r[Ja]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[ti]=!0),r[gu]()}catch(c){t(c)}}async function rne(t,e,r,n,s,i,o,a){Me(i!==0||r[cn]===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)=>{Me(c===null),s[Ts]?h(s[Ts]):c=d});s.on("close",A).on("drain",A);let l=new YS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Ts])throw s[Ts];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var YS=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[Fl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Ts])throw r[Ts];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[kU])throw new Wh;process.emitWarning(new Wh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[ti]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Vs].timeout&&r[Vs].timeoutType===pw&&r[Vs].timeout.refresh&&r[Vs].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[up]=!1,e[Go])throw e[Go];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[lr].timeout&&r[lr].timeoutType===gm&&r[lr].timeout.refresh&&r[lr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Fl]=!1,e[Ts])throw e[Ts];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[K1])throw new cp;process.emitWarning(new cp)}e[Vs].timeout&&e[Vs].timeoutType===pw&&e[Vs].timeout.refresh&&e[Vs].timeout.refresh(),Fc(n)}}destroy(e){let{socket:r,client:n}=this;r[up]=!1,e&&(Ve(n[Fs]<=1,"pipeline should only contain this request"),ft.destroy(r,e))}};function Va(t,e,r){try{e.onError(r),Ve(e.aborted)}catch(n){t.emit("error",n)}}HOe.exports=Wte});var GOe=f((rSn,qOe)=>{"use strict";var bH=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};qOe.exports=class{constructor(){this.head=this.tail=new bH}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new bH),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var JOe=f((nSn,YOe)=>{var{kFree:IWt,kConnected:BWt,kPending:QWt,kQueued:yWt,kRunning:bWt,kSize:wWt}=ts(),PB=Symbol("pool"),$te=class{constructor(e){this[PB]=e}get connected(){return this[PB][BWt]}get free(){return this[PB][IWt]}get pending(){return this[PB][QWt]}get queued(){return this[PB][yWt]}get running(){return this[PB][bWt]}get size(){return this[PB][wWt]}};YOe.exports=$te});var ire=f((sSn,tHe)=>{"use strict";var NWt=G1(),SWt=GOe(),{kConnected:ere,kSize:VOe,kRunning:WOe,kPending:zOe,kQueued:$1,kBusy:RWt,kFree:DWt,kUrl:xWt,kClose:TWt,kDestroy:kWt,kDispatch:FWt}=ts(),MWt=JOe(),TA=Symbol("clients"),Wa=Symbol("needDrain"),ek=Symbol("queue"),tre=Symbol("closed resolve"),rre=Symbol("onDrain"),jOe=Symbol("onConnect"),KOe=Symbol("onDisconnect"),XOe=Symbol("onConnectionError"),nre=Symbol("get dispatcher"),$Oe=Symbol("add client"),eHe=Symbol("remove client"),ZOe=Symbol("stats"),sre=class extends NWt{constructor(){super(),this[ek]=new SWt,this[TA]=[],this[$1]=0;let e=this;this[rre]=function(n,s){let i=e[ek],o=!1;for(;!o;){let a=i.shift();if(!a)break;e[$1]--,o=!this.dispatch(a.opts,a.handler)}this[Wa]=o,!this[Wa]&&e[Wa]&&(e[Wa]=!1,e.emit("drain",n,[e,...s])),e[tre]&&i.isEmpty()&&Promise.all(e[TA].map(a=>a.close())).then(e[tre])},this[jOe]=(r,n)=>{e.emit("connect",r,[e,...n])},this[KOe]=(r,n,s)=>{e.emit("disconnect",r,[e,...n],s)},this[XOe]=(r,n,s)=>{e.emit("connectionError",r,[e,...n],s)},this[ZOe]=new MWt(this)}get[RWt](){return this[Wa]}get[ere](){return this[TA].filter(e=>e[ere]).length}get[DWt](){return this[TA].filter(e=>e[ere]&&!e[Wa]).length}get[zOe](){let e=this[$1];for(let{[zOe]:r}of this[TA])e+=r;return e}get[WOe](){let e=0;for(let{[WOe]:r}of this[TA])e+=r;return e}get[VOe](){let e=this[$1];for(let{[VOe]:r}of this[TA])e+=r;return e}get stats(){return this[ZOe]}async[TWt](){return this[ek].isEmpty()?Promise.all(this[TA].map(e=>e.close())):new Promise(e=>{this[tre]=e})}async[kWt](e){for(;;){let r=this[ek].shift();if(!r)break;r.handler.onError(e)}return Promise.all(this[TA].map(r=>r.destroy(e)))}[FWt](e,r){let n=this[nre]();return n?n.dispatch(e,r)||(n[Wa]=!0,this[Wa]=!this[nre]()):(this[Wa]=!0,this[ek].push({opts:e,handler:r}),this[$1]++),!this[Wa]}[$Oe](e){return e.on("drain",this[rre]).on("connect",this[jOe]).on("disconnect",this[KOe]).on("connectionError",this[XOe]),this[TA].push(e),this[Wa]&&process.nextTick(()=>{this[Wa]&&this[rre](e[xWt],[this,e])}),this}[eHe](e){e.close(()=>{let r=this[TA].indexOf(e);r!==-1&&this[TA].splice(r,1)}),this[Wa]=this[TA].some(r=>!r[Wa]&&r.closed!==!0&&r.destroyed!==!0)}};tHe.exports={PoolBase:sre,kClients:TA,kNeedDrain:Wa,kAddClient:$Oe,kRemoveClient:eHe,kGetDispatcher:nre}});var mw=f((iSn,sHe)=>{"use strict";var{PoolBase:vWt,kClients:wH,kNeedDrain:LWt,kAddClient:UWt,kGetDispatcher:PWt}=ire(),_Wt=Z1(),{InvalidArgumentError:ore}=Un(),are=Gr(),{kUrl:rHe,kInterceptors:OWt}=ts(),HWt=Y1(),Are=Symbol("options"),cre=Symbol("connections"),nHe=Symbol("factory");function qWt(t,e){return new _Wt(t,e)}var ure=class extends vWt{constructor(e,{connections:r,factory:n=qWt,connect:s,connectTimeout:i,tls:o,maxCachedSessions:a,socketPath:A,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u,allowH2:l,...d}={}){if(super(),r!=null&&(!Number.isFinite(r)||r<0))throw new ore("invalid connections");if(typeof n!="function")throw new ore("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new ore("connect must be a function or an object");typeof s!="function"&&(s=HWt({...o,maxCachedSessions:a,allowH2:l,socketPath:A,timeout:i,...are.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u}:void 0,...s})),this[OWt]=d.interceptors&&d.interceptors.Pool&&Array.isArray(d.interceptors.Pool)?d.interceptors.Pool:[],this[cre]=r||null,this[rHe]=are.parseOrigin(e),this[Are]={...are.deepClone(d),connect:s,allowH2:l},this[Are].interceptors=d.interceptors?{...d.interceptors}:void 0,this[nHe]=n,this.on("con Line truncated
`,"latin1"),r!==null&&s!==r){if(n[kU])throw new Wh;process.emitWarning(new Wh)}e[lr].timeout&&e[lr].timeoutType===gm&&e[lr].timeout.refresh&&e[lr].timeout.refresh(),n[gu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Fl]=!1,e&&(Me(n[cn]<=1,"pipeline should only contain this request"),s(e))}};cne.exports=vGe});var mne=C((JJt,pne)=>{"use strict";var xo=Q("node:assert"),{pipeline:OGe}=Q("node:stream"),Et=dt(),{RequestContentLengthMismatchError:LU,RequestAbortedError:une,SocketError:JI,InformationalError:UU}=_t(),{kUrl:VS,kReset:JS,kClient:pm,kRunning:zS,kPending:HGe,kQueue:Ml,kPendingIdx:PU,kRunningIdx:ka,kError:_a,kSocket:_n,kStrictContentLength:GGe,kOnError:OU,kMaxConcurrentStreams:gne,kHTTP2Session:va,kResume:Ll,kSize:qGe,kHTTPContext:YGe}=br(),pu=Symbol("open streams"),lne,dne=!1,WS;try{WS=Q("node:http2")}catch{WS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:VGe,HTTP2_HEADER_METHOD:WGe,HTTP2_HEADER_PATH:JGe,HTTP2_HEADER_SCHEME:zGe,HTTP2_HEADER_CONTENT_LENGTH:jGe,HTTP2_HEADER_EXPECT:KGe,HTTP2_HEADER_STATUS:$Ge}}=WS;function XGe(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 ZGe(t,e){t[_n]=e,dne||(dne=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=WS.connect(t[VS],{createConnection:()=>e,peerMaxConcurrentStreams:t[gne]});r[pu]=0,r[pm]=t,r[_n]=e,Et.addListener(r,"error",tqe),Et.addListener(r,"frameError",rqe),Et.addListener(r,"end",nqe),Et.addListener(r,"goaway",sqe),Et.addListener(r,"close",function(){let{[pm]:s}=this,{[_n]:i}=s,o=this[_n][_a]||this[_a]||new JI("closed",Et.getSocketInfo(i));if(s[va]=null,s.destroyed){xo(s[HGe]===0);let a=s[Ml].splice(s[ka]);for(let c=0;c<a.length;c++){let A=a[c];Et.errorRequest(s,A,o)}}}),r.unref(),t[va]=r,e[va]=r,Et.addListener(e,"error",function(s){xo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_a]=s,this[pm][OU](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new JI("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[_a]||new JI("closed",Et.getSocketInfo(this));t[_n]=null,this[va]!=null&&this[va].destroy(s),t[PU]=t[ka],xo(t[zS]===0),t.emit("disconnect",t[VS],[t],s),t[Ll]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return oqe(t,...s)},resume(){eqe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function eqe(t){let e=t[_n];e?.destroyed===!1&&(t[qGe]===0&&t[gne]===0?(e.unref(),t[va].unref()):(e.ref(),t[va].ref()))}function tqe(t){xo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_n][_a]=t,this[pm][OU](t)}function rqe(t,e,r){if(r===0){let n=new UU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[_n][_a]=n,this[pm][OU](n)}}function nqe(){let t=new JI("other side closed",Et.getSocketInfo(this[_n]));this.destroy(t),Et.destroy(this[_n],t)}function sqe(t){let e=this[_a]||new JI(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[pm];if(r[_n]=null,r[YGe]=null,this[va]!=null&&(this[va].destroy(e),this[va]=null),Et.destroy(this[_n],e),r[ka]<r[Ml].length){let n=r[Ml][r[ka]];r[Ml][r[ka]++]=null,Et.errorRequest(r,n,e),r[PU]=r[ka]}xo(r[zS]===0),r.emit("disconnect",r[VS],[r],e),r[Ll]()}function iqe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function oqe(t,e){let r=t[va],{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 B=0;B<A.length;B+=2){let M=A[B+0],V=A[B+1];if(Array.isArray(V))for(let k=0;k<V.length;k++)l[M]?l[M]+=`,${V[k]}`:l[M]=V[k];else l[M]=V}let d,{hostname:h,port:f}=t[VS];l[VGe]=i||`${h}${f?`:${f}`:""}`,l[WGe]=n;let g=B=>{e.aborted||e.completed||(B=B||new une,Et.errorRequest(t,e,B),d!=null&&Et.destroy(d,B),Et.destroy(u,B),t[Ml][t[ka]++]=null,t[Ll]())};try{e.onConnect(g)}catch(B){Et.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[pu],t[Ml][t[ka]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[pu],t[Ml][t[ka]++]=null}),d.once("close",()=>{r[pu]-=1,r[pu]===0&&r.unref()}),!0;l[JGe]=s,l[zGe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Et.bodyLength(u);if(Et.isFormDataLike(u)){lne??=dm().extractBody;let[B,M]=lne(u);l["content-type"]=M,u=B.stream,m=B.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),iqe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[GGe])return Et.errorRequest(t,e,new LU),!1;process.emitWarning(new LU)}m!=null&&(xo(u,"no body must not have content length"),l[jGe]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[KGe]="100-continue",d=r.request(l,{endStream:I,signal:c}),d.once("cont Line truncated
`,this[kqe]=c??3e5,this[Dqe]=s??3e5,this[vqe]=I??!0,this[_qe]=B,this[YU]=V,this[Pl]=null,this[Pqe]=P>-1?P:-1,this[Hqe]=Z??100,this[Xr]=null,this[Fa]=[],this[Eu]=0,this[Ma]=0,this[$I]=ue=>WU(this,ue),this[Oqe]=ue=>xne(this,ue)}get pipelining(){return this[XS]}set pipelining(e){this[XS]=e,this[$I](!0)}get[ey](){return this[Fa].length-this[Ma]}get[ZI](){return this[Ma]-this[Eu]}get[XI](){return this[Fa].length-this[Eu]}get[Qqe](){return!!this[Xr]&&!this[Em]&&!this[Xr].destroyed}get[qU](){return!!(this[Xr]?.busy(null)||this[XI]>=(Tne(this)||1)||this[ey]>0)}[bqe](e){Rne(this),this.once("connect",e)}[Uqe](e,r){let n=e.origin||this[kc].origin,s=new mqe(n,e,r);return this[Fa].push(s),this[$h]||(Kh.bodyLength(s.body)==null&&Kh.isIterable(s.body)?(this[$h]=1,queueMicrotask(()=>WU(this))):this[$I](!0)),this[$h]&&this[Ol]!==2&&this[qU]&&(this[Ol]=2),this[Ol]<2}async[Mqe](){return new Promise(e=>{this[XI]?this[Pl]=e:e(null)})}async[Lqe](e){return new Promise(r=>{let n=this[Fa].splice(this[Ma]);for(let i=0;i<n.length;i++){let o=n[i];Kh.errorRequest(this,o,e)}let s=()=>{this[Pl]&&(this[Pl](),this[Pl]=null),r(null)};this[Xr]?(this[Xr].destroy(e,s),this[Xr]=null):queueMicrotask(s),this[$I]()})}},Yqe=$S();function xne(t,e){if(t[ZI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){mu(t[Ma]===t[Eu]);let r=t[Fa].splice(t[Eu]);for(let n=0;n<r.length;n++){let s=r[n];Kh.errorRequest(t,s,e)}mu(t[XI]===0)}}async function Rne(t){mu(!t[Em]),mu(!t[Xr]);let{host:e,hostname:r,protocol:n,port:s}=t[kc];if(r[0]==="["){let i=r.indexOf("]");mu(i!==-1);let o=r.substring(1,i);mu(Nne.isIP(o)),r=o}t[Em]=!0,mm.beforeConnect.hasSubscribers&&mm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ul],localAddress:t[KI]},connector:t[jI]});try{let i=await new Promise((o,a)=>{t[jI]({host:e,hostname:r,protocol:n,port:s,servername:t[Ul],localAddress:t[KI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Kh.destroy(i.on("error",wne),new Iqe);return}mu(i);try{t[Xr]=i.alpnProtocol==="h2"?await qqe(t,i):await Gqe(t,i)}catch(o){throw i.destroy().on("error",wne),o}t[Em]=!1,i[Fqe]=0,i[YU]=t[YU],i[Bqe]=t,i[Sqe]=null,mm.connected.hasSubscribers&&mm.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ul],localAddress:t[KI]},connector:t[jI],socket:i}),t.emit("connect",t[kc],[t])}catch(i){if(t.destroyed)return;if(t[Em]=!1,mm.connectError.hasSubscribers&&mm.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ul],localAddress:t[KI]},connector:t[jI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(mu(t[ZI]===0);t[ey]>0&&t[Fa][t[Ma]].servername===t[Ul];){let o=t[Fa][t[Ma]++];Kh.errorRequest(t,o,i)}else xne(t,i);t.emit("connectionError",t[kc],[t],i)}t[$I]()}function Sne(t){t[Ol]=0,t.emit("drain",t[kc],[t])}function WU(t,e){t[$h]!==2&&(t[$h]=2,Vqe(t,e),t[$h]=0,t[Eu]>256&&(t[Fa].splice(0,t[Eu]),t[Ma]-=t[Eu],t[Eu]=0))}function Vqe(t,e){for(;;){if(t.destroyed){mu(t[ey]===0);return}if(t[Pl]&&!t[XI]){t[Pl](),t[Pl]=null;return}if(t[Xr]&&t[Xr].resume(),t[qU])t[Ol]=2;else if(t[Ol]===2){e?(t[Ol]=1,queueMicrotask(()=>Sne(t))):Sne(t);continue}if(t[ey]===0||t[ZI]>=(Tne(t)||1))return;let r=t[Fa][t[Ma]];if(t[kc].protocol==="https:"&&t[Ul]!==r.servername){if(t[ZI]>0)return;t[Ul]=r.servername,t[Xr]?.destroy(new Cqe("servername changed"),()=>{t[Xr]=null,WU(t)})}if(t[Em])return;if(!t[Xr]){Rne(t);return}if(t[Xr].destroyed||t[Xr].busy(r))return;!r.aborted&&t[Xr].write(r)?t[Ma]++:t[Fa].splice(t[Ma],1)}}Dne.exports=VU});var JU=C((XJt,kne)=>{"use strict";var ZS=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)}};kne.exports=class{constructor(){this.head=this.tail=new ZS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new ZS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var _ne=C((ZJt,vne)=>{var{kFree:Wqe,kConnected:Jqe,kPending:zqe,kQueued:jqe,kRunning:Kqe,kSize:$qe}=br(),Xh=Symbol("pool"),zU=class{constructor(e){this[Xh]=e}get connected(){return this[Xh][Jqe]}get free(){return this[Xh][Wqe]}get pending(){return this[Xh][zqe]}get queued(){return this[Xh][jqe]}get running(){return this[Xh][Kqe]}get size(){return this[Xh][$qe]}};vne.exports=zU});var eP=C((ezt,Yne)=>{"use strict";var Xqe=nm(),Zqe=JU(),{kConnected:jU,kSize:Fne,kRunning:Mne,kPending:Lne,kQueued:ty,kBusy:eYe,kFree:tYe,kUrl:rYe,kClose:nYe,kDestroy:sYe,kDispatch:iYe}=br(),oYe=_ne(),ri=Symbol("clients"),xs=Symbol("needDrain"),ry=Symbol("queue"),KU=Symbol("closed resolve"),$U=Symbol("onDrain"),Une=Symbol("onConnect"),Pne=Symbol("onDisconnect"),One=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};Lqe.exports=zre});var Gqe=f((xSn,qqe)=>{"use strict";var{kProxy:Gjt,kClose:Yjt,kDestroy:Jjt,kInterceptors:Vjt}=ts(),{URL:Pqe}=B("url"),_qe=rk(),Wjt=mw(),zjt=G1(),{InvalidArgumentError:ak,RequestAbortedError:jjt}=Un(),Oqe=Y1(),ik=Symbol("proxy agent"),VH=Symbol("proxy client"),ok=Symbol("proxy headers"),jre=Symbol("request tls settings"),Kjt=Symbol("proxy tls settings"),Hqe=Symbol("connect endpoint function");function Xjt(t){return t==="https:"?443:80}function Zjt(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new ak("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}function $jt(t,e){return new Wjt(t,e)}var Kre=class extends zjt{constructor(e){if(super(e),this[Gjt]=Zjt(e),this[ik]=new _qe(e),this[Vjt]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new ak("Proxy opts.uri is mandatory");let{clientFactory:r=$jt}=e;if(typeof r!="function")throw new ak("Proxy opts.clientFactory must be a function.");this[jre]=e.requestTls,this[Kjt]=e.proxyTls,this[ok]=e.headers||{};let n=new Pqe(e.uri),{origin:s,port:i,host:o,username:a,password:A}=n;if(e.auth&&e.token)throw new ak("opts.auth cannot be used in combination with opts.token");e.auth?this[ok]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[ok]["proxy-authorization"]=e.token:a&&A&&(this[ok]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(a)}:${decodeURIComponent(A)}`).toString("base64")}`);let c=Oqe({...e.proxyTls});this[Hqe]=Oqe({...e.requestTls}),this[VH]=r(n,{connect:c}),this[ik]=new _qe({...e,connect:async(u,l)=>{let d=u.host;u.port||(d+=`:${Xjt(u.protocol)}`);try{let{socket:h,statusCode:g}=await this[VH].connect({origin:s,port:i,path:d,signal:u.signal,headers:{...this[ok],host:o}});if(g!==200&&(h.on("error",()=>{}).destroy(),l(new jjt(`Proxy response (${g}) !== 200 when HTTP Tunneling`))),u.protocol!=="https:"){l(null,h);return}let p;this[jre]?p=this[jre].servername:p=u.servername,this[Hqe]({...u,servername:p,httpSocket:h},l)}catch(h){l(h)}}})}dispatch(e,r){let{host:n}=new Pqe(e.origin),s=e7t(e.headers);return t7t(s),this[ik].dispatch({...e,headers:{...s,host:n}},r)}async[Yjt](){await this[ik].close(),await this[VH].close()}async[Jjt](){await this[ik].destroy(),await this[VH].destroy()}};function e7t(t){if(Array.isArray(t)){let e={};for(let r=0;r<t.length;r+=2)e[t[r]]=t[r+1];return e}return t}function t7t(t){if(t&&Object.keys(t).find(r=>r.toLowerCase()==="proxy-authorization"))throw new ak("Proxy-Authorization should be sent in ProxyAgent constructor")}qqe.exports=Kre});var zqe=f((TSn,Wqe)=>{var YB=B("assert"),{kRetryHandlerDefaultRetry:Yqe}=ts(),{RequestRetryError:WH}=Un(),{isDisturbed:Jqe,parseHeaders:r7t,parseRangeHeader:Vqe}=Gr();function n7t(t){let e=Date.now();return new Date(t).getTime()-e}var Xre=class t{constructor(e,r){let{retryOptions:n,...s}=e,{retry:i,maxRetries:o,maxTimeout:a,minTimeout:A,timeoutFactor:c,methods:u,errorCodes:l,retryAfter:d,statusCodes:h}=n??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts=s,this.abort=null,this.aborted=!1,this.retryOpts={retry:i??t[Yqe],retryAfter:d??!0,maxTimeout:a??30*1e3,timeout:A??500,timeoutFactor:c??2,maxRetries:o??5,methods:u??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:h??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(g=>{this.aborted=!0,this.abort?this.abort(g):this.reason=g})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[Yqe](e,{state:r,opts:n},s){let{statusCode:i,code:o,headers:a}=e,{method:A,retryOptions:c}=n,{maxRetries:u,timeout:l,maxTimeout:d,timeoutFactor:h,statusCodes:g,errorCodes:p,methods:C}=c,{counter:m,currentTimeout:I}=r;if(I=I!=null&&I>0?I:l,o&&o!=="UND_ERR_REQ_RETRY"&&o!=="UND_ERR_SOCKET"&&!p.includes(o)){s(e);return}if(Array.isArray(C)&&!C.includes(A)){s(e);return}if(i!=null&&Array.isArray(g)&&!g.includes(i)){s(e);return}if(m>u){s(e);return}let y=a!=null&&a["retry-after"];y&&(y=Number(y),y=isNaN(y)?n7t(y):y*1e3);let w=y>0?Math.min(y,d):Math.min(I*h**m,d);r.currentTimeout=w,setTimeout(()=>s(null),w)}onHeaders(e,r,n,s){let i=r7t(r);if(this.retryCount+=1,e>=300)return this.abort(new WH("Request failed",e,{headers:i,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let a=Vqe(i["content-range"]);if(!a)return this.abort(new WH("Content-Range mismatch",e,{headers:i,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==i.etag)return this.abort(new WH("ETag mismatch",e,{headers:i,count:this.retryCount})),!1;let{start:A,size:c,en Line truncated
Error Code : ${o.statusCode}
Error Message: ${o.message}`)})).result)===null||r===void 0?void 0:r.value;if(!i)throw new Error("Response json body do not have ID Token field");return i})}static getIDToken(e){return n3e(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}(0,s3e.debug)(`ID token url is ${r}`);let n=yield t.getCall(r);return(0,s3e.setSecret)(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};qw.OidcClient=One});var Yne=f(LA=>{"use strict";var Hne=LA&&LA.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(LA,"__esModule",{value:!0});LA.summary=LA.markdownSummary=LA.SUMMARY_DOCS_URL=LA.SUMMARY_ENV_VAR=void 0;var WZt=B("os"),qne=B("fs"),{access:zZt,appendFile:jZt,writeFile:KZt}=qne.promises;LA.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";LA.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Gne=class{constructor(){this._buffer=""}filePath(){return Hne(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[LA.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${LA.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield zZt(e,qne.constants.R_OK|qne.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([i,o])=>` ${i}="${o}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return Hne(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?KZt:jZt)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Hne(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(WZt.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(o=>this.wrap("li",o)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:A,colspan:c,rowspan:u}=o,l=a?"th":"td",d=Object.assign(Object.assign({},c&&{colspan:c}),u&&{rowspan:u});return this.wrap(l,A,d)}).join("");return this.wrap("tr",i)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:i}=n||{},o=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",i=this.wrap(s,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},o3e=new Gne;LA.markdownSummary=o3e;LA.summary=o3e});var a3e=f(UA=>{"use strict";var XZt=UA&&UA.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ZZt=UA&&UA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$Zt=UA&&UA.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&XZt(e,t,r);return ZZt(e,t),e};Object.defineProperty(UA,"__esModule",{value:!0});UA.toPlatformPath=UA.toWin32Path=UA.toPosixPath=void 0;var e$t=$Zt(B("path"));function t$t(t){return t.replace(/[\\]/g,"/")}UA.toPosixPath=t$t;function r$t(t){return t.replace(/[/]/g,"\\")}UA.toWin32Path=r$t;function n$t(t){return t.replace(/[/\\]/g,e$t.sep)}UA.toPlatformPath=n$t});var Vne=f(Ze=>{"use strict";var s$t=Ze&&Ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),tLine truncated
`);return{name:e,version:r}});Yr.platform=w3e.default.platform();Yr.arch=w3e.default.arch();Yr.isWindows=Yr.platform==="win32";Yr.isMacOS=Yr.platform==="darwin";Yr.isLinux=Yr.platform==="linux";function L$t(){return Gq(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield Yr.isWindows?F$t():Yr.isMacOS?M$t():v$t()),{platform:Yr.platform,arch:Yr.arch,isWindows:Yr.isWindows,isMacOS:Yr.isMacOS,isLinux:Yr.isLinux})})}Yr.getDetails=L$t});var Oc=f(We=>{"use strict";var U$t=We&&We.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),P$t=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Xne=We&&We.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&U$t(e,t,r);return P$t(e,t),e},S3e=We&&We.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(We,"__esModule",{value:!0});We.platform=We.toPlatformPath=We.toWin32Path=We.toPosixPath=We.markdownSummary=We.summary=We.getIDToken=We.getState=We.saveState=We.group=We.endGroup=We.startGroup=We.info=We.notice=We.warning=We.error=We.debug=We.isDebug=We.setFailed=We.setCommandEcho=We.setOutput=We.getBooleanInput=We.getMultilineInput=We.getInput=We.addPath=We.setSecret=We.exportVariable=We.ExitCode=void 0;var zu=dPe(),ZB=fPe(),Yw=qO(),R3e=Xne(B("os")),_$t=Xne(B("path")),O$t=i3e(),Kne;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Kne||(We.ExitCode=Kne={}));function H$t(t,e){let r=(0,Yw.toCommandValue)(e);if(process.env[t]=r,process.env.GITHUB_ENV||"")return(0,ZB.issueFileCommand)("ENV",(0,ZB.prepareKeyValueMessage)(t,e));(0,zu.issueCommand)("set-env",{name:t},r)}We.exportVariable=H$t;function q$t(t){(0,zu.issueCommand)("add-mask",{},t)}We.setSecret=q$t;function G$t(t){process.env.GITHUB_PATH||""?(0,ZB.issueFileCommand)("PATH",t):(0,zu.issueCommand)("add-path",{},t),process.env.PATH=`${t}${_$t.delimiter}${process.env.PATH}`}We.addPath=G$t;function Zne(t,e){let r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?r:r.trim()}We.getInput=Zne;function Y$t(t,e){let r=Zne(t,e).split(`
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}We.getMultilineInput=Y$t;function J$t(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],s=Zne(t,e);if(r.includes(s))return!0;if(n.includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}We.getBooleanInput=J$t;function V$t(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,ZB.issueFileCommand)("OUTPUT",(0,ZB.prepareKeyValueMessage)(t,e));process.stdout.write(R3e.EOL),(0,zu.issueCommand)("set-output",{name:t},(0,Yw.toCommandValue)(e))}We.setOutput=V$t;function W$t(t){(0,zu.issue)("echo",t?"on":"off")}We.setCommandEcho=W$t;function z$t(t){process.exitCode=Kne.Failure,D3e(t)}We.setFailed=z$t;function j$t(){return process.env.RUNNER_DEBUG==="1"}We.isDebug=j$t;function K$t(t){(0,zu.issueCommand)("debug",{},t)}We.debug=K$t;function D3e(t,e={}){(0,zu.issueCommand)("error",(0,Yw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.error=D3e;function X$t(t,e={}){(0,zu.issueCommand)("warning",(0,Yw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.warning=X$t;function Z$t(t,e={}){(0,zu.issueCommand)("notice",(0,Yw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.notice=Z$t;function $$t(t){process.stdout.write(t+R3e.EOL)}We.info=$$t;function x3e(t){(0,zu.issue)("group",t)}We.startGroup=x3e;function T3e(){(0,zu.issue)("endgroup")}We.endGroup=T3e;function eer(t,e){return S3e(this,void 0,void 0,function*(){x3e(t);let r;try{r=yield e()}finally{T3e()}return r})}We.group=eer;function ter(t,e){if(process.env.GITHUB_STATE||"")return(0,ZB.issueFileCommand)("STATE",(0,ZB.prepareKeyValueMessage)(t,e));(0,zu.issueCommand)("save-state",{name:t},(0,Yw.toCommandValue)(e))}We.saveState=ter;function rer(t){return process.env[`STATE_${t}`]||""}We.getState=rer;function ner(t){return S3e(this,void 0,void 0,function*(){return yield O$t.OidcClient.getIDToken(t)})}We.getIDToken=ner;var ser=Yne();Object.defineProperty(We,"summary",{enumerable:!0,get:function(){return ser.summary}});var ier=Yne();Object.defineProperty(We,"markdownSummary",{enumerable:!0,get:function(){return ier.markdownSummary}});var $ne=a3e();Object.defineProperty(We,"toPosixPath",{enumerable:!0,get:function(){return $ne.toPosixPath}});Object.defineProperty(We,"toWin32Path",{enumerable:!0,get:function(){return $ne.toWin32Path}});Object.defineProperty(We,"toPlatformPath",{enumerable:!0,get:function(){return $ne.toPlatformPath}});We.platform=Xne(N3e())});var k3e=f(Vh=>{"use strict";var oer=Vh&&Vh.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),aer=Vh&&Vh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Aer=Vh&&Vh.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&oer(e,t,r);return aer(e,t),e};Object.defineProperty(Vh,"__esModule",{value:!0});Vh.getOptions=void 0;var ese=Aer(Oc());function cer(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,ese.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,ese.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,ese.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}Vh.getOptions=cer});var Jq=f(js=>{"use strict";var uer=js&&js.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ler=js&&js.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),der=js&&js.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&uer(e,t,r);return ler(e,t),e},her=js&&js.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(js,"__esModule",{value:!0});js.safeTrimTrailingSeparator=js.normalizeSeparators=js.hasRoot=js.hasAbsoluteRoot=js.ensureAbsoluteRoot=js.dirname=void 0;var Yq=der(B("path")),$B=her(B("assert")),NE=process.platform==="win32";function ger(t){if(t=rse(t),NE&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Yq.dirname(t);return NE&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=rse(e)),e}js.dirname=ger;function fer(t,e){if($B.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),$B.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),tse(e))return e;if(NE){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return $B.default(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsLine truncated
%s`,H,H,I,n);var z=I.type==="*"?ose:I.type==="?"?ise:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+z+"\\("+H}g(),i&&(n+="\\\\");var F=!1;switch(n.charAt(0)){case"[":case".":case"(":F=!0}for(var W=a.length-1;W>-1;W--){var U=a[W],ee=n.slice(0,U.reStart),oe=n.slice(U.reStart,U.reEnd-8),Z=n.slice(U.reEnd-8,U.reEnd),he=n.slice(U.reEnd);Z+=he;var Se=ee.split("(").length-1,Je=he;for(p=0;p<Se;p++)Je=Je.replace(/\)[+*?]?/,"");he=Je;var He="";he===""&&e!==zq&&(He="$");var $t=ee+oe+he+He+Z;n=$t}if(n!==""&&s&&(n="(?=.)"+n),F&&(n=d+n),e===zq)return[n,s];if(!s)return Yer(t);var en=r.nocase?"i":"";try{var er=new RegExp("^"+n+"$",en)}catch{return new RegExp("$.")}return er._glob=t,er._src=n,er}Hc.makeRe=function(t,e){return new Jo(t,e||{}).makeRe()};Jo.prototype.makeRe=Ger;function Ger(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?ose:e.dot?ver:Ler,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===ase?r:typeof o=="string"?Jer(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Hc.match=function(t,e,r){r=r||{};var n=new Jo(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Jo.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;yk.sep!=="/"&&(e=e.split(yk.sep).join("/")),e=e.split(Z3e),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],A=e;n.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};Jo.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,i=0,o=t.length,a=e.length;s<o&&i<a;s++,i++){this.debug("matchOne loop");var A=e[i],c=t[s];if(this.debug(e,A,c),A===!1)return!1;if(A===ase){this.debug("GLOBSTAR",[e,A,c]);var u=s,l=i+1;if(l===a){for(this.debug("** at the end");s<o;s++)if(t[s]==="."||t[s]===".."||!n.dot&&t[s].charAt(0)===".")return!1;return!0}for(;u<o;){var d=t[u];if(this.debug(`
globstar while`,t,u,e,l,d),this.matchOne(t.slice(u),e.slice(l),r))return this.debug("globstar found match!",u,o,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,u,e,l);break}this.debug("globstar swallow a segment, and continue"),u++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,u,e,l),u===o))}var h;if(typeof A=="string"?(h=c===A,this.debug("string match",A,c,h)):(h=c.match(A),this.debug("pattern match",A,c,h)),!h)return!1}if(s===o&&i===a)return!0;if(s===o)return r;if(i===a)return s===o-1&&t[s]==="";throw new Error("wtf?")};function Yer(t){return t.replace(/\\(.)/g,"$1")}function Jer(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var r4e=f(ju=>{"use strict";var Ver=ju&&ju.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Wer=ju&&ju.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),t4e=ju&&ju.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Ver(e,t,r);return Wer(e,t),e},zer=ju&&ju.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ju,"__esModule",{value:!0});ju.Path=void 0;var bk=t4e(B("path")),RE=t4e(Jq()),wk=zer(B("assert")),jer=process.platform==="win32",cse=class{constructor(e){if(this.segments=[],typeof e=="string")if(wk.default(e,"Parameter 'itemPath' must not be empty"),e=RE.safeTrimTrailingSeparator(e),!RE.hasRoot(e))this.segments=e.split(bk.sep);else{let r=e,n=RE.dirname(r);for(;n!==r;){let s=bk.basename(r);this.segments.unshift(s),r=n,n=RE.dirname(r)}this.segments.unshift(r)}else{wk.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];wk.default(n,"Parameter 'itemPath' must not contain any empty segments"),n=RE.normalizeSeparators(e[r]),r===0&&RE.hasRoot(n)?(n=RE.safeTrimTrailingSeparator(n),wk.default(n===RE.dirname(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(wk.default(!n.includes(bk.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(bk.sep)||jer&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=bk.sep,e+=this.segments[n];return e}};ju.Path=cse});var n4e=f(Ku=>{"use strict";var Ker=Ku&&Ku.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Xer=Ku&&Ku.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dse=Ku&&Ku.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Ker(e,t,r);return Xer(e,t),e},Zer=Ku&&Ku.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ku,"__esModule",{value:!0});Ku.Pattern=void 0;var $er=dse(B("os")),Nk=dse(B("path")),qA=dse(Jq()),e0=Zer(B("assert")),etr=Ase(),use=Vq(),Kq=r4e(),fp=process.platform==="win32",lse=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],e0.default(n.length,"Parameter 'segments' must not empty");let c=t.getLiteral(n[0]);e0.default(c&&qA.hasAbsoluteRoot(c),"Parameter 'segments' first element must be a root path"),i=new Kq.Path(n).toString().trim(),e&&(i=`!${i}`)}for(;i.startsWith("!");)this.negate=!this.negate,i=i.substr(1).trim();i=t.fixupPattern(i,s),this.segments=new Kq.Path(i).segments,this.trailingSeparator=qA.normalizeSeparators(i).endsWith(Nk.sep),i=qA.safeTrimTrailingSeparator(i);let o=!1,a=this.segments.map(c=>t.getLiteral(c)).filter(c=>!o&&!(o=c===""));this.searchPath=new Kq.Path(a).toString(),this.rootRegExp=new RegExp(t.regExpEscape(a[0]),fp?"i":""),this.isImplicitPattern=r;let A={dot:!0,nobrace:!0,nocase:fp,nocomment:!0,noext:!0,nonegate:!0};i=fp?i.replace(/\\/g,"/"):i,this.minimatch=new etr.Minimatch(i,A)}match(e){return this.segments[this.segments.length-1]==="**"?(e=qA.normalizeSeparators(e),!e.endsWith(Nk.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Nk.sep}`)):e=qA.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?use.MatchKind.Directory:use.MatchKind.All:use.MatchKind.None}partialMatch(e){return e=qA.safeTrimTrailingSeparator(e),qA.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(fp?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(fp?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){e0.default(e,"pattern cannot be empty");let n=new Kq.Path(e).segments.map(s=>t.getLiteral(s));if(e0.default(n.every((s,i)=>(s!=="."||i===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),e0.default(!qA.hasRoot(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=qA.normalizeSeparators(e),e==="."||e.startsWith(`.${Nk.sep}`))e=t.globEscap Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new a4e.Pattern(i));return n.searchPaths.push(...Zq.getSearchPaths(n.patterns)),n})}static stat(e,r,n){return gse(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Sk.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){fse.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Sk.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Sk.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){fse.debug(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};co.DefaultGlobber=pse});var u4e=f(Vw=>{"use strict";var atr=Vw&&Vw.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(Vw,"__esModule",{value:!0});Vw.create=void 0;var Atr=c4e();function ctr(t,e){return atr(this,void 0,void 0,function*(){return yield Atr.DefaultGlobber.create(t,e)})}Vw.create=ctr});var p4e=f((Ot,f4e)=>{Ot=f4e.exports=ur;var En;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?En=function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:En=function(){};Ot.SEMVER_SPEC_VERSION="2.0.0";var Dk=256,$q=Number.MAX_SAFE_INTEGER||9007199254740991,mse=16,utr=Dk-6,Ww=Ot.re=[],mn=Ot.safeRe=[],me=Ot.src=[],ie=Ot.tokens={},h4e=0;function Er(t){ie[t]=h4e++}var Cse="[a-zA-Z0-9-]",Ese=[["\\s",1],["\\d",Dk],[Cse,utr]];function Tk(t){for(var e=0;e<Ese.length;e++){var r=Ese[e][0],n=Ese[e][1];t=t.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}return t}Er("NUMERICIDENTIFIER");me[ie.NUMERICIDENTIFIER]="0|[1-9]\\d*";Er("NUMERICIDENTIFIERLOOSE");me[ie.NUMERICIDENTIFIERLOOSE]="\\d+";Er("NONNUMERICIDENTIFIER");me[ie.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+Cse+"*";Er("MAINVERSION");me[ie.MAINVERSION]="("+me[ie.NUMERICIDENTIFIER]+")\\.("+me[ie.NUMERICIDENTIFIER]+")\\.("+me[ie.NUMERICIDENTIFIER]+")";Er("MAINVERSIONLOOSE");me[ie.MAINVERSIONLOOSE]="("+me[ie.NUMERICIDENTIFIERLOOSE]+")\\.("+me[ie.NUMERICIDENTIFIERLOOSE]+")\\.("+me[ie.NUMERICIDENTIFIERLOOSE]+")";Er("PRERELEASEIDENTIFIER");me[ie.PRERELEASEIDENTIFIER]="(?:"+me[ie.NUMERICIDENTIFIER]+"|"+me[ie.NONNUMERICIDENTIFIER]+")";Er("PRERELEASEIDENTIFIERLOOSE");me[ie.PRERELEASEIDENTIFIERLOOSE]="(?:"+me[ie.NUMERICIDENTIFIERLOOSE]+"|"+me[ie.NONNUMERICIDENTIFIER]+")";Er("PRERELEASE");me[ie.PRERELEASE]="(?:-("+me[ie.PRERELEASEIDENTIFIER]+"(?:\\."+me[ie.PRERELEASEIDENTIFIER]+")*))";Er("PRERELEASELOOSE");me[ie.PRERELEASELOOSE]="(?:-?("+me[ie.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+me[ie.PRERELEASEIDENTIFIERLOOSE]+")*))";Er("BUILDIDENTIFIER");me[ie.BUILDIDENTIFIER]=Cse+"+";Er("BUILD");me[ie.BUILD]="(?:\\+("+me[ie.BUILDIDENTIFIER]+"(?:\\."+me[ie.BUILDIDENTIFIER]+")*))";Er("FULL");Er("FULLPLAIN");me[ie.FULLPLAIN]="v?"+me[ie.MAINVERSION]+me[ie.PRERELEASE]+"?"+me[ie.BUILD]+"?";me[ie.FULL]="^"+me[ie.FULLPLAIN]+"$";Er("LOOSEPLAIN");me[ie.LOOSEPLAIN]="[v=\\s]*"+me[ie.MAINVERSIONLOOSE]+me[ie.PRERELEASELOOSE]+"?"+me[ie.BUILD]+"?";Er("LOOSE");me[ie.LOOSE]="^"+me[ie.LOOSEPLAIN]+"$";Er("GTLT");me[ie.GTLT]="((?:<|>)?=?)";Er("XRANGEIDENTIFIERLOOSE");me[ie.XRANGEIDENTIFIERLOOSE]=me[ie.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";Er("XRANGEIDENTIFIER");me[ie.XRANGEIDENTIFIER]=me[ie.NUMERICIDENTIFIER]+"|x|X|\\*";Er("XRANGEPLAIN");me[ie.XRANGEPLAIN]="[v=\\s]*("+me[ie.XRANGEIDENTIFIER]+")(?:\\.("+me[ie.XRANGEIDENTIFIER]+")(?:\\.("+me[ie.XRANGEIDENTIFIER]+")(?:"+me[ie.PRERELEASE]+")?"+me[ie.BUILD]+"?)?)?";Er("XRANGEPLAINLOOSE");me[ie.XRANGEPLAINLOOSE]="[v=\\s]*("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:"+me[ie.PRERELEASELOOSE]+")?"+me[ie.BUILD]+"?)?)?";Er("XRANGE");me[ie.XRANGE]="^"+me[ie.GTLT]+"\\s*"+me[ie.XRANGEPLAIN]+"$";Er("XRANGELOOSE");me[ie.XRANGELOOSE]="^"+me[ie.GTLT]+"\\s*"+me[ie.XRANGEPLAINLOOSE]+"$";Er("COERCE");me[ie.COERCE]="(^|[^\\d])(\\d{1,"+mse+"})(?:\\.(\\d{1,"+mse+"}))?(?:\\.(\\d{1,"+mse+"}))?(?:$|[^\\d])";Er("COERCERTL");Ww[ie.COERCERTL]=new RegExp(me[ie.COERCE],"g");mn[ie.COERCERTL]=new RegExp(Tk(me[ie.COERCE]),"g");Er("LONETILDE");me[ie.LONETILDE]="(?:~>?)";Er("TILDETRIM");me[ie.TILDETRIM]="(\\s*)"+me[ie.LONETILDE]+"\\s+";Ww[ie.TILDETRIM]=new RegExp(me[ie.TILDETRIM],"g");mn[ie.TILDETRIM]=new RegExp(Tk(me[ie.TILDETRIM]),"g");var ltr="$1~";Er("TILDE");me[ie.TILDE]="^"+me[ie.LONETILDE]+me[ie.XRANGEPLAIN]+"$";Er("TILDELOOSE");me[ie.TILDELOOSE]="^"+me[ie.LONETILDE]+me[ie.XRANGEPLAINLOOSE]+"$";Er("LONECARET");me[ie.LONECARET]="(?:\\^)";Er("CARETTRIM" Line truncated
`),{implicitDescendants:!1});try{for(var c=!0,u=jtr(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let d=s,h=nG.relative(a,d).replace(new RegExp(`\\${nG.sep}`,"g"),"/");kk.debug(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}Zr.resolvePaths=nrr;function srr(t){return Kw(this,void 0,void 0,function*(){return $tr.promisify(bse.unlink)(t)})}Zr.unlinkFile=srr;function Q4e(t,e=[]){return Kw(this,void 0,void 0,function*(){let r="";e.push("--version"),kk.debug(`Checking ${t} ${e.join(" ")}`);try{yield Ktr.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>r+=n.toString(),stderr:n=>r+=n.toString()}})}catch(n){kk.debug(n.message)}return r=r.trim(),kk.debug(r),r})}function irr(){return Kw(this,void 0,void 0,function*(){let t=yield Q4e("zstd",["--quiet"]),e=Ztr.clean(t);return kk.debug(`zstd version: ${e}`),t===""?n0.CompressionMethod.Gzip:n0.CompressionMethod.ZstdWithoutLong})}Zr.getCompressionMethod=irr;function orr(t){return t===n0.CompressionMethod.Gzip?n0.CacheFilename.Gzip:n0.CacheFilename.Zstd}Zr.getCacheFileName=orr;function arr(){return Kw(this,void 0,void 0,function*(){return bse.existsSync(n0.GnuTarPathOnWindows)?n0.GnuTarPathOnWindows:(yield Q4e("tar")).toLowerCase().includes("gnu tar")?I4e.which("tar"):""})}Zr.getGnuTarPathOnWindows=arr;function Arr(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}Zr.assertDefined=Arr;function crr(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(err),B4e.createHash("sha256").update(n.join("|")).digest("hex")}Zr.getCacheVersion=crr;function urr(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}Zr.getRuntimeToken=urr});var Vn={};xu(Vn,{__addDisposableResource:()=>W4e,__assign:()=>sG,__asyncDelegator:()=>_4e,__asyncGenerator:()=>P4e,__asyncValues:()=>O4e,__await:()=>Zw,__awaiter:()=>k4e,__classPrivateFieldGet:()=>Y4e,__classPrivateFieldIn:()=>V4e,__classPrivateFieldSet:()=>J4e,__createBinding:()=>oG,__decorate:()=>w4e,__disposeResources:()=>z4e,__esDecorate:()=>S4e,__exportStar:()=>M4e,__extends:()=>y4e,__generator:()=>F4e,__importDefault:()=>G4e,__importStar:()=>q4e,__makeTemplateObject:()=>H4e,__metadata:()=>T4e,__param:()=>N4e,__propKey:()=>D4e,__read:()=>Sse,__rest:()=>b4e,__rewriteRelativeImportExtension:()=>j4e,__runInitializers:()=>R4e,__setFunctionName:()=>x4e,__spread:()=>v4e,__spreadArray:()=>U4e,__spreadArrays:()=>L4e,__values:()=>iG,default:()=>hrr});function y4e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");wse(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function b4e(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r}function w4e(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(i=(s<3?o(i):s>3?o(e,r,i):o(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i}function N4e(t,e){return function(r,n){e(r,n,t)}}function S4e(t,e,r,n,s,i){function o(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var a=n.kind,A=a==="getter"?"get":a==="setter"?"set":"value",c=!e&&t?n.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),l,d=!1,h=r.length-1;h>=0;h--){var g={};for(var p in n)g[p]=p==="access"?{}:n[p];for(var p in n.access)g.access[p]=n.access[p];g.addInitializer=function(m){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(m||null))};var C=(0,r[h])(a==="accessor"?{get:u.get,set:u.set}:u[A],g);if(a==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(l=o(C.get))&&(u.get=l),(l=o(C.set))&&(u.set=l),(l=o(C.init))&&s.unshift(l)}else(l=o(C))&&(a==="field"?s.unshift(l):u[A]=l)}c&&Object.defineProperty(c,n.name,u),d=!0}function R4e(t,e,r){for(var n=arguments.length>2,s=0;s<e.length;s++)r=n?e[s].call(t,r):e[s].call(t);return n?r:void 0}function D4e(t){return typeof t=="symbol"?t:"".concat(t)}function x4e(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function T4e(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function k4e(t,e,r,n){function s(i){re Line truncated
${Grr.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};Lk.RestError=pG;function Yrr(t){return t instanceof pG?!0:(0,Orr.isError)(t)&&t.name==="RestError"}});var s0=f(mG=>{"use strict";Object.defineProperty(mG,"__esModule",{value:!0});mG.uint8ArrayToString=Jrr;mG.stringToUint8Array=Vrr;function Jrr(t,e){return Buffer.from(t).toString(e)}function Vrr(t,e){return Buffer.from(t,e)}});var Uk=f(EG=>{"use strict";Object.defineProperty(EG,"__esModule",{value:!0});EG.logger=void 0;var Wrr=uG();EG.logger=(0,Wrr.createClientLogger)("ts-http-runtime")});var CYe=f(IG=>{"use strict";Object.defineProperty(IG,"__esModule",{value:!0});IG.getBodyLength=EYe;IG.createNodeHttpClient=tnr;var $se=(Wn(),$n(Vn)),Kse=$se.__importDefault(B("node:http")),Xse=$se.__importDefault(B("node:https")),gYe=$se.__importDefault(B("node:zlib")),zrr=B("node:stream"),fYe=Fk(),jrr=TE(),_k=$w(),eN=Uk(),Krr=vk(),Xrr={};function Pk(t){return t&&typeof t.pipe=="function"}function pYe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function mYe(t){return t&&typeof t.byteLength=="number"}var CG=class extends zrr.Transform{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},Zse=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new fYe.AbortError("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new Krr.Sanitizer;eN.logger.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=EYe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let g=e.onUploadProgress,p=new CG(g);p.on("error",C=>{eN.logger.error("Error in upload progress",C)}),Pk(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Zrr(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?$rr(c,u):c;let h=e.onDownloadProgress;if(h){let g=new CG(h);g.on("error",p=>{eN.logger.error("Error in download progress",p)}),A.pipe(g),A=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await enr(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();Pk(a)&&(c=pYe(a));let u=Promise.resolve();Pk(A)&&(u=pYe(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{eN.logger.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((A,c)=>{let u=i?Kse.default.request(a,A):Xse.default.request(a,A);u.once("error",l=>{c(new _k.RestError(l.message,{code:l.code??_k.RestError.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new fYe.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&Pk(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):mYe(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(eN.logger.error("Unrecognized body type",n),c(new _k.RestError("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?Kse.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Kse.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return Xse.default.globalAgent;let s=e.tlsSettings??Xrr,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(eN.logger.info("No cached TLS Agent exist, creating a new Agent"),i=new Xse.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Zrr(t){let e=(0,jrr.createHttpHeaders)();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}function $rr(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=gYe.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=gYe.default.createInflate Line truncated
`.trim())}};$ie.exports=eO});var mN=C((Tzt,roe)=>{"use strict";var Zie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:k7e}=_t(),v7e=ym();toe()===void 0&&eoe(new v7e);function eoe(t){if(!t||typeof t.dispatch!="function")throw new k7e("Argument agent must implement Agent");Object.defineProperty(globalThis,Zie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function toe(){return globalThis[Zie]}roe.exports={setGlobalDispatcher:eoe,getGlobalDispatcher:toe}});var EN=C((Rzt,noe)=>{"use strict";noe.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 ioe=C((Dzt,soe)=>{"use strict";var _7e=KS();soe.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 _7e(r,o,s,i);return r(a,c)}}});var aoe=C((kzt,ooe)=>{"use strict";var F7e=aN();ooe.exports=t=>e=>function(n,s){return e(n,new F7e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Aoe=C((vzt,coe)=>{"use strict";var M7e=dt(),{InvalidArgumentError:L7e,RequestAbortedError:U7e}=_t(),P7e=EN(),tO=class extends P7e{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#c=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new L7e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#c=r}onConnect(e){this.#t=e,this.#c.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,s){let o=M7e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new U7e(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#c.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#s??e,this.#c.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#c.onError(this.#s):this.#c.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#c.onError(this.reason);return}this.#c.onComplete(e)}}};function O7e({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new tO({maxSize:i},s);return e(n,o)}}coe.exports=O7e});var doe=C((_zt,loe)=>{"use strict";var{isIP:H7e}=Q("node:net"),{lookup:G7e}=Q("node:dns"),q7e=EN(),{InvalidArgumentError:km,InformationalError:Y7e}=_t(),uoe=Math.pow(2,31)-1,rO=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new Y7e("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){G7e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===uoe?(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===uoe?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 nO(this,e,r)}},nO=class extends q7e{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Yce(i)&&(r[s]=i);break;case"id":Vce(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Yce(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Vce(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}}};Wce.exports={EventSourceStream:WO}});var tAe=C((ljt,eAe)=>{"use strict";var{pipeline:Xje}=Q("node:stream"),{fetching:Zje}=fy(),{makeRequest:eKe}=Fm(),{webidl:bu}=Zn(),{EventSourceStream:tKe}=Jce(),{parseMIMEType:rKe}=ei(),{createFastMessageEvent:nKe}=Hm(),{isNetworkError:zce}=dy(),{delay:sKe}=YO(),{kEnumerableProperty:ff}=dt(),{environmentSettingsObject:jce}=vi(),Kce=!1,$ce=3e3,Ty=0,Xce=1,xy=2,iKe="anonymous",oKe="use-credentials",Wm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Ty;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),bu.util.markAsUncloneable(this);let n="EventSource constructor";bu.argumentLengthCheck(arguments,1,n),Kce||(Kce=!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.#c=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:$ce};let s=jce,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=iKe;r.withCredentials&&(o=oKe,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=jce.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=eKe(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===xy)return;this.#r=Ty;let e={request:this.#i,dispatcher:this.#c},r=n=>{zce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(zce(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?rKe(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=Xce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new tKe({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(nKe(c.type,c.options))}});Xje(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Zje(e)}async#A(){this.#r!==xy&&(this.#r=Ty,this.dispatchEvent(new Event("error")),await sKe(this.#o.reconnectionTime),this.#r===Ty&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a()))}close(){bu.brandCheck(this,t),this.#r!==xy&&(this.#r=xy,this.#s.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}},Zce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Ty,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Xce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:xy,writable:!1}};Object.defineProperties(Wm,Zce);Object.defineProperties(Wm.prototype,Zce);Object.defineProperties(Wm.prototype,{close:ff,onerror:ff,onmessage:ff,onopen:ff,readyState:ff,url:ff,withCredentials:ff});bu.converters.EventSourceInitDict=bu.dictionaryConverter([{key:"withCredentials",converter:bu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:bu.converters.any}]);eAe.exports={EventSource:Wm,defaultReconnectionTime:$ce}});var oT=C((djt,je)=>{"use strict";var aKe=Cm(),rAe=vI(),cKe=Im(),AKe=Zne(),uKe=ym(),lKe=hP(),dKe=bse(),hKe=Rse(),nAe=_t(),iT=dt(),{InvalidArgumentError:sT}=nAe,Jm=pie(),fKe=FI(),gKe=zP(),pKe=Xie(),mKe=$P(),EKe=FP(),CKe=aN(),{getGlobalDispatcher:sAe,setGlobalDispatcher:IKe}=mN(),yKe=EN(),BKe=KS(),bKe=$S();Object.assign(rAe.prototype,Jm);je.exports.Dispatcher=rAe;je.exports.Client=aKe;je.exports.Pool=cKe;je.exports.BalancedPool=AKe;je.exports.Agent=uKe;je.exports.ProxyAgent=lKe;je.exports.EnvHttpProxyAgent=dKe;je.exports Line truncated
%s`,M,M,I,n);var V=I.type==="*"?v3:I.type==="?"?k3:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+V+"\\("+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 v=a[P],z=n.slice(0,v.reStart),Z=n.slice(v.reStart,v.reEnd-8),te=n.slice(v.reEnd-8,v.reEnd),ce=n.slice(v.reEnd);te+=ce;var ue=z.split("(").length-1,Fe=ce;for(g=0;g<ue;g++)Fe=Fe.replace(/\)[+*?]?/,"");ce=Fe;var ke="";ce===""&&e!==xT&&(ke="$");var et=z+Z+ce+ke+te;n=et}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===xT)return[n,s];if(!s)return eZe(t);var Ft=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Ft)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Vi.makeRe=function(t,e){return new ln(t,e||{}).makeRe()};ln.prototype.makeRe=ZXe;function ZXe(){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?v3:e.dot?VXe:WXe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===If?r:typeof o=="string"?tZe(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}Vi.match=function(t,e,r){r=r||{};var n=new ln(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};ln.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;qy.sep!=="/"&&(e=e.split(qy.sep).join("/")),e=e.split(Yue),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};ln.prototype.matchOne=function(t,e,r){return e.indexOf(If)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};ln.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===If){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===If){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var g=String(t[i]);if(f=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||f}for(var E=[[[],0]],m=E[0],I=0,y=[0],B=0;B<A.length;B++){var M=A[B];M===If?(y.push(I),m=[[],0],E.push(m)):(m[0].push(M),I++)}for(var V=E.length-1,k=t.length-d,P=0;P<E.length;P++)E[P][1]=k-(y[V--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!d)};ln.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};ln.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===If)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 eZe(t){return t.replace(/\\(.)/g,"$1")}function tZe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var e0=C((C$t,$ue)=>{"use strict";var AZe="2.0.0",uZe=Number.MAX_SAFE_INTEGER||9007199254740991,lZe=16,dZe=250,hZe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];$ue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:lZe,MAX_SAFE_BUILD_LENGTH:dZe,MAX_SAFE_INTEGER:uZe,RELEASE_TYPES:hZe,SEMVER_SPEC_VERSION:AZe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Jy=C((I$t,Xue)=>{"use strict";var fZe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Xue.exports=fZe});var t0=C((Pc,Zue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:F3,MAX_SAFE_BUILD_LENGTH:gZe,MAX_LENGTH:pZe}=e0(),mZe=Jy();Pc=Zue.exports={};var EZe=Pc.re=[],CZe=Pc.safeRe=[],me=Pc.src=[],IZe=Pc.safeSrc=[],Ee=Pc.t={},yZe=0,M3="[a-zA-Z0-9-]",BZe=[["\\s",1],["\\d",pZe],[M3,gZe]],bZe=t=>{for(let[e,r]of BZe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`).join(`
`+i),t.push(s+"m+"+xG.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=dsr()+e+" "+t[0]}function dsr(){return lo.inspectOpts.hideDate?"":new Date().toISOString()+" "}function hsr(...t){return process.stderr.write(DG.formatWithOptions(lo.inspectOpts,...t)+`
`)}function gsr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function fsr(){return process.env.DEBUG}function psr(t){t.inspectOpts={};let e=Object.keys(lo.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=lo.inspectOpts[e[r]]}xG.exports=mie()(lo);var{formatters:qYe}=xG.exports;qYe.o=function(t){return this.inspectOpts.colors=this.useColors,DG.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};qYe.O=function(t){return this.inspectOpts.colors=this.useColors,DG.inspect(t,this.inspectOpts)}});var TG=f((EDn,Iie)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Iie.exports=LYe():Iie.exports=GYe()});var VYe=f(YA=>{"use strict";var msr=YA&&YA.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Esr=YA&&YA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),YYe=YA&&YA.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&msr(e,t,r);return Esr(e,t),e};Object.defineProperty(YA,"__esModule",{value:!0});YA.req=YA.json=YA.toBuffer=void 0;var Csr=YYe(B("http")),Isr=YYe(B("https"));async function JYe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}YA.toBuffer=JYe;async function Bsr(t){let r=(await JYe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}YA.json=Bsr;function Qsr(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Isr:Csr).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}YA.req=Qsr});var Qie=f(qc=>{"use strict";var zYe=qc&&qc.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ysr=qc&&qc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jYe=qc&&qc.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&zYe(e,t,r);return ysr(e,t),e},bsr=qc&&qc.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&zYe(e,t,r)};Object.defineProperty(qc,"__esModule",{value:!0});qc.Agent=void 0;var wsr=jYe(B("net")),WYe=jYe(B("http")),Nsr=B("https");bsr(VYe(),qc);var zh=Symbol("AgentBaseInternalState"),Bie=class extends WYe.Agent{constructor(e){super(e),this[zh]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new wsr.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Nsr.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof WYe.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[zh].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[zh].currentSocket;if(this[zh].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[zh].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[zh]&&(this[zh].defaultPort=e)}get protocol(){return this[zh].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[zh]&&(this[zh].protocol=e)}};qc.Agent=Bie});var KYe=f(dN=>{"use strict";var Ssr=dN&&dN.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(dN,"__esModule",{value:!0});dN.parseProxyResponse=void 0;var Rsr=Ssr(TG()),kG=(0,Rsr.default)("https-proxy-agent:parse-proxy-response");function Dsr(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),kG("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),kG("onerror %o",u),r(u)}function c(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+gx.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=dnt()+e+" "+t[0]}function dnt(){return Mn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function hnt(...t){return process.stderr.write(fx.formatWithOptions(Mn.inspectOpts,...t)+`
`)}function fnt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function gnt(){return process.env.DEBUG}function pnt(t){t.inspectOpts={};let e=Object.keys(Mn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Mn.inspectOpts[e[r]]}gx.exports=w8()(Mn);var{formatters:Nhe}=gx.exports;Nhe.o=function(t){return this.inspectOpts.colors=this.useColors,fx.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Nhe.O=function(t){return this.inspectOpts.colors=this.useColors,fx.inspect(t,this.inspectOpts)}});var px=C((KZt,T8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?T8.exports=yhe():T8.exports=The()});var Dhe=C(ui=>{"use strict";var mnt=ui&&ui.__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]})),Ent=ui&&ui.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xhe=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)&&mnt(e,t,r);return Ent(e,t),e};Object.defineProperty(ui,"__esModule",{value:!0});ui.req=ui.json=ui.toBuffer=void 0;var Cnt=xhe(Q("http")),Int=xhe(Q("https"));async function Rhe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ui.toBuffer=Rhe;async function ynt(t){let r=(await Rhe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ui.json=ynt;function Bnt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Int:Cnt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ui.req=Bnt});var R8=C(zi=>{"use strict";var vhe=zi&&zi.__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]})),bnt=zi&&zi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_he=zi&&zi.__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)&&vhe(e,t,r);return bnt(e,t),e},Qnt=zi&&zi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&vhe(e,t,r)};Object.defineProperty(zi,"__esModule",{value:!0});zi.Agent=void 0;var wnt=_he(Q("net")),khe=_he(Q("http")),Snt=Q("https");Qnt(Dhe(),zi);var Gc=Symbol("AgentBaseInternalState"),x8=class extends khe.Agent{constructor(e){super(e),this[Gc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new wnt.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)?Snt.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 khe.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Gc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Gc].currentSocket;if(this[Gc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Gc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Gc]&&(this[Gc].defaultPort=e)}get protocol(){return this[Gc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Gc]&&(this[Gc].protocol=e)}};zi.Agent=x8});var Fhe=C(u0=>{"use strict";var Nnt=u0&&u0.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(u0,"__esModule",{value:!0});u0.parseProxyResponse=void 0;var Tnt=Nnt(px()),mx=(0,Tnt.default)("https-proxy-agent:parse-proxy-response");function xnt(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(),mx("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),mx("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){mx("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=f.split(" "),E=+g[1],m=g.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let B=y.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,B).toLowerCase(),V=y.slice(B+1).trimStart(),k=I[M];typeof k=="string"?I[M]=[k,V]:Array.isArray(k)?k.push(V):I[M]=V}mx("got proxy server response: %o %o",f,I),o(),e({connect:{statusCode:E,statusText:m,headers:I},buffered:l})}t.on("error",c),t.on("end",a),i()})}u0.parseProxyResponse=xnt});var Hhe=C(Uo=>{"use strict";var Rnt=Uo&&Uo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Dnt=Uo&&Uo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Phe=Uo&&Uo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Rnt(e,t,r);return Dnt(e,t),e},Ohe=Uo&&Uo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Uo,"__esModule",{value:!0});Uo.HttpsProxyAgent=void 0;var Ex=Phe(Q("net")),Mhe=Phe(Q("tls")),knt=Ohe(Q("assert")),vnt=Ohe(px()),_nt=R8(),Fnt=Q("url"),Mnt=Fhe(),cB=(0,vnt.default)("https-proxy-agent"),Lhe=t=>t.servername===void 0&&t.host&&!Ex.isIP(t.host)?{...t,servername:t.host}:t,Cx=class extends _nt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Fnt.URL(e):e,this.proxyHeaders=r?.headers??{},cB("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Uhe(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(cB("Creating `tls.Socket`: %o",this.connectOpts),s=Mhe.connect(Lhe(this.connectOpts))):(cB("Creating `net.Socket`: %o",this.connectOpts),s=Ex.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=Ex.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,Mnt.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",Lnt),r.secureEndpoint?(cB("Upgrading socket connection to TLS"),Mhe.connect({...Uhe(Lhe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new Ex.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{cB("Replaying proxy buffer for failed request"),(0,knt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};Cx.protocols=["http","https"];Uo.HttpsProxyAgent=Cx;function Lnt(t){t.resume()}function Uhe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Yhe=C(Po=>{"use strict";var Unt=Po&&Po.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Pnt=Po&&Po.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),qhe=Po&&Po.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Unt(e,t,r);return Pnt(e,t),e},Ont=Po&&Po.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Po,"__esModule",{value:!0});Po.HttpProxyAgent=void 0;var Hnt=qhe(Q("net")),Gnt=qhe(Q("tls")),qnt=Ont(px()),Ynt=Q("events"),Vnt=R8(),Ghe=Q("url"),l0=(0,qnt.default)("http-proxy-agent"),Ix=class extends Vnt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Ghe.URL(e):e,this.proxyHeaders=r?.headers??{},l0("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?Wnt(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 Ghe.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;l0("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(l0("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),l0("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(l0("Creating `tls.Socket`: %o",this.connectOpts),i=Gnt.connect(this.connectOpts)):(l0("Creating `net.Socket`: %o",this.connectOpts),i=Hnt.connect(this.connectOpts)),await(0,Ynt.once)(i,"connect"),i}};Ix.protocols=["http","https"];Po.HttpProxyAgent=Ix;function Wnt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var ffe=C(kx=>{"use strict";Object.defineProperty(kx,"__esModule",{value:!0});kx.state=void 0;kx.state={instrumenterImplementation:void 0}});var Dfe=C(Lx=>{"use strict";Object.defineProperty(Lx,"__esModule",{value:!0});Lx.state=void 0;Lx.state={operationRequestMap:new WeakMap}});var fme=C(($pr,eut)=>{eut.exports={name:"@actions/cache",version:"6.2.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var pme=C((Xpr,gme)=>{var tut=fme();gme.exports={version:tut.version}});var gD=C(F0=>{"use strict";Object.defineProperty(F0,"__esModule",{value:!0});F0.isJsonObject=F0.typeofJsonValue=void 0;function uut(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}F0.typeofJsonValue=uut;function lut(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}F0.isJsonObject=lut});var mD=C(M0=>{"use strict";Object.defineProperty(M0,"__esModule",{value:!0});M0.base64encode=M0.base64decode=void 0;var Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),pD=[];for(let t=0;t<Gu.length;t++)pD[Gu[t].charCodeAt(0)]=t;pD[45]=Gu.indexOf("+");pD[95]=Gu.indexOf("/");function dut(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=pD[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)}M0.base64decode=dut;function hut(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}M0.base64encode=hut});var yme=C(ED=>{"use strict";Object.defineProperty(ED,"__esModule",{value:!0});ED.utf8read=void 0;var B9=t=>String.fromCharCode.apply(String,t);function fut(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(B9(n)),s=0);return r.length?(s&&r.push(B9(n.slice(0,s))),r.join("")):B9(n.slice(0,s))}ED.utf8read=fut});var sb=C(hA=>{"use strict";Object.defineProperty(hA,"__esModule",{value:!0});hA.WireType=hA.mergeBinaryOptions=hA.UnknownFieldHandler=void 0;var gut;(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])})(gut=hA.UnknownFieldHandler||(hA.UnknownFieldHandler={}));function put(t,e){return Object.assign(Object.assign({},t),e)}hA.mergeBinaryOptions=put;var mut;(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"})(mut=hA.WireType||(hA.WireType={}))});var ID=C(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.varint32read=mi.varint32write=mi.int64toString=mi.int64fromString=mi.varint64write=mi.varint64read=void 0;function Eut(){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")}mi.varint64read=Eut;function Cut(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)}}mi.varint64write=Cut;var CD=65536*65536;function Iut(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>=CD&&(s=s+(n/CD|0),n=n%CD)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}mi.int64fromString=Iut;function yut(t,e){if(e>>>0<=2097151)return""+(CD*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)}mi.int64toString=yut;function But(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)}}mi.varint32write=But;function but(){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}mi.varint32read=but});var Bd=C(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.PbLong=yd.PbULong=yd.detectBi=void 0;var ib=ID(),or;function Bme(){let t=new DataView(new ArrayBuffer(8));or=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}yd.detectBi=Bme;Bme();function bme(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Qme=/^-?[0-9]+$/,BD=4294967296,yD=2147483648,bD=c Line truncated
`)}};JD.RpcError=j9});var $9=C(jD=>{"use strict";Object.defineProperty(jD,"__esModule",{value:!0});jD.mergeRpcOptions=void 0;var e0e=At();function Vlt(t,e){if(!e)return t;let r={};zD(t,r),zD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=e0e.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=e0e.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},zD(t.meta,r.meta),zD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}jD.mergeRpcOptions=Vlt;function zD(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 Z9=C(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.Deferred=Xf.DeferredState=void 0;var pA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(pA=Xf.DeferredState||(Xf.DeferredState={}));var X9=class{constructor(e=!0){this._state=pA.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!==pA.PENDING)throw new Error(`cannot resolve ${pA[this.state].toLowerCase()}`);this._resolve(e),this._state=pA.RESOLVED}reject(e){if(this.state!==pA.PENDING)throw new Error(`cannot reject ${pA[this.state].toLowerCase()}`);this._reject(e),this._state=pA.REJECTED}resolvePending(e){this._state===pA.PENDING&&this.resolve(e)}rejectPending(e){this._state===pA.PENDING&&this.reject(e)}};Xf.Deferred=X9});var tG=C(KD=>{"use strict";Object.defineProperty(KD,"__esModule",{value:!0});KD.RpcOutputStreamController=void 0;var t0e=Z9(),Zf=At(),eG=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){Zf.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){Zf.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){Zf.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(){Zf.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;Zf.assert(e,"bad state"),Zf.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 t0e.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Zf.assert(n.state==t0e.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};KD.RpcOutputStreamController=eG});var nG=C(q0=>{"use strict";var Wlt=q0&&q0.__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(q0,"__esModule",{value:!0});q0.UnaryCall=void 0;var rG=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 Wlt(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}})}};q0.UnaryCall=rG});var iG=C(Y0=>{"use strict";var Jlt=Y0&&Y0.__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(Y0,"__esModule",{value:!0});Y0.ServerStreamingCall=void 0;var sG=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 dye=C(lye=>{"use strict";var rV=tl().Buffer;lye._dbcs=rl;var rs=-1,uye=-2,aa=-10,Hs=-1e3,BE=new Array(256),iQ=-1;for(vk=0;vk<256;vk++)BE[vk]=rs;var vk;function rl(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]=BE.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(BE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(BE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Hs-o[n]],c=48;c<=57;c++){if(a[c]===rs)a[c]=Hs-s;else if(a[c]>Hs)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Hs-a[c]],u=129;u<=254;u++){if(A[u]===rs)A[u]=Hs-i;else{if(A[u]===Hs-i)continue;if(A[u]>Hs)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Hs-A[u]],d=48;d<=57;d++)l[d]===rs&&(l[d]=uye)}}}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 Wyt(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(Dyt.has(s)){r=s;break}}return r}function Jyt(t,e){let r=Wyt(e);r!==""&&(t.referrerPolicy=r)}function zyt(){return"allowed"}function jyt(){return"success"}function Kyt(){return"success"}function $yt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Xyt(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&&y7(t.origin)&&!y7(Tg(t))&&(e=null);break;case"same-origin":gQ(t,Tg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function NE(t,e){return t}function Zyt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:NE(t.domainLookupStartTime,r),domainLookupEndTime:NE(t.domainLookupEndTime,r),connectionStartTime:NE(t.connectionStartTime,r),connectionEndTime:NE(t.connectionEndTime,r),secureConnectionStartTime:NE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function eBt(t){return NE(Fyt.now(),t)}function tBt(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 Hbe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function rBt(t){return{referrerPolicy:t.referrerPolicy}}function nBt(t){let e=t.referrerPolicy;pQ(e);let r=null;if(t.referrer==="client"){let i=Mbe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Vd.is.URL(t.referrer)&&(r=t.referrer);let n=I7(r),s=I7(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??I7(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Tg(t);return Ng(n)&&!Ng(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Tg(t);return gQ(n,i)?n:Ng(n)&&!Ng(i)?"no-referrer":s}case"same-origin":return gQ(t,n)?n:"no-referrer";case"origin-when-cross-origin":return gQ(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Tg(t);return Ng(n)&&!Ng(i)?"no-referrer":n}}}function I7(t,e=!1){return pQ(Vd.is.URL(t)),t=new URL(t),Vbe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var sBt=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)$/),iBt=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)),iBt(t)):sBt(t)}function oBt(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 Ng(t){return Vd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:oBt(t.origin):!1}function aBt(t){}function gQ(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function cBt(t){return t.controller.state==="aborted"}function ABt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function uBt(t){return Lyt[t.toLowerCase()]??t}var lBt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function qbe(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,lBt),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 dBt(t,e,r,n=0,s=1){let i=qbe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Vd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Vd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ua(a=>R7(a)&&a!==59,t,e);i=T7.decode(o)}return{name:n,value:i,extended:s}}function MBt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw wi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=ua(a=>a!==10&&a!==13&&a!==58,t,e);if(o=x7(o,!0,!0,a=>a===9||a===32),!TBt.test(o.toString()))throw wi("header name does not match the field-name token production");if(t[e.position]!==58)throw wi("expected :");switch(e.position++,ua(a=>a===32||a===9,t,e),NBt(o)){case"content-disposition":{r=n=null;let a=!1;if(ua(A=>R7(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw wi("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=FBt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw wi("name attribute is required in content-disposition header");break}case"content-type":{let a=ua(c=>c!==10&&c!==13,t,e);a=x7(a,!1,!0,c=>c===9||c===32),s=$be(a);break}case"content-transfer-encoding":{let a=ua(c=>c!==10&&c!==13,t,e);a=x7(a,!1,!0,c=>c===9||c===32),i=$be(a);break}default:ua(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw wi("expected CRLF");e.position+=2}}function ua(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function x7(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 LBt(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}function wi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function UBt(t){return t<=31||t===127}function PBt(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&&!UBt(t)&&!PBt(t)}Xbe.exports={multipartFormDataParser:_Bt,validateBoundary:vBt}});var mQ=C((oQr,eQe)=>{"use strict";function OBt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}eQe.exports={createDeferredPromise:OBt}});var RE=C((aQr,iQe)=>{"use strict";var v7=Ze(),{ReadableStreamFrom:HBt,readableStreamClose:GBt,fullyReadBody:qBt,extractMimeType:YBt}=ao(),{FormData:tQe,setFormDataState:VBt}=sv(),{webidl:lc}=ns(),D7=Q("node:assert"),{isErrored:k7,isDisturbed:WBt}=Q("node:stream"),{isUint8Array:JBt}=Q("node:util/types"),{serializeAMimeType:zBt}=Aa(),{multipartFormDataParser:jBt}=Zbe(),{createDeferredPromise:KBt}=mQ(),{parseJSONFromBytes:$Bt}=il(),{utf8DecodeBytes:XBt}=Xk(),{runtimeFeatures:ZBt}=ol(),ebt=ZBt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),iv=new TextEncoder;function tbt(){}var rbt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!WBt(e)&&!k7(e)&&e.cancel("Response object has been garbage collected").catch(tbt)});function nQe(t,e=!1){let r=null,n=null;lc.is.ReadableStream(t)?r=t:lc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),D7(lc.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(lc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(lc.is.BufferSource(t))i=lc.util.getCopyOfBytesHeldByBufferSource(t);else if(lc.is.FormData(t)){let A=`----formdata-undici-0${`${ebt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],g=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,I]of t)if(typeof I=="string"){let y=eV.encode(u+`; name="${l(d(m))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let g=!1;for(let[m,I]of t)if(typeof I=="string"){let y=iv.encode(u+`; name="${l(d(m))}"\r
\r
${d(I)}\r
`);h.push(y),o+=y.byteLength}else{let y=eV.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
`);h.push(y),o+=y.byteLength}else{let y=iv.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
\r
`);h.push(y,I,g),typeof I.size=="number"?o+=y.byteLength+I.size+g.byteLength:p=!0}let C=eV.encode(`--${c}--\r
`);h.push(C),o+=C.byteLength,p&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${c}`}else if(jd.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(VEe.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=jd.is.ReadableStream(t)?t:MYr(t)}return(typeof i=="string"||OYr(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(JEe(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!JEe(r)&&n.enqueue(typeof c=="string"?eV.encode(c):new Uint8Array(c));queueMicrotask(()=>vYr(n))})(),[{stream:r,source:i,length:o},a]}function KYr(t,e=!1){return jd.is.ReadableStream(t)&&(YEe(!VEe.isDisturbed(t),"The body has already been consumed."),YEe(!t.locked,"The stream is locked.")),Nht(t,e)}function XYr(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function ZYr(t,e){return{blob(){return bD(this,n=>{let s=wht(e(this));return s===null?s="":s&&(s=HYr(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return bD(this,n=>new Uint8Array(n).buffer,t,e)},text(){return bD(this,JYr,t,e)},json(){return bD(this,YYr,t,e)},formData(){return bD(this,n=>{let s=wht(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=qYr(n,s),o=new bht;return PYr(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new bht;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return bD(this,n=>new Uint8Array(n),t,e)}}}function $Yr(t,e){Object.assign(t.prototype,ZYr(t,e))}function bD(t,e,r,n){try{jd.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Sht(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=GYr(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(LYr(t.body,o,i),s.promise)}function Sht(t){let e=t.body;return e!=null&&(e.stream.locked||VEe.isDisturbed(e.stream))}function wht(t){let e=t.headersList,r=UYr(e);return r==="failure"?null:r}Rht.exports={extractBody:Nht,safelyExtractBody:KYr,cloneBody:XYr,mixinBody:$Yr,streamRegistry:jYr,bodyUnusable:Sht}});var _ht=f((SGn,Pht)=>{"use strict";var Lt=B("node:assert"),Pt=Wt(),{channels:Dht}=JC(),WEe=kme(),{RequestContentLengthMismatchError:DQ,ResponseContentLengthMismatchError:e5r,RequestAbortedError:vht,HeadersTimeoutError:t5r,HeadersOverflowError:r5r,SocketError:gv,InformationalError:ND,BodyTimeoutError:n5r,HTTPParserError:s5r,ResponseExceededMaxSizeError:i5r}=or(),{kUrl:Lht,kReset:dc,kClient:eCe,kParser:ai,kBlocking:fv,kRunning:Na,kPending:o5r,kSize:xht,kWriting:jC,kQueue:Kd,kNoRef:dv,kKeepAliveDefaultTimeout:a5r,kHostHeader:A5r,kPendingIdx:c5r,kRunningIdx:Pl,kError:_l,kPipelining:nV,kSocket:SD,kKeepAliveTimeoutValue:iV,kMaxHeadersSize:u5r,kKeepAliveMaxTimeout:l5r,kKeepAliveTimeoutThreshold:d5r,kHeadersTimeout:h5r,kBodyTimeout:g5r,kStrictContentLength:KEe,kMaxRequests:Tht,kCounter:f5r,kMaxResponseSize:p5r,kOnError:m5r,kResume:zC,kHTTPContext:Uht,kClosed:XEe}=Mn(),Mg=Rdt(),E5r=Buffer.alloc(0),tV=Buffer[Symbol.species],C5r=Pt.removeAllListeners,zEe;function I5r(){let t=process.env.JEST_WORKER_ID?IEe():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(Tdt())}catch{}return e||(e=new WebAssembly.Module(t||IEe())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-Lg+vg.byteOffset;return Ki.onStatus(new tV(vg.buffer,o,i))},wasm_on_message_begin:n=>(Lt(Ki.ptr===n),Ki.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-Lg+vg.byteOffset;return Ki.onHeaderField(new tV(vg.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-Lg+vg.byteOffset;return Ki.onHeaderValue(new tV(vg.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Lt(Ki.ptr===n),Ki.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-Lg+vg.byteOffset;return Ki.onBody(new tV(vg.buffer,o,i))},wasm_on_message_complete:n=>(Lt(Ki.ptr===n),Ki.onMessageComplete())}})}var jEe=null,Ki=null,vg=null,rV=0,Lg=null,B5r=0,hv=1,RD=2|hv,sV=4|hv,ZEe=8|B5r,$Ee=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Mg.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[u5r],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxRespons Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[A5r],i?p+=`connection: upgrade\r
`);h.push(y,I,f),typeof I.size=="number"?o+=y.byteLength+I.size+f.byteLength:g=!0}let E=iv.encode(`--${A}--\r
`);h.push(E),o+=E.byteLength,g&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${A}`}else if(lc.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(v7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=lc.is.ReadableStream(t)?t:HBt(t)}return(typeof i=="string"||JBt(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(k7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!k7(r)&&n.enqueue(typeof A=="string"?iv.encode(A):new Uint8Array(A));queueMicrotask(()=>GBt(n))})(),[{stream:r,source:i,length:o},a]}function nbt(t,e=!1){return lc.is.ReadableStream(t)&&(D7(!v7.isDisturbed(t),"The body has already been consumed."),D7(!t.locked,"The stream is locked.")),nQe(t,e)}function sbt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function ibt(t,e){return{blob(){return xE(this,n=>{let s=rQe(e(this));return s===null?s="":s&&(s=zBt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return xE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return xE(this,XBt,t,e)},json(){return xE(this,$Bt,t,e)},formData(){return xE(this,n=>{let s=rQe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=jBt(n,s),o=new tQe;return VBt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new tQe;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 xE(this,n=>new Uint8Array(n),t,e)}}}function obt(t,e){Object.assign(t.prototype,ibt(t,e))}function xE(t,e,r,n){try{lc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),sQe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=KBt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(qBt(t.body,o,i),s.promise)}function sQe(t){let e=t.body;return e!=null&&(e.stream.locked||v7.isDisturbed(e.stream))}function rQe(t){let e=t.headersList,r=YBt(e);return r==="failure"?null:r}iQe.exports={extractBody:nQe,safelyExtractBody:nbt,cloneBody:sbt,mixinBody:obt,streamRegistry:rbt,bodyUnusable:sQe}});var IQe=C((cQr,CQe)=>{"use strict";var He=Q("node:assert"),De=Ze(),{channels:oQe}=qd(),_7=fV(),{RequestContentLengthMismatchError:xg,ResponseContentLengthMismatchError:aQe,RequestAbortedError:gQe,InvalidArgumentError:abt,HeadersTimeoutError:cbt,HeadersOverflowError:Abt,SocketError:Rg,InformationalError:DE,BodyTimeoutError:ubt,HTTPParserError:lbt,ResponseExceededMaxSizeError:dbt}=Xe(),{kUrl:pQe,kReset:Si,kClient:uv,kParser:pr,kBlocking:IQ,kRunning:fn,kPending:H7,kSize:cQe,kWriting:Wd,kQueue:dc,kNoRef:EQ,kKeepAliveDefaultTimeout:hbt,kHostHeader:fbt,kPendingIdx:gbt,kRunningIdx:la,kError:Gs,kPipelining:cv,kSocket:kg,kKeepAliveTimeoutValue:lv,kMaxHeadersSize:pbt,kKeepAliveMaxTimeout:mbt,kKeepAliveTimeoutThreshold:Ebt,kHeadersTimeout:Cbt,kBodyTimeout:Ibt,kStrictContentLength:L7,kMaxRequests:AQe,kCounter:ybt,kMaxResponseSize:Bbt,kOnError:uQe,kResume:cl,kHTTPContext:mQe,kClosed:U7}=Kt(),co=ibe(),lQe=Buffer.alloc(0),ov=Buffer[Symbol.species],bbt=De.removeAllListeners,vg=Symbol("kIdleSocketValidation"),Dg=Symbol("kIdleSocketValidationTimeout"),G7=Symbol("kSocketUsed"),F7;function Qbt(){let t=process.env.JEST_WORKER_ID?a7():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(cbe())}catch{}return e||(e=new WebAssembly.Module(t||a7())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onStatus(new ov(NA.buffer,o,i))},wasm_on_message_begin:n=>(He(zr.ptr===n),zr.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onHeaderField(new ov(NA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onHeaderValue(new ov(NA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(He(zr.ptr===n),zr.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onBody(new ov(NA.buffer,o,i))},wasm_on_message_complete:n=>(He(zr.ptr===n),zr.onMessageComplete())}})}var M7=null,zr=null,NA=null,av=0,TA=null,wbt=0,CQ=1,kE=2|CQ,Av=4|CQ,P7=8|wbt,O7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(co.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[pbt],this.shouldKeepAliv Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[fbt],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[nV]&&!h[dc]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return Dht.sendHeaders.hasSubscribers&&Dht.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Fht(g,null,t,e,h,u,p,l):Pt.isBuffer(A)?Fht(g,A,t,e,h,u,p,l):Pt.isBlobLike(A)?typeof A.stream=="function"?Mht(g,A.stream(),t,e,h,u,p,l):k5r(g,A,t,e,h,u,p,l):Pt.isStream(A)?T5r(g,A,t,e,h,u,p,l):Pt.isIterable(A)?Mht(g,A,t,e,h,u,p,l):Lt(!1),!0}function T5r(t,e,r,n,s,i,o,a){Lt(i!==0||r[Na]===0,"stream body cannot be pipelined");let A=!1,c=new oV({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Pt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new vht;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,Lt(s.destroyed||s[jC]&&r[Na]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Pt.destroy(e,g):Pt.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function Fht(t,e,r,n,s,i,o,a){try{e?Pt.isBuffer(e)&&(Lt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[cv]&&!h[Si]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return oQe.sendHeaders.hasSubscribers&&oQe.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?hQe(f,null,t,e,h,u,g,l):De.isBuffer(c)?hQe(f,c,t,e,h,u,g,l):De.isBlobLike(c)?typeof c.stream=="function"?fQe(f,c.stream(),t,e,h,u,g,l):Lbt(f,c,t,e,h,u,g,l):De.isStream(c)?Mbt(f,c,t,e,h,u,g,l):De.isIterable(c)?fQe(f,c,t,e,h,u,g,l):He(!1),!0}function Mbt(t,e,r,n,s,i,o,a){He(i!==0||r[fn]===0,"stream body cannot be pipelined");let c=!1,A=new dv({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){De.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new gQe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,He(s.destroyed||s[Wd]&&r[fn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?De.destroy(e,f):De.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 hQe(t,e,r,n,s,i,o,a){try{e?De.isBuffer(e)&&(He(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[Si]=!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"):(He(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[cl]()}catch(c){t(c)}}async function Lbt(t,e,r,n,s,i,o,a){He(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new xg;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[Si]=!0),r[cl]()}catch(c){t(c)}}async function fQe(t,e,r,n,s,i,o,a){He(i!==0||r[fn]===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)=>{He(c===null),s[Gs]?h(s[Gs]):c=d});s.on("close",A).on("drain",A);let l=new dv({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Gs])throw s[Gs];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var dv=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[Gs])throw r[Gs];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[L7])throw new xg;process.emitWarning(new xg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Si]=!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[pr].timeout&&r[pr].timeoutType===kE&&r[pr].timeout.refresh&&r[pr].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[Gs])throw e[Gs];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[L7])throw new xg;process.emitWarning(new xg)}e[pr].timeout&&e[pr].timeoutType===kE&&e[pr].timeout.refresh&&e[pr].timeout.refresh(),n[cl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Wd]=!1,e&&(He(n[fn]<=1,"pipeline should only contain this request"),s(e))}};CQe.exports=Sbt});var xQe=C((AQr,TQe)=>{"use strict";var ha=Q("node:assert"),{pipeline:Ubt}=Q("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:W7,RequestAbortedError:Pbt,SocketError:QQ,InformationalError:Jd,InvalidArgumentError:Obt}=Xe(),{kUrl:bQ,kReset:pv,kClient:Ao,kRunning:wQ,kPending:Hbt,kQueue:zd,kPendingIdx:z7,kRunningIdx:hc,kError:uo,kSocket:vr,kStrictContentLength:Gbt,kOnError:vE,kMaxConcurrentStreams:fv,kPingInterval:yQe,kHTTP2Session:Al,kHTTP2InitialWindowSize:qbt,kHTTP2ConnectionWindowSize:Ybt,kResume:xA,kSize:Vbt,kHTTPContext:j7,kClosed:J7,kBodyTimeout:Wbt,kEnableConnectProtocol:yQ,kRemoteSettings:BQ,kHTTP2Stream:hv,kHTTP2SessionState:K7}=Kt(),{channels:BQe}=qd(),da=Symbol("open streams"),bQe,gv;try{gv=Q("node:http2")}catch{gv={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Jbt,HTTP2_HEADER_METHOD:QQe,HTTP2_HEADER_PATH:wQe,HTTP2_HEADER_SCHEME:q7,HTTP2_HEADER_CONTENT_LENGTH:zbt,HTTP2_HEADER_EXPECT:jbt,HTTP2_HEADER_STATUS:Y7,HTTP2_HEADER_PROTOCOL:Kbt,NGHTTP2_REFUSED_STREAM:$bt,NGHTTP2_CANCEL:Xbt}}=gv;function V7(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 Zbt(t,e){t[vr]=e;let r=t[qbt],n=t[Ybt],s=gv.connect(t[bQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[fv],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[vr]=e,s[da]=0,s[Ao]=t,s[vr]=e,s[K7]={ping:{interval:t[yQe]===0?null:setInterval(nQt,t[yQe],s).unref()}},s[yQ]=!1,s[BQ]=!1,n&&ut.addListener(s,"connect",tQt.bind(s,n)),ut.addListener(s,"error",sQt),ut.addListener(s,"frameError",iQt),ut.addListener(s,"end",oQt),ut.addListener(s,"goaway",aQt),ut.addListener(s,"close",cQt),ut.addListener(s,"remoteSettings",rQt),s.unref(),t[Al]=s,e[Al]=s,ut.addListener(e,"error",uQt),ut.addListener(e,"end",lQt),ut.addListener(e,"close",AQt),e[J7]=!1,e.on("close",dQt),{version:"h2",defaultPipelining:1/0,write(i){return fQt(t,i)},resume(){eQt(t)},destroy(i,o){e[J7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[wQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[BQ]===!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[BQ]===!1;return!1}}}function eQt(t){let e=t[vr];e?.destroyed===!1&&(t[Vbt]===0||t[fv]===0?(e.unref(),t[Al].unref()):(e.ref(),t[Al].ref()))}function tQt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function rQt(t){if(this[Ao][fv]=t.maxConcurrentStreams??this[Ao][fv],this[BQ]===!0&&this[yQ]===!0&&t.enableConnectProtocol===!1){let e=new Jd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[vr][uo]=e,this[Ao][vE](e);return}this[yQ]=t.enableConnectProtocol??this[yQ],this[BQ]=!0,this[Ao][xA]()}function nQt(t){let e=t[K7];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[Ao],o=this[Ao];if(n!=null){let a=new Jd(`HTTP/2: "PING" errored - type ${n.message}`);o[uo]=a,i[vE](a)}else i.emit("ping",s)}}function sQt(t){ha(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[vr][uo]=t,this[Ao][vE](t)}function iQt(t,e,r){if(r===0){let n=new Jd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[vr][uo]=n,this[Ao][vE](n)}}function oQt(){let t=new QQ("other side closed",ut.getSocketInfo(this[vr]));this.destroy(t),ut.destroy(this[vr],t)}function aQt(t){let e=this[uo]||new QQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[vr])),r=this[Ao];if(r[vr]=null,r[j7]=null,this.close(),this[Al]=null,ut.destroy(this[vr],e),r[hc]<r[zd].length){let n=r[zd][r[hc]];r[zd][r[hc]++]=null,ut.errorRequest(r,n,e),r[z7]=r[hc]}ha(r[wQ]===0),r.emit("disconnect",r[bQ],[r],e),r.emit("connectionError",r[bQ],[r],e),r[xA]()}function cQt(){let{[Ao]:t,[K7]:e}=this,{[vr]:r}=t,n=this[vr][uo]||this[uo]||new QQ("closed",ut.getSocketInfo(r));if(t[vr]=null,t[j7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ha(t[Hbt]===0);let s=t[zd].splice(t[hc]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function AQt(){let t=this[uo]||new QQ("closed",ut.getSocketInfo(this)),e=this[Al][Ao];e[vr]=null,e[j7]=null,this[Al]!==null&&this[Al].destroy(t),e[z7]=e[hc],ha(e[wQ]===0),e.emit("disconnect",e[bQ],[e],t),e[xA]()}function uQt(t){ha(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[uo]=t,this[Ao][vE](t)}function lQt(){ut.destroy(this,new QQ("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;BQe.sendHeaders.publish({request:e,headers:k,socket:n[vr]})}let B=s==="GET"||s==="HEAD"||d===null;c?(h[jbt]="100-continue",f=n.request(h,{endStream:B,signal:A}),f[hv]=!0,f.once("continue",V)):(f=n.request(h,{endStream:B,signal:A}),f[hv]=!0,V()),++n[da],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[Y7]:P,...v}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),V7(v),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[hc]++]=null,t[xA]()):(m(new Jd("HTTP/2: stream half-closed (remote)")),t[zd][t[hc]++]=null,t[z7]=t[hc],t[xA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[da]-=1,n[da]===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[da]-=1,n[da]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function V(){!d||y===0?SQe(m,f,null,t,e,t[vr],y,I):ut.isBuffer(d)?SQe(m,f,d,t,e,t[vr],y,I):ut.isBlobLike(d)?typeof d.stream=="function"?NQe(m,f,d.stream(),t,e,t[vr],y,I):pQt(m,f,d,t,e,t[vr],y,I):ut.isStream(d)?gQt(m,t[vr],I,f,d,t,e,y):ut.isIterable(d)?NQe(m,f,d,t,e,t[vr],y,I):ha(!1)}}function SQe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(ha(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[pv]=!0),s.onRequestSent(),n[xA]()}catch(c){t(c)}}function gQt(t,e,r,n,s,i,o,a){ha(a!==0||i[wQ]===0,"stream body cannot be pipelined");let c=Ubt(s,n,u=>{u?(ut.destroy(c,u),t(u)):(ut.removeAllListeners(c),o.onRequestSent(),r||(e[pv]=!0),i[xA]())});ut.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function pQt(t,e,r,n,s,i,o,a){ha(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new W7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[pv]=!0),n[xA]()}catch(c){t(c)}}async function NQe(t,e,r,n,s,i,o,a){ha(o!==0||n[wQ]===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)=>{ha(c===null),i[uo]?d(i[uo]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[uo])throw i[uo];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[pv]=!0),n[xA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}TQe.exports=Zbt});var Xd=C((uQr,LQe)=>{"use strict";var ul=Q("node:assert"),vQe=Q("node:net"),SQ=Q("node:http"),_g=Ze(),{ClientStats:mQt}=qV(),{channels:_E}=qd(),EQt=JBe(),CQt=Qg(),{InvalidArgumentError:mr,InformationalError:IQt,ClientDestroyedError:yQt}=Xe(),BQt=wg(),{kUrl:RA,kServerName:$d,kClient:bQt,kBusy:X7,kConnect:QQt,kResuming:Fg,kRunning:RQ,kPending:DQ,kSize:NQ,kQueue:fc,kConnected:wQt,kConnecting:FE,kNeedDrain:Kd,kKeepAliveDefaultTimeout:RQe,kHostHeader:SQt,kPendingIdx:gc,kRunningIdx:dl,kError:NQt,kPipelining:mv,kKeepAliveTimeoutValue:TQt,kMaxHeadersSize:xQt,kKeepAliveMaxTimeout:RQt,kKeepAliveTimeoutThreshold:DQt,kHeadersTimeout:kQt,kBodyTimeout:vQt,kStrictContentLength:_Qt,kConnector:TQ,kMaxRequests:Z7,kCounter:FQt,kClose:MQt,kDestroy:LQt,kDispatch:UQt,kLocalAddress:xQ,kMaxResponseSize:PQt,kOnError:OQt,kHTTPContext:on,kMaxConcurrentStreams:HQt,kHTTP2InitialWindowSize:GQt,kHTTP2ConnectionWindowSize:qQt,kResume:ll,kPingInterval:YQt}=Kt(),VQt=IQe(),WQt=xQe(),jd=Symbol("kClosedResolve"),JQt=SQ&&SQ.maxHeaderSize&&Number.isInteger(SQ.maxHeaderSize)&&SQ.maxHeaderSize>0?()=>SQ.maxHeaderSize:()=>{throw new mr("http module not available or http.maxHeaderSize invalid")},DQe=()=>{};function _Qe(t){return t[mv]??t[on]?.defaultPipelining??1}var eW=class extends CQt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:g,tls:E,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:B,localAddress:M,maxResponseSize:V,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:v,allowH2:z,useH2c:Z,initialWindowSize:te,connectionWindowSize:ce,pingInterval:ue,webSocket:Fe}={}){if(A!==void 0)throw new mr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new mr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new mr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new mr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw Line truncated
`,this[vQt]=a??3e5,this[kQt]=n??3e5,this[_Qt]=m??!0,this[Z7]=B,this[jd]=null,this[PQt]=V>-1?V:-1,this[on]=null,this[HQt]=v??100,this[GQt]=te??262144,this[qQt]=ce??524288,this[YQt]=ue??6e4,this[fc]=[],this[dl]=0,this[gc]=0,this[ll]=ke=>tW(this,ke),this[OQt]=ke=>FQe(this,ke)}get pipelining(){return this[mv]}set pipelining(e){this[mv]=e,this[ll](!0)}get stats(){return new mQt(this)}get[DQ](){return this[fc].length-this[gc]}get[RQ](){return this[gc]-this[dl]}get[NQ](){return this[fc].length-this[dl]}get[wQt](){return!!this[on]&&!this[FE]&&!this[on].destroyed}get[X7](){return!!(this[on]?.busy(null)||this[NQ]>=(_Qe(this)||1)||this[DQ]>0)}[QQt](e){MQe(this),this.once("connect",e)}[UQt](e,r){let n=new EQt(this[RA].origin,e,r);return this[fc].push(n),this[Fg]||(_g.bodyLength(n.body)==null&&_g.isIterable(n.body)?(this[Fg]=1,queueMicrotask(()=>tW(this))):this[ll](!0)),this[Fg]&&this[Kd]!==2&&this[X7]&&(this[Kd]=2),this[Kd]<2}[MQt](){return new Promise(e=>{this[NQ]?this[jd]=e:e(null)})}[LQt](e){return new Promise(r=>{let n=this[fc].splice(this[gc]);for(let i=0;i<n.length;i++){let o=n[i];_g.errorRequest(this,o,e)}let s=()=>{this[jd]&&(this[jd](),this[jd]=null),r(null)};this[on]?(this[on].destroy(e,s),this[on]=null):queueMicrotask(s),this[ll]()})}};function FQe(t,e){if(t[RQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ul(t[gc]===t[dl]);let r=t[fc].splice(t[dl]);for(let n=0;n<r.length;n++){let s=r[n];_g.errorRequest(t,s,e)}ul(t[NQ]===0)}}function MQe(t){ul(!t[FE]),ul(!t[on]);let{host:e,hostname:r,protocol:n,port:s}=t[RA];if(r[0]==="["){let i=r.indexOf("]");ul(i!==-1);let o=r.substring(1,i);ul(vQe.isIPv6(o)),r=o}t[FE]=!0,_E.beforeConnect.hasSubscribers&&_E.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[on]?.version,servername:t[$d],localAddress:t[xQ]},connector:t[TQ]});try{t[TQ]({host:e,hostname:r,protocol:n,port:s,servername:t[$d],localAddress:t[xQ]},(i,o)=>{if(i){$7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[ll]();return}if(t.destroyed){_g.destroy(o.on("error",DQe),new yQt),t[ll]();return}ul(o);try{t[on]=o.alpnProtocol==="h2"?WQt(t,o):VQt(t,o)}catch(a){o.destroy().on("error",DQe),$7(t,a,{host:e,hostname:r,protocol:n,port:s}),t[ll]();return}t[FE]=!1,o[FQt]=0,o[Z7]=t[Z7],o[bQt]=t,o[NQt]=null,_E.connected.hasSubscribers&&_E.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[on]?.version,servername:t[$d],localAddress:t[xQ]},connector:t[TQ],socket:o}),t.emit("connect",t[RA],[t]),t[ll]()})}catch(i){$7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[ll]()}}function $7(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[FE]=!1,_E.connectError.hasSubscribers&&_E.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[on]?.version,servername:t[$d],localAddress:t[xQ]},connector:t[TQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ul(t[RQ]===0);t[DQ]>0&&t[fc][t[gc]].servername===t[$d];){let o=t[fc][t[gc]++];_g.errorRequest(t,o,e)}else FQe(t,e);t.emit("connectionError",t[RA],[t],e)}}function kQe(t){t[Kd]=0,t.emit("drain",t[RA],[t])}function tW(t,e){t[Fg]!==2&&(t[Fg]=2,zQt(t,e),t[Fg]=0,t[dl]>256&&(t[fc].splice(0,t[dl]),t[gc]-=t[dl],t[dl]=0))}function zQt(t,e){for(;;){if(t.destroyed){ul(t[DQ]===0);return}if(t[jd]&&!t[NQ]){t[jd](),t[jd]=null;return}if(t[on]&&t[on].resume(),t[X7])t[Kd]=2;else if(t[Kd]===2){e?(t[Kd]=1,queueMicrotask(()=>kQe(t))):kQe(t);continue}if(t[DQ]===0||t[RQ]>=(_Qe(t)||1))return;let r=t[fc][t[gc]];if(r===null)return;if(t[RA].protocol==="https:"&&t[$d]!==r.servername){if(t[RQ]>0)return;t[$d]=r.servername,t[on]?.destroy(new IQt("servername changed"),()=>{t[on]=null,tW(t)})}if(t[FE])return;if(!t[on]){MQe(t);return}if(t[on].destroyed||t[on].busy(r))return;!r.aborted&&t[on].write(r)?t[gc]++:t[fc].splice(t[gc],1)}}LQe.exports=eW});var rW=C((dQr,UQe)=>{"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)}};UQe.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 Cv=C((hQr,JQe)=>{"use strict";var{PoolStats:jQt}=qV(),KQt=Qg(),$Qt=rW(),{kConnected:nW,kSize:PQe,kRunning:OQe,kPending:HQe,kQueued:kQ,kBusy:XQt,kFree:ZQt,kUrl:ewt,kClose:twt,kDestroy:rwt,kDispatch:nwt}=Kt(),zn=Symbol("clients"),qs=Symbol("needDrain"),vQ=Symbol("queue"),sW=Symbol("closed resolve"),iW=Symbol("onDrain"),GQe=Symbol("onConnect"),qQe=Symbol("onDisconnect"),YQe=Symbol("onConnectionError"),oW=Symbol("get dispatcher"),VQe=Symbol("add client"),WQe=Symbol("remove client"),aW=class extends KQt{[vQ]=new $Qt;[kQ]=0;[zn] 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())}};ESe.exports=wJ});var NJ=C((YQr,BSe)=>{"use strict";var{InvalidArgumentError:ZSt}=Xe(),{runtimeFeatures:eNt}=ol();function tNt(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 CSe=eNt.has("crypto")?Q("node:crypto"):null,rNt=CSe?.hash?t=>CSe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function ySe(t){return Array.isArray(t)&&(t.length&1)===0}function nNt(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 sNt(t){let e={};if(!t)return e;if(ySe(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 ISe=["record","playback","update"];function iNt(t){if(!ISe.includes(t))throw new ZSt(`Invalid snapshot mode: ${t}. Must be one of: ${ISe.join(", ")}`)}BSe.exports={createHeaderFilters:tNt,hashId:rNt,isUndiciHeaders:ySe,normalizeHeaders:sNt,isUrlExcludedFactory:nNt,validateSnapshotMode:iNt}});var DSe=C((VQr,RSe)=>{"use strict";var{writeFile:oNt,readFile:aNt,mkdir:cNt}=Q("node:fs/promises"),{dirname:ANt,resolve:bSe}=Q("node:path"),{setTimeout:uNt,clearTimeout:QSe}=Q("node:timers"),{InvalidArgumentError:wSe,UndiciError:lNt}=Xe(),{hashId:dNt,isUrlExcludedFactory:hNt,normalizeHeaders:SSe,createHeaderFilters:NSe}=NJ();function VQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||SSe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:TSe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function TSe(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 xSe(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 WQ(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 dNt(r)}var TJ=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#c;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#c=NSe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=hNt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=VQ(e,this.#c,this.matchOptions),s=WQ(n),i=SSe(r.headers),o={statusCode:r.statusCode,headers:xSe(i,this.#c,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=VQ(e,this.#c,this.matchOptions),n=WQ(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 wSe("Snapshot path is required");try{let n=await aNt(bSe(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 lNt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new wSe("Snapshot path is required");let n=bSe(r);await cNt(ANt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await oNt(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${ho} (
-- 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${ho}_getValuesQuery ON cacheInterceptorV${ho}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ho}_deleteByUrlQuery ON cacheInterceptorV${ho}(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${ho}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${du} SET
`),this.#i=this.#n.prepare(`
UPDATE cacheInterceptorV${ho} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -316,8 +167,8 @@ ${e.format(r)}`.trim())}};Qpt.exports=xIe});var kIe=f((o8n,Npt)=>{"use strict";v
staleAt = ?
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${du} (
`),this.#s=this.#n.prepare(`
INSERT INTO cacheInterceptorV${ho} (
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${ho} WHERE url = ?`),this.#a=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ho}`),this.#c=this.#n.prepare(`DELETE FROM cacheInterceptorV${ho} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ho}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${du}
ORDER BY cachedAt DESC
FROM cacheInterceptorV${ho}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){tBe(e);let r=this.#g(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){tBe(e);let n=this.#h(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#g(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){tBe(e),wzr(r);let n=0,s=[],i=this;return new bzr({decodeStrings:!0,write(o,a,A){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#h(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#h(e){return`${e.origin}/${e.path}`}#g(e,r=!1){let n=this.#h(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!Nzr(s[l],u[l])){c=!1;break}}if(c)return A}}};function Nzr(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var HQ=f((D8n,Omt)=>{"use strict";var{kConstruct:Szr}=Mn(),{kEnumerableProperty:VD}=Wt(),{iteratorMixin:Rzr,isValidHeaderName:Jv,isValidHeaderValue:vmt}=au(),{webidl:Pr}=Ko(),nBe=B("node:assert"),YV=B("node:util");function Mmt(t){return t===10||t===13||t===9||t===32}function Lmt(t){let e=0,r=t.length;for(;r>e&&Mmt(t.charCodeAt(r-1));)--r;for(;r>e&&Mmt(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Umt(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Pr.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});sBe(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)sBe(t,r[n],e[r[n]])}else throw Pr.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function sBe(t,e,r){if(r=Lmt(r),Jv(e)){if(!vmt(r))throw Pr.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Pr.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(_mt(t)==="immutable")throw new TypeError("immutable");return VV(t).append(e,r,!1)}function Dzr(t){let e=VV(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let A=0;A<s.length;++A)r.push([o,s[A]]);else r.push([o,a])}return e.sortedMap=r}function Pmt(t,e){return t[0]<e[0]?-1:1}var JV=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMa Line truncated
${i}`;break;case"retry":VCt(i)&&(r[s]=i);break;case"id":WCt(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&VCt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&WCt(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};zCt.exports={EventSourceStream:OBe}});var nIt=f((e3n,rIt)=>{"use strict";var{pipeline:JXr}=B("node:stream"),{fetching:VXr}=Kv(),{makeRequest:WXr}=zD(),{webidl:lA}=Ko(),{EventSourceStream:zXr}=jCt(),{parseMIMEType:jXr}=Ll(),{createFastMessageEvent:KXr}=mW(),{isNetworkError:KCt}=Wv(),{kEnumerableProperty:jQ}=Wt(),{environmentSettingsObject:XCt}=au(),ZCt=!1,$Ct=3e3,rL=0,eIt=1,nL=2,XXr="anonymous",ZXr="use-credentials",sx=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=rL;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),lA.util.markAsUncloneable(this);let n="EventSource constructor";lA.argumentLengthCheck(arguments,1,n),ZCt||(ZCt=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=lA.converters.USVString(e),r=lA.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=XCt,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=XXr;r.withCredentials===!0&&(o=ZXr,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=XCt.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=WXr(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===nL)return;this.#r=rL;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!KCt(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(KCt(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?jXr(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=eIt,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new zXr({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(KXr(A.type,A.options))}});JXr(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=VXr(e)}#c(){this.#r!==nL&&(this.#r=rL,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===rL&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){lA.brandCheck(this,t),this.#r!==nL&&(this.#r=nL,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=lA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=lA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=lA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},tIt={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:rL,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:eIt,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:nL,writable:!1}};Object.defineProperties(sx,tIt);Object.defineProperties(sx.prototype,tIt);Object.defineProperties(sx.prototype,{close:jQ,onerror:jQ,onmessage:jQ,onopen:jQ,readyState:jQ,url:jQ,withCredentials:jQ});lA.converters.EventSourceInitDict=lA.dictionaryConverter([{key:"withCredentials",converter:lA.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:lA.converters.any},{key:"node",converter:lA.dictionaryConverter([{key:"reconnectionTime",converter:lA.converters["unsigned long"],defaultValue:()=>$Ct},{key:"dispatcher",converter:lA.converters.any}]),defaultValue:()=>({})}]);rIt.exports={EventSource:sx,defaultReconnectionTime:$Ct}});var cIt=f((t3n,Oe)=>{"use strict";var $Xr=rI(),iIt=nv(),eZr=kD(),tZr=Bgt(),rZr=wgt(),nZr=MQ(),sZr=vCe(),iZr=jgt(),oZr=tft(),aZr=sft(),oIt=or(),TW=Wt(),{InvalidArgumentError:xW}=oIt,ix=_ft(),AZr=BD(),cZr=CIe(),{MockCallHistory:uZr,Mock Line truncated
`)}close(){this.#n.close()}get(e){rz(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){rz(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.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){rz(e),pxt(r);let n=0,s=[],i=this;return new gxt({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.#c.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.#a.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)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!mxt(s[l],u[l])){A=!1;break}}if(A)return c}}};function mxt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var Xg=C((hwr,ZNe)=>{"use strict";var{kConstruct:Ext}=Kt(),{kEnumerableProperty:ZE}=Ze(),{iteratorMixin:Cxt,isValidHeaderName:ZQ,isValidHeaderValue:zNe}=ao(),{webidl:wt}=ns(),sz=Q("node:assert"),Kv=Q("node:util");function JNe(t){return t===10||t===13||t===9||t===32}function jNe(t){let e=0,r=t.length;for(;r>e&&JNe(t.charCodeAt(r-1));)--r;for(;r>e&&JNe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function KNe(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}.`});iz(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)iz(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 iz(t,e,r){if(r=jNe(r),ZQ(e)){if(!zNe(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(XNe(t)==="immutable")throw new TypeError("immutable");return Xv(t).append(e,r,!1)}function Ixt(t){let e=Xv(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 $Ne(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.hea Line truncated
${i}`;break;case"retry":sRe(i)&&(r[s]=i);break;case"id":iRe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&sRe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&iRe(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}}};oRe.exports={EventSourceStream:Vz}});var gRe=C((Uwr,fRe)=>{"use strict";var{pipeline:Mkt}=Q("node:stream"),{fetching:Lkt}=sw(),{makeRequest:Ukt}=tC(),{webidl:Vs}=ns(),{EventSourceStream:Pkt}=aRe(),{parseMIMEType:Okt}=Aa(),{createFastMessageEvent:Hkt}=b_(),{isNetworkError:cRe}=tw(),{kEnumerableProperty:op}=Ze(),{environmentSettingsObject:ARe}=ao(),uRe=!1,lRe=3e3,lw=0,dRe=1,dw=2,Gkt="anonymous",qkt="use-credentials",lC=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=lw;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),Vs.util.markAsUncloneable(this);let n="EventSource constructor";Vs.argumentLengthCheck(arguments,1,n),uRe||(uRe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Vs.converters.USVString(e),r=Vs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=ARe,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=Gkt;r.withCredentials===!0&&(o=qkt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=ARe.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=Ukt(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===dw)return;this.#r=lw;let e={request:this.#i,dispatcher:this.#c},r=n=>{if(!cRe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(cRe(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?Okt(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=dRe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Pkt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Hkt(c.type,c.options))}});Mkt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Lkt(e)}#A(){this.#r!==dw&&(this.#r=lw,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===lw&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a())},this.#o.reconnectionTime)?.unref())}close(){Vs.brandCheck(this,t),this.#r!==dw&&(this.#r=dw,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Vs.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=Vs.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=Vs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},hRe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:lw,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:dRe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:dw,writable:!1}};Object.defineProperties(lC,hRe);Object.defineProperties(lC.prototype,hRe);Object.defineProperties(lC.prototype,{close:op,onerror:op,onmessage:op,onopen:op,readyState:op,url:op,withCredentials:op});Vs.converters.EventSourceInitDict=Vs.dictionaryConverter([{key:"withCredentials",converter:Vs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Vs.converters.any},{key:"node",converter:Vs.dictionaryConverter([{key:"reconnectionTime",converter:Vs.converters["unsigned long"],defaultValue:()=>lRe},{key:"dispatcher",converter:Vs.converters.any}]),defaultValue:()=>({})}]);fRe.exports={EventSource:lC,defaultReconnectionTime:lRe}});var yRe=C((Pwr,pe)=>{"use strict";var Ykt=Xd(),mRe=uQ(),Vkt=Mg(),Wkt=twe(),Jkt=iwe(),zkt=Pg(),jkt=xW(),Kkt=wW(),$kt=Ywe(),Xkt=$we(),Zkt=e1e(),ERe=Xe(),M_=Ze(),{InvalidArgumentError:F_}=ERe,dC=F1e(),evt=wg(),tvt=fJ(),{MockCallHistory:rv 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 hvt(e,r).catch(n=>{throw pRe?IRe(n,pRe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=Xg().Headers;pe.exports.Response=tw().Response;pe.exports.Request=tC().Request;pe.exports.FormData=sv().FormData;var{setGlobalOrigin:fvt,getGlobalOrigin:gvt}=u7();pe.exports.setGlobalOrigin=fvt;pe.exports.getGlobalOrigin=gvt;var{CacheStorage:pvt}=rxe(),{kConstruct:mvt}=Kt();pe.exports.caches=new pvt(mvt);var{deleteCookie:Evt,getCookies:Cvt,getSetCookies:Ivt,setCookie:yvt,parseCookie:Bvt}=fxe();pe.exports.deleteCookie=Evt;pe.exports.getCookies=Cvt;pe.exports.getSetCookies=Ivt;pe.exports.setCookie=yvt;pe.exports.parseCookie=Bvt;var{parseMIMEType:bvt,serializeAMimeType:Qvt}=Aa();pe.exports.parseMIMEType=bvt;pe.exports.serializeAMimeType=Qvt;var{CloseEvent:wvt,ErrorEvent:Svt,MessageEvent:Nvt}=b_(),{WebSocket:Tvt,ping:xvt}=Jxe();pe.exports.WebSocket=Tvt;pe.exports.CloseEvent=wvt;pe.exports.ErrorEvent=Svt;pe.exports.MessageEvent=Nvt;pe.exports.ping=xvt;pe.exports.WebSocketStream=tRe().WebSocketStream;pe.exports.WebSocketError=Oz().WebSocketError;pe.exports.request=hw(dC.request);pe.exports.stream=hw(dC.stream);pe.exports.pipeline=hw(dC.pipeline);pe.exports.connect=hw(dC.connect);pe.exports.upgrade=hw(dC.upgrade);pe.exports.MockClient=tvt;pe.exports.MockCallHistory=rvt;pe.exports.MockCallHistoryLog=nvt;pe.exports.MockPool=ivt;pe.exports.MockAgent=svt;pe.exports.SnapshotAgent=ovt;pe.exports.mockErrors=avt;var{EventSource:Rvt}=gRe();pe.exports.EventSource=Rvt;function Dvt(){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=Dvt});var fw=C(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 bRe=C((Gwr,BRe)=>{"use strict";var{asciiLowercase:L_,solelyContainsHTTPTokenCodePoints:kvt,soleyContainsHTTPQuotedStringTokenCodePoints:vvt}=fw();BRe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=L_(String(e)),this._map.get(e)}has(e){return e=L_(String(e)),this._map.has(e)}set(e,r){if(e=L_(String(e)),r=String(r),!kvt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!vvt(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=L_(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 SRe=C((qwr,wRe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:_vt,removeTrailingHTTPWhitespace:QRe,isHTTPWhitespaceChar:Fvt,solelyContainsHTTPTokenCodePoints:Wz,soleyContainsHTTPQuotedStringTokenCodePoints:Mvt,asciiLowercase:Jz,collectAnHTTPQuotedString:Lvt}=fw();wRe.exports=t=>{t=_vt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!Wz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=QRe(n),n.length===0||!Wz(n))return null;let s={type:Jz(r),subtype:Jz(n),parameters:new Map};for(;e<t.length;){for(++e;Fvt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=Jz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Lvt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=QRe(o),o==="")continue}i.length>0&&Wz(i)&&Mvt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var TRe=C((Ywr,NRe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:Uvt}=fw();NRe.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+="=",(!Uvt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var kRe=C((Wwr,DRe)=>{"use strict";var Pvt=bRe(),Ovt=SRe(),Hvt=TRe(),{asciiLowercase:xRe,solelyContainsHTTPTokenCodePoints:RRe}=fw();DRe.exports=class{constructor(e){e=String(e);let r=Ovt(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 Pvt(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=xRe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!RRe(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=xRe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!RRe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return Hvt(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 KRe=C(Nn=>{"use strict";var ej=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),l_t=ej(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=Q("node:fs"),r=Q("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
%s`,k,k,f,s);let P=f.type==="*"?Wj:f.type==="?"?jj:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}B(),o&&(s+="\\\\");let M=mFt[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],v=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),Z=s.slice(P.reEnd),te=s.slice(P.reEnd-8,P.reEnd)+Z,ce=v.split(")").length,ue=v.split("(").length-ce,Fe=Z;for(let et=0;et<ue;et++)Fe=Fe.replace(/\)[+*?]?/,"");Z=Fe;let ke=Z===""&&r!==Jj?"(?:$|\\/)":"";s=v+z+Z+ke+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=I()+s),r===Jj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return CFt(e);let V=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",V),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?Wj:r.dot?gFt:pFt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?yFt(a):a===Ws?Ws:a._src).reduce((a,c)=>(a[a.length-1]===Ws&&c===Ws||a.push(c),a),[]),o.forEach((a,c)=>{a!==Ws||o[c-1]===Ws||(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]=Ws))}),o.filter(a=>a!==Ws).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;zj.sep!=="/"&&(e=e.split(zj.sep).join("/")),e=e.split(C2e),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=CC});var N2e=C((WSr,S2e)=>{S2e.exports=w2e;var Xj=Q("fs"),{EventEmitter:bFt}=Q("events"),{Minimatch:$j}=B2e(),{resolve:QFt}=Q("path");function wFt(t,e){return new Promise((r,n)=>{Xj.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 b2e(t,e){return new Promise((r,n)=>{(e?Xj.stat:Xj.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?b2e(t,!1):null):r(null):r(o)})})}async function*Q2e(t,e,r,n,s,i){let o=await wFt(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 b2e(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*Q2e(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*SFt(t,e,r,n){yield*Q2e("",t,e,r,n,!0)}function NFt(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 $_=class extends bFt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=NFt(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 $j(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 $j(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 $j(i,{dot:!0}))}this.iterator=SFt(QFt(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
`,S);S=G===-1?w.length:G}else if(F!==-1&&w[S]==="/"&&w[S+1]==="*"){let G=w.indexOf("*/",S);G!==-1?(S=G+2,F=w.indexOf("*/",S)):(b+=w[S],S++)}else b+=w[S],S++;return b}function CI(w){let b=EI(w.toString()),S=b.match(aL);if(S||(S=b.match(cL)),!S)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]=S;return F.replace(/\s/g,"").split(P1).map(G=>G.replace(O1,"").trim())}function II(w,b){var S={};return Object.keys(w).forEach(F=>{var G=w[F],Y,J=h(G),j=!J&&G.length===1||J&&G.length===0;if(Array.isArray(G))Y=[...G],G=Y.pop(),S[F]=Y.concat(Y.length>0?re:G);else if(j)S[F]=G;else{if(Y=CI(G),G.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),S[F]=Y.concat(re)}function re(Se,Bt){var Lt=Y.map(St=>Se[St]);Lt.push(Bt),E(G)(...Lt)}}),mI(S,b)}class yI{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,S){S.prev=b,S.next=b.next,b.next?b.next.prev=S:this.tail=S,b.next=S,this.length+=1}insertBefore(b,S){S.prev=b.prev,S.next=b,b.prev?b.prev.next=S:this.head=S,b.prev=S,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):BI(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):BI(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 S=this.head;S;){var{next:F}=S;b(S)&&this.removeLink(S),S=F}return this}}function BI(w,b){w.length=1,w.head=w.tail=b}function Wp(w,b,S){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var F=E(w),G=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(qe,be){J[qe].push(be)}function re(qe,be){let Ye=(...Nt)=>{Se(qe,Ye),be(...Nt)};J[qe].push(Ye)}function Se(qe,be){if(!qe)return Object.keys(J).forEach(Ye=>J[Ye]=[]);if(!be)return J[qe]=[];J[qe]=J[qe].filter(Ye=>Ye!==be)}function Bt(qe,...be){J[qe].forEach(Ye=>Ye(...be))}var Lt=!1;function St(qe,be,Ye,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Ut.started=!0;var Br,kn;function So(Hh,...xI){if(Hh)return Ye?kn(Hh):Br();if(xI.length<=1)return Br(xI[0]);Br(xI)}var Kp=Ut._createTaskItem(qe,Ye?So:Nt||So);if(be?Ut._tasks.unshift(Kp):Ut._tasks.push(Kp),Lt||(Lt=!0,A(()=>{Lt=!1,Ut.process()})),Ye||!Nt)return new Promise((Hh,xI)=>{Br=Hh,kn=xI})}function wo(qe){return function(be,...Ye){G-=1;for(var Nt=0,Br=qe.length;Nt<Br;Nt++){var kn=qe[Nt],So=Y.indexOf(kn);So===0?Y.shift():So>0&&Y.splice(So,1),kn.callback(be,...Ye),be!=null&&Bt("error",be,kn.data)}G<=Ut.concurrency-Ut.buffer&&Bt("unsaturated"),Ut.idle()&&Bt("drain"),Ut.process()}}function jp(qe){return qe.length===0&&Ut.idle()?(A(()=>Bt("drain")),!0):!1}let Oh=qe=>be=>{if(!be)return new Promise((Ye,Nt)=>{re(qe,(Br,kn)=>{if(Br)return Nt(Br);Ye(kn)})});Se(qe),j(qe,be)};var TI=!1,Ut={_tasks:new yI,_createTaskItem(qe,be){return{data:qe,callback:be}},*[Symbol.iterator](){yield*Ut._tasks[Symbol.iterator]()},concurrency:b,payload:S,buffer:b/4,started:!1,paused:!1,push(qe,be){return Array.isArray(qe)?jp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!1,be)):St(qe,!1,!1,be)},pushAsync(qe,be){return Array.isArray(qe)?jp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!0,be)):St(qe,!1,!0,be)},kill(){Se(),Ut._tasks.empty()},unshift(qe,be){return Array.isArray(qe)?jp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!1,be)):St(qe,!0,!1,be)},unshiftAsync(qe,be){return Array.isArray(qe)?jp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!0,be)):St(qe,!0,!0,be)},remove(qe){Ut._tasks.remove(qe)},process(){if(!TI){for(TI=!0;!Ut.paused&&G<Ut.concurrency&&Ut._tasks.length;){var qe=[],be=[],Ye=Ut._tasks.length;Ut.payload&&(Ye=Math.min(Ye,Ut.payload));for(var Nt=0;Nt<Ye;Nt++){var Br=Ut._tasks.shift();qe.push(Br),Y.push(Br),be.push(Br.data)}G+=1,Ut._tasks.length===0&&Bt("empty"),G===Ut.concurrency&&Bt("saturated");var kn=te(wo(qe));F(be,kn)}TI=!1}},length(){return Ut._tasks.length},running(){return G},workersList(){return Y},idle(){return Ut._tasks.length+G===0},pause(){Ut.paused=!0},resume(){Ut.paused!==!1&&(Ut.paused=!1,A(Ut.process))}};return Object.defineProperties(Ut,{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")}}),Ut}function bI(w,b){return Wp(w,1,b)}function Jp(w,b,S){return Wp(w,b,S)}function Qo(w,b,S,F){F=V(F);var G=E(S);return Zs(w,(Y,J,j)=>{G(b,Y,(re,Se)=>{b=Se,j(re)})},Y=>F(Y,b))}var Ta=m(Qo,4);function zp(...w){var b=w.map(E);return function(...S){var F=this,G=S[S.length-1];return typeof G=="function"?S.pop():G=cu(),Ta(b,S,(Y,J,j)=>{J.apply(F,Y.concat((re,...Se)=>{j(re,Se)}))},(Y,J)=>G(Y,...J)),G[au]}}function H1(...w){return zp(...w.reverse())}function we(w,b,S,F){return y(ue(b),w,S,F)}var H=m(we,4);function T(w,b,S,F){var G=E(S);return H(w,b,(Y,J)=>{G(Y,(j,...re)=>j?J(j):J(j,re))},(Y,J)=>{for(var j=[],re=0;re<J.length;re++)J[re]&&(j=j.concat(...J[re]));return F(Y,j)})}var q=m(T,4);function K(w,b,S){return q(w,1/0,b,S)}var X=m(K,3);function oe(w,b,S){retur Line truncated
GFS4: `),console.error(t)});Fr[is]||(L2e=global[is]||[],P2e(Fr,L2e),Fr.close=(function(t){function e(r,n){return t.call(Fr,r,function(s){s||U2e(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,rF,{value:t}),e})(Fr.close),Fr.closeSync=(function(t){function e(r){t.apply(Fr,arguments),U2e()}return Object.defineProperty(e,rF,{value:t}),e})(Fr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){fp(Fr[is]),Q("assert").equal(Fr[is].length,0)}));var L2e;global[is]||P2e(global,Fr[is]);rK.exports=eK(MFt(Fr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Fr.__patched&&(rK.exports=eK(Fr),Fr.__patched=!0);function eK(t){_Ft(t),t.gracefulify=eK,t.createReadStream=M,t.createWriteStream=V;var e=t.readFile;t.readFile=r;function r(v,z,Z){return typeof z=="function"&&(Z=z,z=null),te(v,z,Z);function te(ce,ue,Fe,ke){return e(ce,ue,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?IC([te,[ce,ue,Fe],et,ke||Date.now(),Date.now()]):typeof Fe=="function"&&Fe.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(v,z,Z,te){return typeof Z=="function"&&(te=Z,Z=null),ce(v,z,Z,te);function ce(ue,Fe,ke,et,Ft){return n(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?IC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(v,z,Z,te){return typeof Z=="function"&&(te=Z,Z=null),ce(v,z,Z,te);function ce(ue,Fe,ke,et,Ft){return i(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?IC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(v,z,Z,te){return typeof Z=="function"&&(te=Z,Z=0),ce(v,z,Z,te);function ce(ue,Fe,ke,et,Ft){return a(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?IC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(v,z,Z){typeof z=="function"&&(Z=z,z=null);var te=u.test(process.version)?function(Fe,ke,et,Ft){return A(Fe,ce(Fe,ke,et,Ft))}:function(Fe,ke,et,Ft){return A(Fe,ke,ce(Fe,ke,et,Ft))};return te(v,z,Z);function ce(ue,Fe,ke,et){return function(Ft,vt){Ft&&(Ft.code==="EMFILE"||Ft.code==="ENFILE")?IC([te,[ue,Fe,ke],Ft,et||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof ke=="function"&&ke.call(this,Ft,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=FFt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(v){m=v},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(v){y=v},enumerable:!0,configurable:!0});var g=m;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(v){g=v},enumerable:!0,configurable:!0});var E=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(v){E=v},enumerable:!0,configurable:!0});function m(v,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var v=this;P(v.path,v.flags,v.mode,function(z,Z){z?(v.autoClose&&v.destroy(),v.emit("error",z)):(v.fd=Z,v.emit("open",Z),v.read())})}function y(v,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function B(){var v=this;P(v.path,v.flags,v.mode,function(z,Z){z?(v.destroy(),v.emit("error",z)):(v.fd=Z,v.emit("open",Z))})}function M(v,z){return new t.ReadStream(v,z)}function V(v,z){return new t.WriteStream(v,z)}var k=t.open;t.open=P;function P(v,z,Z,te){return typeof Z=="function"&&(te=Z,Z=null),ce(v,z,Z,te);function ce(ue,Fe,ke,et,Ft){return k(ue,Fe,ke,function(vt,En){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?IC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}return t}function IC(t){fp("ENQUEUE",t[0].name,t[1]),Fr[is].push(t),tK()}var tF;function U2e(){for(var t=Date.now(),e=0;e<Fr[is].length;++e)Fr[is][e].length>2&&(Fr[is][e][3]=t,Fr[is][e][4]=t);tK()}function tK(){if(clearTimeout(tF),tF=void 0,Fr[is].length!==0){var t=Fr[is].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)fp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){fp("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?(fp("RETRY",e.name,r),e.apply(null,r.concat([s]))):Fr[is].push(t)}tF===void 0&&(tF=setTimeout(tK,0))}}});var nF=C(($Sr,O2e)=>{"use strict";var JA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";JA.writable=t=>JA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";JA.readable=t=>JA(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};E_e.exports={AggregateError:UK,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 PK=C((aTr,C_e)=>{"use strict";C_e.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 bs=C((cTr,B_e)=>{"use strict";var{format:iOt,inspect:BF}=PK(),{AggregateError:oOt}=Rr(),aOt=globalThis.AggregateError||oOt,cOt=Symbol("kIsNodeError"),AOt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],uOt=/^([A-Z][a-z0-9]*)+$/,lOt="__node_internal_",bF={};function mp(t,e){if(!t)throw new bF.ERR_INTERNAL_ASSERTION(e)}function I_e(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 dOt(t,e,r){if(typeof e=="function")return mp(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 mp(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:iOt(e,...r)}function as(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(dOt(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[cOt]=!0,bF[t]=n}function y_e(t){let e=lOt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function hOt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new aOt([e,t],e.message);return r.code=e.code,r}return t||e}var OK=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new bF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};as("ERR_ASSERTION","%s",Error);as("ERR_INVALID_ARG_TYPE",(t,e,r)=>{mp(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)mp(typeof c=="string","All expected entries have to be of type string"),AOt.includes(c)?s.push(c.toLowerCase()):uOt.test(c)?i.push(c):(mp(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+=CZ(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=CZ(" "+s+"="+n[s]+`
`);return kt.from(r)};aI.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};aI.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&N7t,6),100),kt.write(r,kh(e.uid,6),108),kt.write(r,kh(e.gid,6),116),_7t(e.size,r,124),kt.write(r,kh(e.mtime.getTime()/1e3|0,11),136),r[156]=$M+k7t(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(Y3e,r,R1),kt.copy(Q7t,r,IZ),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(W3e(r),6),148),r)};aI.decode=function(e,r,n){let s=e[156]===0?0:e[156]-$M,i=oI(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=D7t(s),d=e[157]===0?null:oI(e,157,100,r),h=oI(e,265,32),f=oI(e,297,32),g=Dh(e,329,8),E=Dh(e,337,8),m=W3e(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(T7t(e))e[345]&&(i=oI(e,345,155,r)+"/"+i);else if(!x7t(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:g,devminor:E,pax:null}};function T7t(t){return kt.equals(Y3e,t.subarray(R1,R1+6))}function x7t(t){return kt.equals(w7t,t.subarray(R1,R1+6))&&kt.equals(S7t,t.subarray(IZ,IZ+2))}function R7t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function D7t(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 k7t(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 V3e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function W3e(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?b7t.slice(0,e)+" ":B7t.slice(0,e-t.length)+t+" "}function v7t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function _7t(t,e,r){t.toString(8).length>11?v7t(t,e,r):kt.write(e,kh(t,11),r)}function F7t(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 F7t(t);{for(;e<t.length&&t[e]===32;)e++;let n=R7t(V3e(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 oI(t,e,r,n){return kt.toString(t.subarray(e,V3e(t,0,e,e+r)),n)}function CZ(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 $3e=C((_Rr,K3e)=>{var{Writable:M7t,Readable:L7t,getStreamError:J3e}=EZ(),U7t=nZ(),z3e=tI(),cI=yZ(),P7t=z3e.alloc(0),bZ=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new U7t,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 P7t;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 z3e.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)}},QZ=class extends L7t{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(J3e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=j3e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},wZ=class extends M7t{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function QAe(t,e){if(process.env.GITHUB_OUTPUT||"")return RI("OUTPUT",uS(t,e));process.stdout.write(r3.EOL),Ra("set-output",{name:t},wc(e))}function ed(t){process.exitCode=t3.Failure,Yi(t)}function Ga(){return process.env.RUNNER_DEBUG==="1"}function O(t){Ra("debug",{},t)}function Yi(t,e={}){Ra("error",aS(e),t instanceof Error?t.toString():t)}function ze(t,e={}){Ra("warning",aS(e),t instanceof Error?t.toString():t)}function wAe(t,e={}){Ra("notice",aS(e),t instanceof Error?t.toString():t)}function $(t){process.stdout.write(t+r3.EOL)}function SAe(t){EL("group",t)}function NAe(){EL("endgroup")}function gT(t,e){return A$e(this,void 0,void 0,function*(){SAe(t);let r;try{r=yield e()}finally{NAe()}return r})}function Uc(t,e){if(process.env.GITHUB_STATE||"")return RI("STATE",uS(t,e));Ra("save-state",{name:t},wc(e))}function My(t){return process.env[`STATE_${t}`]||""}import*as Xz from"fs";import*as Zz from"path";import*as O_ from"os";import{readFileSync as u$e,existsSync as l$e}from"fs";import{EOL as d$e}from"os";var zm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(l$e(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(u$e(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${d$e}`)}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 a3=ge(kAe(),1),vAe=ge(oT(),1),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 _Ae(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 FAe(t){return new a3.HttpClient().getAgent(t)}function S$e(t){return new a3.HttpClient().getAgentDispatcher(t)}function MAe(t){let e=S$e(t);return(n,s)=>w$e(this,void 0,void 0,function*(){return(0,vAe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function LAe(){return process.env.GITHUB_API_URL||"https://api.github.com"}function c3(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 td(){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 BT(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)=>BT.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 UAe(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 PAe(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 OAe=Function.bind,HAe=OAe.bind(OAe);function GAe(t,e,r){let n=HAe(PAe,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]=HAe(UAe,null). Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var fXe=class extends Error{constructor(t,e,r){super(hXe(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},gXe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],pXe=["query","method","url"],hue=/\/api\/v3\/?$/;function mXe(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(pXe.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)=>gXe.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 hue.test(i)&&(s.url=i.replace(hue,"/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 fXe(s,a,o.data)}return o.data.data})}function m3(t,e){let r=t.defaults(e);return Object.assign((s,i)=>mXe(r,s,i),{defaults:m3.bind(null,r),endpoint:r.endpoint})}var pKt=m3(Py,{headers:{"user-agent":`octokit-graphql.js/${dXe} ${td()}`},method:"POST",url:"/graphql"});function fue(t){return m3(t,{method:"POST",url:"/graphql"})}var E3="(?:[a-zA-Z0-9_-]+)",gue="\\.",pue=new RegExp(`^${E3}${gue}${E3}${gue}${E3}$`),EXe=pue.test.bind(pue);async function CXe(t){let e=EXe(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 IXe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function yXe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=IXe(t),e(s)}var mue=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(CXe.bind(null,e),{hook:yXe.bind(null,e)})};var C3="7.0.6";var Eue=()=>{},BXe=console.warn.bind(console),bXe=console.error.bind(console);function QXe(t={}){return typeof t.debug!="function"&&(t.debug=Eue),typeof t.info!="function"&&(t.info=Eue),typeof t.warn!="function"&&(t.warn=BXe),typeof t.error!="function"&&(t.error=bXe),t}var Cue=`octokit-core.js/${C3} ${td()}`,wT=class{static VERSION=C3;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 qAe.Collection,n={baseUrl:Py.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} ${Cue}`:Cue,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Py.defaults(n),this.graphql=fue(this.request).defaults(n),this.log=QXe(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=mue(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 I3="17.0.0";var wXe={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 Vy(i));return n.searchPaths.push(...T3(n.patterns)),n})}static stat(e,r,n){return _3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Zm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){O(`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 Zm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Zm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){O(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var aZe=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 Kue(t,e){return aZe(this,void 0,void 0,function*(){return yield DT.create(t,e)})}var Gde=ge(Xy(),1);import*as zT from"crypto";import*as n0 from"fs";import*as Qf from"path";import*as qde from"util";var Zy;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Zy||(Zy={}));var vs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(vs||(vs={}));var Wi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Wi||(Wi={}));var VT=2,WT=5e3,t8=5e3,r8=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Hde=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,eB="cache.tar",n8="manifest.txt",uXt=10*Math.pow(1024,3),JT="cache read denied:";var r0=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())})},Ert=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)}},Crt="1.0";function tB(){return r0(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=Qf.join(n,"actions","temp")}let r=Qf.join(e,zT.randomUUID());return yield gf(r),r})}function Oc(t){return n0.statSync(t).size}function s8(t){return r0(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 Kue(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=Ert(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Qf.relative(a,s).replace(new RegExp(`\\${Qf.sep}`,"g"),"/");O(`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 rB(t){return r0(this,void 0,void 0,function*(){return qde.promisify(n0.unlink)(t)})}function Yde(t){return r0(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),O(`Checking ${e} ${r.join(" ")}`);try{yield Ha(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){O(s.message)}return n=n.trim(),O(n),n})}function nB(){return r0(this,void 0,void 0,function*(){let t=yield Yde("zstd",["--quiet"]),e=Gde.clean(t);return O(`zstd version: ${e}`),t===""?vs.Gzip:vs.ZstdWithoutLong})}function od(t){return t===vs.Gzip?Zy.Gzip:Zy.Zstd}function Vde(){return r0(this,void 0,void 0,function*(){return n0.existsSync(r8)?r8:(yield Yde("tar")).toLowerCase().includes("gnu tar")?qi("tar"):""})}function i8(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function s0(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Crt),zT.createHash("sha256").update(n.join("|")).digest("hex")}function Wde(){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 _0 from"fs";import{URL as rut}from"url";var Hc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as Irt}from"node:os";import yrt from"node:util";import Brt from"node:process";function Jde(t,...e){Brt.stderr.write(`${yrt.format(t,...e)}${Irt}`)}import sB from"node:process";function KT(t){return sB.env[t]}var zde=typeof sB.versions.deno=="string"&&sB.versions.deno.length>0,jde=typeof sB.versions.bun=="string"&&sB.versions.bun.length>0,$T=!0;var Kde=KT("DEBUG"),Xde,o8=[],a8=[],XT=[];Kde&&c8(Kde);var Zde=Object.assign(t=>ehe(t),{enable:c8,enabled:A8,disable:brt,log:Jde});function c8(t){Xde=t,o8=[],a8=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?a8.push(r.substring(1)):o8.push(r);for(let r of XT)r.enabled=A8(r.namespace)}function A8(t){if(t.endsWith("*"))return!0;for(let e of a8)if($de(t,e))return!1;for(let e of o8)if($de(t,e))return!0;return!1}function $de(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 brt(){let t=Xde||"";return c8(""),t}function ehe(t){let e=Object.assign(r,{enabled:A8(t),destroy:Qrt,log:Zde.log,namespace:t,extend:wrt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return XT.push(e),e}function Qrt(){let t=XT.indexOf(this);return t>=0?(XT.splice(t,1),!0):!1}function wrt(t){let e=ehe(`${this.namespace}:${t}`);return e.log=this.log,e}var i0=Zde;var u8=["verbose","info","warning","error"],the={verbose:400,info:300,warning:200,error:100};function rhe(t,e){e.log=(...r)=>{t.log(...r)}}function nhe(t){return u8.includes(t)}function ZT(t){let e=new Set,r=KT(t.logLevelEnvVarName),n,s=i0(t.namespace);s.log=(...u)=>{i0.log(...u)};function i(u){if(u&&!nhe(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${u8.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);i0.enable(l.join(","))}r&&(nhe(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${u8.join(", ")}.`));function o(u){return!!(n&&the[u.level]<=the[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(rhe(u,d),o(d)){let h=i0.disable();i0.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return rhe(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 she=ZT({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),Srt=she.logger;function iB(t){return she.createClientLogger(t)}function ex(t){return t.toLowerCase()}function Nrt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*Trt(t){for(let e of t.values())yield[e.name,e.value]}var l8=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(ex(e),{name:e,value:Nrt(r)})}get(e){return this._headersMap.get(ex(e))?.value}has(e){return this._ Line truncated
${krt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function o0(t){return t instanceof _s?!0:Sf(t)&&t.name==="RestError"}function ai(t,e){return Buffer.from(t,e)}import g8 from"node:http";import p8 from"node:https";import ahe from"node:zlib";import{Transform as vrt}from"node:stream";var ci=iB("ts-http-runtime");var _rt={};function oB(t){return t&&typeof t.pipe=="function"}function che(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 Ahe(t){return t&&typeof t.byteLength=="number"}var nx=class extends vrt{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}},m8=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Hc("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new Ja;ci.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=Urt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,g=new nx(f);g.on("error",E=>{ci.error("Error in upload progress",E)}),oB(a)?a.pipe(g):g.end(a),a=g}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Frt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Mrt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new nx(h);f.on("error",g=>{ci.error("Error in download progress",g)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await Lrt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();oB(a)&&(A=che(a));let u=Promise.resolve();oB(c)&&(u=che(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{ci.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?g8.request(a,c):p8.request(a,c);u.once("error",l=>{A(new _s(l.message,{code:l.code??_s.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Hc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&oB(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Ahe(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(ci.error("Unrecognized body type",n),A(new _s("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?g8.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new g8.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return p8.globalAgent;let s=e.tlsSettings??_rt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(ci.info("No cached TLS Agent exist, creating a new Agent"),i=new p8.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Frt(t){let e=Ji();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 Mrt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=ahe.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=ahe.createInflate();return t.pipe(n),n}return t}function Lrt(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 _s(`Error reading response as text: ${s.message}`,{code:_s.PARSE_ERROR}))})})}function Urt(t){return t?Buffer.isBuffer(t)?t.length:oB(t)?null:Ahe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function uhe(){return new m8}function sx(){return uhe()}var E8="logPolicy";function ix(t={}){let e=t.logger??ci.info,r=new Ja({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:E8,asy Line truncated
`;return e}function ist(t){return t instanceof Uint8Array?t.byteLength:AB(t)?t.size===-1?void 0:t.size:void 0}function ost(t){let e=0;for(let r of t){let n=ist(r);if(n===void 0)return;e+=n}return e}async function ast(t,e,r){let n=[ai(`--${r}`,"utf-8"),...e.flatMap(i=>[ai(`\r
`,"utf-8"),ai(sst(i.headers),"utf-8"),ai(`\r
`,"utf-8"),i.body,ai(`\r
--${r}`,"utf-8")]),ai(`--\r
\r
`,"utf-8")],s=ost(n);s&&t.headers.set("Content-Length",s),t.body=await rfe(n)}var uB="multipartPolicy",cst=70,Ast=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function ust(t){if(t.length>cst)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Ast.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Nx(){return{name:uB,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?ust(r):r=nst(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await ast(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function Tx(){return rx()}var nfe=ZT({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),drr=nfe.logger;function Oo(t){return nfe.createClientLogger(t)}var qc=Oo("core-rest-pipeline");function M8(t={}){return ix({logger:qc.info,...t})}var L8=wx;function U8(t={}){return Sx(t)}import P8 from"node:os";import Ad from"node:process";function sfe(){return"User-Agent"}async function ife(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 xx="1.24.0";function Est(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function ofe(){return sfe()}async function Rx(t){let e=new Map;e.set("core-rest-pipeline",xx),await ife(e);let r=Est(e);return t?`${t} ${r}`:r}var afe=ofe(),cfe="userAgentPolicy";function O8(t={}){let e=Rx(t.userAgentPrefix);return{name:cfe,async sendRequest(r,n){return r.headers.has(afe)||r.headers.set(afe,await e),n(r)}}}var Afe=Symbol("rawContent");function H8(t){return typeof t[Afe]=="function"}function ufe(t){return H8(t)?t[Afe]():t}var Dx=uB;function G8(){let t=Nx();return{name:Dx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)H8(n.body)&&(n.body=ufe(n.body));return t.sendRequest(e,r)}}}var q8=bx;function Y8(){return Qx()}function V8(t={}){return cx(t)}function W8(){return Ax()}var lB=class extends Error{constructor(e){super(e),this.name="AbortError"}};function J8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new lB(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 Nst="The delay was aborted.";function d0(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return J8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Nst})}function ud(t){if(Sf(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 lfe(t){return Sf(t)}function h0(){return wf()}var Jt=$T;function ld(t){return k8(t)}function j8(t,e){return Bx(t,e)}var dfe="setClientRequestIdPolicy";function K8(t="x-ms-client-request-id"){return{name:dfe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function $8(t){return ux(t)}function X8(t){return lx(t)}var f0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function hfe(t={}){let e=new Z8(t.parentContext);return t.span&&(e=e.setValue(f0.span,t.span)),t.namespace&&(e=e.setValue(f0.namespace,t.namespace)),e}var Z8=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 gfe=ge(ffe(),1),vx=gfe.state;function Tst(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function xst(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:Tst(),tracingContext:hfe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function dB(){return vx.instrumenterImplementation||(vx.instrumenterImplementation=xst()),vx.instrumenterImplementation}function hB(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=dB().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--),!$it(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",tn("InvalidTag",l,Fs(t,i))}let A=Wit(t,i);if(A===!1)return tn("InvalidAttr","Attributes for '"+c+"' have open quote.",Fs(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=Kfe(u,e);if(d===!0)n=!0;else return tn(d.err.code,d.err.msg,Fs(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return tn("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Fs(t,o));if(r.length===0)return tn("InvalidTag","Closing tag '"+c+"' has not been opened.",Fs(t,o));{let l=r.pop();if(c!==l.tagName){let d=Fs(t,l.tagStartPos);return tn("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Fs(t,o))}r.length==0&&(s=!0)}}else return tn("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Fs(t,i));else{let l=Kfe(u,e);if(l!==!0)return tn(l.err.code,l.err.msg,Fs(t,i-u.length+l.err.line));if(s===!0)return tn("InvalidXml","Multiple possible root nodes found.",Fs(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=jfe(t,i);continue}else if(t[i+1]==="?"){if(i=zfe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=jit(t,i);if(l==-1)return tn("InvalidChar","char '&' is not expected.",Fs(t,i));i=l}else if(s===!0&&!Jfe(t[i]))return tn("InvalidXml","Extra text at the end",Fs(t,i));t[i]==="<"&&i--}}else{if(Jfe(t[i]))continue;return tn("InvalidChar","char '"+t[i]+"' is not expected.",Fs(t,i))}if(n){if(r.length==1)return tn("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Fs(t,r[0].tagStartPos));if(r.length>0)return tn("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return tn("InvalidXml","Start tag expected.",1);return!0}function Jfe(t){return t===" "||t===" "||t===`
`||t==="\r"}function zfe(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 tn("InvalidXml","XML declaration allowed only at the start of the document.",Fs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function jfe(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 Yit='"',Vit="'";function Wit(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Yit||t[e]===Vit)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 Jit=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Kfe(t,e){let r=Gx(t,Jit),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return tn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",bB(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return tn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",bB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return tn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",bB(r[s]));let i=r[s][2];if(!Kit(i))return tn("InvalidAttr","Attribute '"+i+"' is an invalid name.",bB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return tn("InvalidAttr","Attribute '"+i+"' is repeated.",bB(r[s]))}return!0}function zit(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 jit(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,zit(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 tn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Kit(t){return m4(t)}function $it(t){return m4(t)}function Fs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function bB(t){return t.startIndex+t[1].length}var $fe={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"},Xfe={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"},Zfe={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 di("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new SB(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=I0(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=w4(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=S4(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 di(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=I0(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=I0(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=S4(t,a,s.removeNSPrefix);if(!u){let V=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${V}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,g=u.closeIndex;if({tagName:l,tagExp:h}=w4(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let I=null,y={},B;B=bot(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,l),I&&(y=Bot(I,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let V="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,g+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,V=P.tagContent}let k=new di(l);I&&(k[":@"]=I),k.add(s.textNodeName,V),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=w4(s.transformTagName,l,h,s));let V=new di(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let V=new di(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let V=new di(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),r=V}n="",a=g}}}else n+=t[a];return e.child};function xot(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 Rot(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 Dot(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 kot(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function vot(t,e,r=">"){Line truncated
`;function Hot(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(k4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function wge(t,e,r,n,s){return!r.sanitizeName||vf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function D4(t,e){let r="";e.format&&(r=Oot);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 $i(a)):a instanceof $i&&n.push(a)}let s=Hot(t,e),i=new Wc;return Sge(t,e,r,i,n,s)}function Sge(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=R4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=k4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:wge(u,!1,e,n,i),h=Got(A[":@"],e);n.push(d,h);let f=Yot(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=R4(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],B=Zx(y);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],B=Xx(y);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Qge(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let E=Qge(A[":@"],e,f,n,i),m=r+`<${d}${E}`,I;f?I=Nge(A[u],e):I=Sge(A[u],e,g,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!I||I.length===0)&&e.suppressEmptyNode?o+=m+"/>":I&&I.endsWith(">")?o+=m+`>${I}${r}</${d}>`:(o+=m+">",I&&r!==""&&(I.includes("/>")||I.includes("</"))?o+=r+e.indentBy+I+r:o+=I,o+=`</${d}>`),a=!0,n.pop()}return o}function Got(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]=fd(t[s]),n=!0}return n?r:null}function Nge(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=k4(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=qot(s[":@"],e),a=Nge(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function qot(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)}="${fd(s)}"`}return r}function k4(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 Qge(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:wge(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=R4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${fd(A)}"`}return i}function Yot(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 R4(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 v4(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 Vot={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function fi(t){if(this.options=Object.assign({},Vot,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 $i(r)):r instanceof $i&&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 Wot(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 _4(t,e,r,n,s){return!r.sanitizeName||vf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}fi.prototype.build=function(t){if(this.options.preserveOrder)return D4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Wc,r=Wot(t,this.options);return this.j2x(t,0,e,r).val}};fi.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let 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:_4(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=_4(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 g=t[c][f];if(!(typeof g>"u"))if(g===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(u);let E=this.j2x(g,e+1,r,n);r.pop(),d+=E.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(h+=E.attrStr)}else d+=this.processTextOrObjNode(g,u,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,g);E=this.replaceEntitiesValue(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let m=""+g;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(g,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=_4(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}};fi.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+'="'+fd(e)+'"'};function Jot(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)}fi.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=fd(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]=fd(t[n]),r=!0)}return r?e:null};fi.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isA Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set($e.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===$e.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith($e.PREFIX_FOR_STORAGE));r.sort((s,i)=>uR(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=aR(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=cR(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 Or=class extends Mf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new DB(e,r,this)}computeHMACSHA256(e){return iat("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Lf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var Bn=Oo("storage-common");var Ho;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ho||(Ho={}));var pd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ho.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},oat=new Lf("The operation was aborted."),kB=class extends Jc{retryOptions;constructor(e,r,n=pd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:pd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):pd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:pd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:pd.maxRetryDelayInMs):pd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:pd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:pd.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=oR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=gd(s.url,vu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(Bn.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(Bn.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 Bn.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 Bn.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 Bn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return Bn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get($e.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')?(Bn.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 Ho.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ho.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Bn.info(`RetryPolicy: Delay for ${s}ms`),AR(s,n,oat)}};var vB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new kB(e,r,this.retryOptions)}};var aat="storageBrowserPolicy";function kge(){return{name:aat,async sendRequest(t,e){return Jt||((t.method==="GET"||t.method==="HEAD")&&(t.url=gd(t.url,vu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete($e.COOKIE),t.headers.delete($e.CONTENT_LENGTH)),e(t)}}}var cat="StorageCorrectContentLengthPolicy";function vge(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set($e.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:cat,async sendRequest(e,r){return t(e),r(e)}}}var Aat="storageRetryPolicy",B0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ho.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},uat=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],lat=new Lf("The operation was aborted.");function _ge(t={}){let e=t.retryPolicyType??B0.retryPolicyType,r=t.maxTries??B0.maxTries,n=t.retryDelayInMs??B0.retryDelayInMs,s=t.maxRetryDelayInMs??B0.maxRetryDelayInMs,i=t.secondaryHost??B0.secondaryHost,o=t.tryTimeoutInMs??B0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return Bn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of uat)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=dat("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set($e.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===$e.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith($e.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>uR(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=aR(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=cR(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:hat,async sendRequest(i,o){return e(i),o(i)}}}var fat="storageRequestFailureDetailsParserPolicy";function Fge(){return{name:fat,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 gat}from"node:crypto";var lR=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return gat("sha256",this.key).update(e,"utf8").digest("base64")}};var dR="12.31.0",hR="2026-02-06";var fR="https://storage.azure.com/.default",_u={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var za="",O4="*",pat=1*1024*1024;var mat=4*pat;var Mge="AES256",Lge="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Uge=["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"],Pge=["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"],Oge="BlobUsesCustomerSpecifiedEncryption",Hge="BlobDoesNotUseCustomerSpecifiedEncryption",Gge=["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 _B=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function rn(t,e={}){t||(t=new Nr);let r=new _B([],e);return r._credential=t,r}function Eat(t){let e=[Cat,qge,Iat,yat,Bat,bat,wat];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Qat(s));return{wrappedPolicies:g4(r),afterRetry:n}}}}function H4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?p4(e):U4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${dR}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=pB({...r,loggingOptions:{additionalAllowedHeaderNames:Uge,additionalAllowedQueryParameters:Pge,logger:tR.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:eR,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:M4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:q8}),s.addPolicy(vge()),s.addPolicy(_ge(r.retryOptions),{phase:"Retry"}),s.addPolicy(Fge()),s.addPolicy(kge());let a=Eat(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=G4(t);ji(c)?s.addPolicy(g0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Za(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 CAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Xa(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 Za(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 IAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Xa(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 Za(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=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Xa(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 Za(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 BAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Xa(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 Za(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 bAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Xa(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 Za(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 QAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Xa(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 Za(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 Vf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Wf(t){let e=t.version?t.version:hR;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 WB=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=h0()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==za||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==za||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=>_e(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!==za||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==za||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=_e(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!==za||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==za||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=>_e(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!==za||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==za||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"}};k0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var jf=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"}};jf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var eb=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var JAt=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())})},g9=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 rme(t,e,r){return JAt(this,void 0,void 0,function*(){var n;let s=new ec(t),i=s.getBlockBlobClient(),o=new g9((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(),O(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new cD(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw ze(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as sme from"buffer";import*as dA from"fs";import*as ime from"stream";import*as ome from"util";var AD=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 uD(t){return t?t>=200&&t<300:!1}function zAt(t){return t?t>=500:!0}function jAt(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function KAt(t){return AD(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function nme(t,e,r){return AD(this,arguments,void 0,function*(n,s,i,o=VT,a=WT,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),!zAt(d)))return l;if(d&&(h=jAt(d),A=`Cache service responded with ${d}`),O(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){O(`${n} - Error is not retryable`);break}yield KAt(a),u++}throw Error(`${n} failed: ${A}`)})}function tb(t,e){return AD(this,arguments,void 0,function*(r,n,s=VT,i=WT){return yield nme(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof Mc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function v0(t,e){return AD(this,arguments,void 0,function*(r,n,s=VT,i=WT){return yield nme(r,n,o=>o.message.statusCode,s,i)})}var Wo=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 $At(t,e){return Wo(this,void 0,void 0,function*(){yield ome.promisify(ime.pipeline)(t.message,e)})}var lD=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,O(`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||[])O(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function I9(t,e,r){return pi(this,void 0,void 0,function*(){let n=new rut(t),s=ume(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield cme(t,e,s):s.concurrentBlobDownloads?yield ame(t,e,s):yield dD(t,e):yield dD(t,e)})}function Ime(t,e,r){return pi(this,void 0,void 0,function*(){let n=C9(),s=s0(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield tb("reserveCache",()=>pi(this,void 0,void 0,function*(){return n.postJson(nb("caches"),i)}))})}function Eme(t,e){return`bytes ${t}-${e}/*`}function out(t,e,r,n,s){return pi(this,void 0,void 0,function*(){O(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Eme(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Eme(n,s)},o=yield v0(`uploadChunk (start: ${n}, end: ${s})`,()=>pi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!uD(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function aut(t,e,r,n){return pi(this,void 0,void 0,function*(){let s=Oc(r),i=nb(`caches/${e.toString()}`),o=_0.openSync(r,"r"),a=p9(n),c=i8("uploadConcurrency",a.uploadConcurrency),A=i8("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];O("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>pi(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 out(t,i,()=>_0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),h,f)}})))}finally{_0.closeSync(o)}})}function cut(t,e,r){return pi(this,void 0,void 0,function*(){let n={size:r};return yield tb("commitCache",()=>pi(this,void 0,void 0,function*(){return t.postJson(nb(`caches/${e.toString()}`),n)}))})}function y9(t,e,r,n){return pi(this,void 0,void 0,function*(){if(p9(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield rme(r,e,n)}else{let i=C9();O("Upload cache"),yield aut(i,t,e,n),O("Commiting cache");let o=Oc(e);$(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield cut(i,t,o);if(!uD(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);$("Cache saved successfully")}})}var h0e=ge(dG(),1),sn=ge(At(),1),eo=ge(At(),1),eg=ge(At(),1),tg=ge(At(),1),rg=ge(At(),1);var pG=ge(At(),1),mG=ge(At(),1),u0e=ge(At(),1),l0e=ge(At(),1),d0e=ge(At(),1);var hG=ge(At(),1),fG=ge(At(),1),a0e=ge(At(),1),c0e=ge(At(),1),A0e=ge(At(),1),gG=class extends A0e.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,c0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,a0e.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?fG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,hG.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,hG.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?fG.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},ZD=new gG;var EG=class extends d0e.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:()=>ZD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,l0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,u0e.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(ZD.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?mG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,pG.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)ZD.internalBinaryWrite(e.scope[i],r.tag(2,pG.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?mG.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield vG(r,"create");yield _G(n,t)})}var K0=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())})},ro=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Yu=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},LG="cache write denied:",r2=class t extends Yu{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},m0e=JT,n2=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},s2=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function E0e(t){if(!t||t.length===0)throw new ro("Path Validation Error: At least one directory or file path is required")}function UG(t){if(t.length>512)throw new ro(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ro(`Key Validation Error: ${t} cannot contain commas.`)}function C0e(){return rb()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function i2(t,e,r,n){return K0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=rb();O(`Cache service version: ${A}`),E0e(s);let u=E9();if(!dme(u)){$(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),O(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield wdt(s,i,o,a,c):yield Qdt(s,i,o,a,c)})}function Qdt(t,e,r,n){return K0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)UG(h);let l=yield nB(),d="";try{let h;try{h=yield Cme(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(m0e)?new n2(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return $("Lookup only - skipping download"),h.cacheKey;d=Cb.join(yield tB(),od(l)),O(`Archive Path: ${d}`),yield I9(h.archiveLocation,d,a),Ga()&&(yield Eb(d,l));let f=Oc(d);return $(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield FG(d,l),$("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===ro.name)throw h;f instanceof Mc&&typeof f.statusCode=="number"&&f.statusCode>=500?Yi(`Failed to restore: ${h.message}`):ze(`Failed to restore: ${h.message}`)}finally{try{yield rB(d)}catch(h){O(`Failed to delete archive: ${h}`)}}})}function wdt(t,e,r,n){return K0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)UG(d);let l="";try{let d=kG(),h=yield nB(),f={key:i,restoreKeys:o,version:s0(s,h,c)},g;try{g=yield d.GetCacheEntryDownloadURL(f)}catch(I){let y=(A=I?.message)!==null&&A!==void 0?A:"";throw y.includes(m0e)?new n2(y):I}if(!g.ok){O(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?$(`Cache hit for restore-key: ${g.matchedKey}`):$(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return $("Lookup only - skipping download"),g.matchedKey;l=Cb.join(yield tB(),od(h)),O(`Archive path: ${l}`),O(`Starting download of archive to: ${l}`),yield I9(g.signedDownloadUrl,l,a);let m=Oc(l);return $(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Ga()&&(yield Eb(l,h)),yield FG(l,h),$("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===ro.name)throw d;h instanceof Mc&&typeof h.statusCode=="number"&&h.statusCode>=500?Yi(`Failed to restore: ${d.message}`):ze(`Failed to restore: ${d.message}`)}finally{try{l&&(yield rB(l))}catch(d){O(`Failed to delete archive: ${d}`)}}})}function o2(t,e,r){return K0(this,arguments,void 0,function*(n,s,i,o=!1){let a=rb();O(`Cache service version: ${a}`),E0e(n),UG(s);let c=E9();return hme(c)?a==="v2"?yield Ndt(n,s,i,o):yield Sdt(n,s,i,o):($(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),O(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function Sdt(t,e,r){return K0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield nB(),f=-1,g=yield s8(n);if(O("Cache Paths:"),O(`${JSON.stringify(g)}`),g.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield tB(),m=Cb.join(E,od(h));O(`Archive Path: ${m}`);try{yield MG(E,g,h),Ga()&&(yield Eb(m,h));let I=10*1024*1024*1024,y=Oc(m);if( Line truncated
See ${r.getDocumentationLink()}`;I0e.push(n),ed(n)}function B0e(){Uc("deprecation-collector_deprecations",JSON.stringify(OG)),Uc("deprecation-collector_errors",JSON.stringify(I0e))}import*as A2 from"path";var b0e="GRADLE_ACTION_ID";var h2=".setup-gradle",yb=class t{getDependencyGraphOption(){let e=hr("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 EA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=hr("artifact-retention-days");return Rdt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(oi.workflow,oi.job,Q0e())}getReportDirectory(){let e=hr("dependency-graph-report-dir");return A2.resolve(Vu(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return ng("dependency-graph-exclude-projects")}getIncludeProjects(){return ng("dependency-graph-include-projects")}getExcludeConfigurations(){return ng("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return ng("dependency-graph-include-configurations")}getPluginRepository(){return new u2}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){O(`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 $0=class{isCacheDisabled(){return C0e()?EA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&EA("cache-read-only")}isCacheWriteOnly(){return EA("cache-write-only")}isCacheOverwriteExisting(){return EA("cache-overwrite-existing")}isCacheStrictMatch(){return EA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=Ib("gradle-home-cache-cleanup");if(e!==void 0)return c2("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=hr("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 hr("cache-encryption-key")}getCacheIncludes(){return n3("gradle-home-cache-includes")}getCacheExcludes(){return n3("gradle-home-cache-excludes")}getCacheProvider(){let e=hr("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 nc=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return EA("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return hr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return hr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return hr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return hr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return Ib("develocity-injection-enabled")}getDevelocityUrl(){return hr("develocity-url")}getDevelocityAllowUntrustedServer(){return Ib("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return Ib("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return Ib("develocity-enforce-url")}getDevelocityPluginVersion(){return hr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return hr("develocity-ccud-plugin-version")}getPluginRepository(){return new u2}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:(ze("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},u2=class{getUrl(){return ng("gradle-plugin-repository-url")}getUsername(){return ng("gradle-plugin-repository-username")}getPassword(){return ng("gradle-plugin-repository-password")}},l2=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 Tb(i));return n.searchPaths.push(...VG(n.patterns)),n})}static stat(e,r,n){return ZG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield eE.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){O(`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 eE.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield eE.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){O(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as eq from"crypto";import*as I2 from"fs";import*as X0e from"stream";import*as Z0e from"util";import*as eEe from"path";var zht=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())})},jht=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 tEe(t,e){return zht(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?$:O,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=eq.createHash("sha256"),f=0;try{for(var g=!0,E=jht(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;g=!0){c=m.value,g=!1;let I=c;if(u(I),!I.startsWith(`${d}${eEe.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(I2.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=eq.createHash("sha256");yield Z0e.promisify(X0e.pipeline)(I2.createReadStream(I),y),h.write(y.digest()),f++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!g&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var rEe=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 tq(t,e){return rEe(this,void 0,void 0,function*(){return yield E2.create(t,e)})}function nEe(t){return rEe(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield tq(e,{followSymbolicLinks:i});return tEe(o,r,s)})}import*as rq from"path";var Kht="Gradle User Home",iEe="BASIC_CACHE_PRIMARY_KEY",oEe="BASIC_CACHE_RESTORED_KEY",$ht="setup-java",aEe=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],y2=class{async restore(e,r){let n=cEe(e),s=await Xht();Uc(iEe,s);try{let i=await i2(n,s);i?(Uc(oEe,i),$(`Basic caching restored from cache key: ${i}`)):$("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){ze(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=My(iEe),i=My(oEe);if(n.readOnly)return{status:"read-only",entries:[Rb({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:[Rb({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=cEe(e);try{return await o2(o,s)===-1?(ze(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[Rb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):($(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[Rb({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 ze(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[Rb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry reLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${aEe}], make sure you have checked out the target repository`);return`${$ht}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var eft="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.",tft="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.",sq=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function lEe(t){return t.isCacheDisabled()?(nq("Cache is disabled: will not restore state from previous builds."),new sq):t.getCacheProvider()==="basic"?(nq(tft),new y2):(nq(eft),rft())}async function rft(){let t=nft();return await import(Zht(t).href)}function nft(){let t=import.meta.dirname,e=uEe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(AEe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function nq(t){console.info(t)}import B2 from"fs";import dEe from"path";var b2=class{constructor(e){this.cacheFile=dEe.resolve(e,h2,"valid-wrappers.json")}load(){if(B2.existsSync(this.cacheFile))try{return JSON.parse(B2.readFileSync(this.cacheFile,"utf-8"))}catch(e){ze(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];B2.mkdirSync(dEe.dirname(this.cacheFile),{recursive:!0}),B2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var EEe=ge(pEe(),1);import*as mEe from"util";import*as Q2 from"path";import*as w2 from"fs";var Aft=mEe.promisify(w2.readdir);async function CEe(t){return(await IEe(t)).filter(r=>(0,EEe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>Q2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function IEe(t){let e=await Aft(t),r=await Promise.all(e.map(async n=>{let s=Q2.resolve(t,n),i=w2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?IEe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var lft={_useHtmlParser2:!1};function tE(t,e){if(!t)return e??lft;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={};xa(Tq,{contains:()=>O2,extract:()=>igt,html:()=>tgt,merge:()=>qEe,parseHTML:()=>ngt,root:()=>sgt,text:()=>fg,xml:()=>rgt});var vd={};xa(vd,{DocumentPosition:()=>Zo,append:()=>Lft,appendChild:()=>Mft,compareDocumentPosition:()=>PEe,existsOne:()=>LEe,filter:()=>oE,find:()=>M2,findAll:()=>Hft,findOne:()=>L2,findOneChild:()=>Oft,getAttributeValue:()=>kft,getChildren:()=>iE,getElementById:()=>Vft,getElements:()=>Yft,getElementsByClassName:()=>Wft,getElementsByTagName:()=>hg,getElementsByTagType:()=>Jft,getFeed:()=>Nq,getInnerHTML:()=>Dft,getName:()=>_ft,getOuterHTML:()=>FEe,getParent:()=>MEe,getSiblings:()=>wq,getText:()=>v2,hasAttrib:()=>vft,hasChildren:()=>rr,innerText:()=>Fb,isCDATA:()=>rE,isComment:()=>dg,isDocument:()=>Xo,isTag:()=>Qe,isText:()=>Ii,nextElementSibling:()=>_2,prepend:()=>Pft,prependChild:()=>Uft,prevElementSibling:()=>F2,removeElement:()=>$u,removeSubsets:()=>zft,replaceElement:()=>Fft,testElement:()=>qft,textContent:()=>Ku,uniqueSort:()=>Dd});var $o={};xa($o,{CDATA:()=>hq,Comment:()=>Aq,Directive:()=>cq,Doctype:()=>fq,ElementType:()=>bt,Root:()=>oq,Script:()=>uq,Style:()=>lq,Tag:()=>dq,Text:()=>aq,isTag:()=>iq});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 iq(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var oq=bt.Root,aq=bt.Text,cq=bt.Directive,Aq=bt.Comment,uq=bt.Script,lq=bt.Style,dq=bt.Tag,hq=bt.CDATA,fq=bt.Doctype;var S2=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 nE(this,e)}},Db=class extends S2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},IA=class extends Db{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Ag=class extends Db{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},ug=class extends Db{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},kb=class extends S2{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
`:v2(t.children):rE(t)?v2(t.children):Ii(t)?t.data:""}function Ku(t){return Array.isArray(t)?t.map(Ku).join(""):rr(t)&&!dg(t)?Ku(t.children):Ii(t)?t.data:""}function Fb(t){return Array.isArray(t)?t.map(Fb).join(""):rr(t)&&(t.type===bt.Tag||rE(t))?Fb(t.children):Ii(t)?t.data:""}function iE(t){return rr(t)?t.children:[]}function MEe(t){return t.parent||null}function wq(t){let e=MEe(t);if(e!=null)return iE(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 kft(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function vft(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function _ft(t){return t.name}function _2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function F2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function $u(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 Fft(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 Mft(t,e){if($u(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 Lft(t,e){$u(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 Uft(t,e){if($u(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 Pft(t,e){$u(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 oE(t,e,r=!0,n=1/0){return M2(t,Array.isArray(e)?e:[e],r,n)}function M2(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&&rr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Oft(t,e){return e.find(t)}function L2(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&&rr(i)&&i.children.length>0){let o=L2(t,i.children,!0);if(o)return o}}return null}function LEe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&LEe(t,r.children))}function Hft(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),rr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var U2={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=>Ii(e)&&t(e.data):e=>Ii(e)&&e.data===t}};function Sq(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Gft(t,e){return r=>t(r)||e(r)}function UEe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(U2,r)?U2[r](n):Sq(r,n)});return e.length===0?null:e.reduce(Gft)}function qft(t,e){let r=UEe(t);return r?r(e):!0}function Yft(t,e,r,n=1/0){let s=UEe(t);return s?oE(s,e,r,n):[]}function Vft(t,e,r=!0){return Array.isArray(e)||(e=[e]),L2(Sq("id",t),e,r)}function hg(t,e,r=!0,n=1/0){return oE(U2.tag_name(t),e,r,n)}function Wft(t,e,r=!0,n=1/0){return oE(Sq("class",t),e,r,n)}function Jft(t,e,r=!0,n=1/0){return oE(U2.tag_type(t),e,r,n)}function zft(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 Zo;(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"})(Zo||(Zo={}));function PEe(t,e){let r=[],n=[];if(t===e)return 0;let s=rr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=rr(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 Zo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Zo.FOLLOWING|Zo.CONTAINED_BY:Zo.FOLLOWING:a===t?Zo.PRECEDING|Zo.CONTAINS:Zo.PRECEDING}function Dd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=PEe(e,r);return n&Zo.PRECEDING?-1:n&Zo.FOLLOWING?1:0}),t}function Nq(t){let e=P2(Zft,t);return e?e.name==="feed"?jft(e):Kft(e):null}function jft(t){var e;let r=t.children,n={type:"atom",items:hg("entry",r).map(o=>{var a;let{children:c}=o,A={media:OEe(c)};yi(A,"id","id",c),yi(A,"title","title",c);let u=(a=P2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=kd("summary",c)||kd("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 ra=ge(_d(),1);var Yq={};function Vq(t,e){return t===ra.default.falseFunc?ra.default.falseFunc:r=>e.isTag(r)&&t(r)}function Wq(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 qq(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,qq(r),n);return i===ra.default.trueFunc?t:i===ra.default.falseFunc?ra.default.falseFunc:o=>i(o)&&t(o)},X2={is:Gq,matches:Gq,where:Gq,not(t,e,r,n,s){let i=s(e,qq(r),n);return i===ra.default.falseFunc?t:i===ra.default.trueFunc?ra.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=qq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(Gb))?[Yq]:void 0,c=s(e,o,a);if(c===ra.default.falseFunc)return ra.default.falseFunc;let A=Vq(c,i);if(a&&c!==ra.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,...Wq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function TCe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in X2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return X2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:$2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,NCe.parse)(A);return X2.is(t,u,r,n,s)}if(typeof c=="function")return Hq(c,o,a,1),u=>c(u,a)&&t(u);if(o in gE)return gE[o](t,a,r,n);if(o in Yb){let u=Yb[o];return Hq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var na=ge(hE(),1);function Jq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function xCe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case na.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case na.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case na.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()),bCe[e.action](t,e,r)}case na.SelectorType.Pseudo:return TCe(t,e,r,n,s);case na.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 na.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=Jq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=Jq(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=Jq(A,i));return!1};case na.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case na.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case na.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 na.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 na.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function RCe(t,e,r){let n=Z2(t,e,r);return Vq(n,e.adapter)}function Z2(t,e,r){let n=typeof t=="string"?(0,ac.parse)(t):t;return ek(n,e,r)}function DCe(t){return t.type===ac.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(DCe)))}var Ygt={type:ac.SelectorType.Descendant},Vgt={type:"_flexibleDescendant"},Wgt={type:ac.SelectorType.Pseudo,name:"scope",data:null};function Jgt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===Yq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(JCe,`\r
`)}}).toArray()}var AY={};xa(AY,{extract:()=>cmt});function amt(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 cmt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=amt(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 Ld=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}}};Ld.prototype.cheerio="[cheerio object]";Ld.prototype.splice=Array.prototype.splice;Ld.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Ld.prototype,Mq,iY,oY,aY,cY,AY);function zCe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=tE(s),a=t(n,o,i,null);class c extends Ld{_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&&ea(u))return u;let f=tE(h,o),g=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=ea(g)?g:new c(g,null,f);if(E._root=E,!u)return new c(void 0,E,f);let m=typeof u=="string"&&Mb(u)?t(u,f,!1,null).children:Amt(u)?[u]:Array.isArray(u)?u:void 0,I=new c(m,E,f);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,B=l?typeof l=="string"?Mb(l)?new c([t(l,f,!1,null)],E,f):(y=`${l} ${y}`,E):ea(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(y):I}return Object.assign(A,Tq,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function Amt(t){return!!t.name||t.type===$o.Root||t.type===$o.Text||t.type===$o.Comment}var umt=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",N;(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"})(N||(N={}));var Os={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function ok(t){return t>=55296&&t<=57343}function jCe(t){return t>=56320&&t<=57343}function KCe(t,e){return(t-55296)*1024+9216+e}function ak(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function ck(t){return t>=64976&&t<=65007||umt.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(`
`)}`}},P_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var ap=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function ORe(t){if(t instanceof AggregateError){ed("Multiple errors returned");for(let e of t.errors)Yi(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&$(e.stack)}else t instanceof ap?(ed(String(t)),t.stack&&$(t.stack)):(ed(String(t)),t instanceof Error&&t.stack&&$(t.stack))}async function HRe(t,e,r){if(!t.doValidateWrappers())return;let n=new b2(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await PRe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await gT("All Gradle Wrapper jars are valid",async()=>{O(`Loaded previously validated checksums from cache: ${i.join(", ")}`),$(o.toDisplayString())});else throw $(o.toDisplayString()),new ap(`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 mo from"fs";import cp from"path";function GRe(t,e,r){let n=cp.resolve(e,h2);mo.mkdirSync(n,{recursive:!0}),e_t(e),t_t(t),Ga()&&r_t(e),r&&Cn("GRADLE_ENCRYPTION_KEY",r)}function e_t(t){let e=cp.resolve(t,"init.d");mo.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=n_t("init-scripts",n),i=cp.resolve(e,n);mo.writeFileSync(i,s)}}function t_t(t){let e=s_t();if(e==null)return;let r=cp.resolve(t,".m2"),n=cp.resolve(r,"toolchains.xml");if(!mo.existsSync(n))mo.mkdirSync(r,{recursive:!0}),mo.writeFileSync(n,e),$(`Wrote default JDK locations to ${n}`);else{let s=mo.readFileSync(n,"utf8"),i=i_t(s,e);mo.writeFileSync(n,i),$(`Merged default JDK locations into ${n}`)}}function r_t(t){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=cp.resolve(t,"gradle.properties");if(mo.existsSync(r)){$(`Merged --info and --stacktrace into existing ${r} file`);let n=mo.readFileSync(r,"utf-8");mo.writeFileSync(r,`${e}
${n}`)}else $(`Created a new ${r} with --info and --stacktrace`),mo.writeFileSync(r,e)}function n_t(...t){let e=import.meta.dirname,r=cp.resolve(e,"..","..","..","sources","src","resources",...t);return mo.readFileSync(r,"utf8")}function s_t(){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,73 @@ ${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 i_t(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var $z="GRADLE_BUILD_ACTION_SETUP_COMPLETED",o_t="GRADLE_USER_HOME",a_t="DEVELOCITY_CACHE_TOKEN";async function qRe(t,e,r){let n=await YRe(),s=await A_t();if(process.env[$z])return $("Gradle setup only performed on first gradle/actions step in workflow."),!1;Cn($z,!0),Uc($z,!0),Uc(o_t,s),GRe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await T0e(e);return Uc(a_t,o??""),await(await lEe(t)).restore(s,c_t(t,i,o)),await HRe(r,Vu(),s),S0e(e),!0}function c_t(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function A_t(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Vu();return Zz.resolve(r,t)}let e=Zz.resolve(await YRe(),".gradle");if(Xz.existsSync(e))return $(`Gradle User Home already exists at ${e}`),Cn("GRADLE_USER_HOME",e),e;if(O_.platform()==="win32"&&e.startsWith("C:\\")&&Xz.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return $(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Cn("GRADLE_USER_HOME",r),r}return Cn("GRADLE_USER_HOME",e),e}async function YRe(){let t=await Fy("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()."),O_.homedir();let n=r[1];return O(`Determined user.home from java -version output: '${n}'`),n}var DDe=ge(oDe(),1),sj=ge(Xy(),1);import*as hC from"fs";import*as bDe from"os";import*as hh from"path";import*as rj from"crypto";import*as up from"fs";var b_t=ge(Xy(),1);import*as gw from"path";var q_=ge(Xy(),1);import*as cDe from"stream";import*as ADe from"util";import{ok as w_t}from"assert";var aDe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},H_=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return aDe(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 aDe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Ap=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())})},G_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},S_t=process.platform==="win32",U1r=process.platform==="darwin",N_t="actions/tool-cache";function uDe(t,e,r,n){return Ap(this,void 0,void 0,function*(){e=e||gw.join(dDe(),rj.randomUUID()),yield gf(gw.dirname(e)),O(`Downloading ${t}`),O(`Destination ${e}`);let s=3,i=tj("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=tj("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new H_(s,i,o).execute(()=>Ap(this,void 0,void 0,function*(){return yield T_t(t,e||"",r,n)}),c=>!(c instanceof G_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function T_t(t,e,r,n){return Ap(this,void 0,void 0,function*(){if(up.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Pr(N_t,[],{allowRetries:!1});r&&(O("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new G_(i.message.statusCode);throw O(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=ADe.promisify(cDe.pipeline),c=tj("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,up.createWriteStream(e)),O("download complete"),A=!0,e}finally{if(!A){O("download failed");try{yield fAe(e)}catch(u){O(`Failed to delete '${e}'. ${u.message}`)}}}})}function lDe(t,e){return Ap(this,void 0,void 0,function*(){if(!t)throw new Error("parameter Line truncated
`," Line feed \\n"]]),YDe=new Map([...Oj,["\\"," Backslash \\"],["/"," Forward slash /"]]);function VDe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of YDe)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(YDe.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 Hj(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of Oj)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(Oj.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 jDe=ge(zDe(),1);function YA(){return`@actions/artifact-${jDe.version}`}var mC=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"}},Cl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},Il=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"}},yl=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"}};yl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var dp=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"}};dp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var hp=class extends Error{};hp.prototype.name="InvalidTokenError";function tFt(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 rFt(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 tFt(e)}catch{return atob(e)}}function KDe(t,e){if(typeof t!="string")throw new hp("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 hp(`Invalid token specified: missing part #${r+1}`);let s;try{s=rFt(n)}catch(i){throw new hp(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new hp(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var z_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function VA(){let t=W_(),e=KDe(t);if(!e.scp)throw z_;let r=e.scp.split(" ");if(r.length===0)throw z_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw z_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return O(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),O(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw z_}function $De(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(vo(r),vo(encodeURIComponent(r)))}catch(e){O(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function XDe(t){if(typeof t!="object"||t===null){O("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&$De(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&$De(t.signed_url)}var j_=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())})},Gj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=W_();this.baseUrl=vDe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Pr(e,[new wu(i)])}request(e,r,n,s){return j_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;O(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>j_(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 j_(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(),O(`[Response] - ${a.message.statusCode}`),O(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(XDe(A),O(`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(dp.isUsageErrorMessage(A.msg))throw new dp;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&O(`Raw Body: ${s}`),a instanceof dp)throw a;if(yl.isNetworkErrorCode(a?.code))throw new yl(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?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return j_(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 WA(t){let e=new Gj(YA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new J_(e)}import*as EC from"fs";import{normalize as ZDe,resolve as e2e}from"path";function t2e(t){if(!EC.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&&ze("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: ${d4e(u)}`);try{$(`Starting download of artifact to: ${r}`);let l=yield h4e(u,r,e?.skipDecompress);$("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,O(`Computed digest: ${l.sha256Digest}`),O(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function p4e(){return dI(this,arguments,void 0,function*(t=_De()){return(yield PWt(t))?O(`Artifact destination folder already exists: ${t}`):(O(`Artifact destination folder does not exist, creating: ${t}`),yield a4e.mkdir(t,{recursive:!0})),t})}var HWt=5,GWt=[400,401,403,404,422];function hI(t,e=HWt,r=GWt){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 O(`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 m4e="6.0.0";function Gp(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})})}Gp.VERSION=m4e;var I4e=ge(E4e(),1);var rL=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 qWt="0.0.0-development";async function C4e(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 YWt(t,e,r,n){let s=new I4e.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(VWt.bind(null,t,e,r),n)}async function VWt(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 rL(s.data.errors[0].message,500,{request:n,response:s});return C4e(t,e,i,n)}return s}function qp(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",C4e.bind(null,r,t)),t.hook.wrap("request",YWt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}qp.VERSION=qWt;var y4e=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 nL(t,e,r,n,s){return y4e(this,void 0,void 0,function*(){var i;let[o,a]=hI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},u=yield qa(s,c,qp,Gp).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 Cl(`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 Il(`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],O(`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 B4e(t){return y4e(this,void 0,void 0,function*(){var e;let r=WA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=VA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:pn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new Il(`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],O(`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?Eo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var b4e=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 Q4e(t,e,r,n,s){return b4e(this,void 0,void 0,function*(){var i;let[o,a]=hI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},A=qa(s,c,qp,Gp),u=yield nL(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 Cl(`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 w4e(t){return b4e(this,void 0,void 0,function*(){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:pn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new Il(`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],O(`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 S4e=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())})},sL=LDe(),iL=100,WWt=Math.ceil(sL/iL);function N4e(t,e,r,n){return S4e(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]=hI(Ef),d={log:void 0,userAgent:YA(),previews:void 0,retry:u,request:l},h=qa(a,d,qp,Gp),f=1,{data:g}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:iL,page:f}),E=Math.ceil(g.total_count/iL),m=g.total_count;m>sL&&(ze(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${sL}. Results will be incomplete as only the first ${sL} artifacts will be returned`),E=WWt);for(let I of g.artifacts)A.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(f++,f;f<=E;f++){O(`Fetching page ${f} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:iL,page:f});for(let y of I.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=x4e(A)),$(`Found ${A.length} artifact(s)`),{artifacts:A}})}function T4e(){return S4e(this,arguments,void 0,function*(t=!1){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),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?Eo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=x4e(o)),$(`Found ${o.length} artifact(s)`),{artifacts:o}})}function x4e(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 L1=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())})},JWt=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},Yp=class{uploadArtifact(e,r,n,s){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;return S8e(e,r,n,s)}catch(i){throw ze(`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 L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=JWt(r,["findBy"]);return f4e(e,n,s,i,o)}return g4e(e,r)}catch(n){throw ze(`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 L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return N4e(r,n,s,i,e?.latest)}return T4e(e?.latest)}catch(r){throw ze(`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 L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return nL(e,n,s,i,o)}return B4e(e)}catch(n){throw ze(`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 L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return Q4e(e,i,n,s,o)}return w4e(e)}catch(n){throw ze(`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 _2r=new Yp;import*as oL from"path";import OZ from"fs";var D4e="dependency-graph_";async function k4e(t){let e=t.getDependencyGraphOption();if(e==="disabled"){Cn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){Xs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await jWt(t);return}$("Enabling dependency graph generation"),Cn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),Xs("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),Xs("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),Xs("GITHUB_DEPENDENCY_GRAPH_JOB_ID",oi.runId.toString()),Xs("GITHUB_DEPENDENCY_GRAPH_REF",oi.ref),Xs("GITHUB_DEPENDENCY_GRAPH_SHA",sJt()),Xs("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Vu()),Xs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),Xs("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),Xs("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),Xs("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),Xs("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),Xs("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),Xs("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),Xs("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function Xs(t,e){process.env[t]||e!==void 0&&Cn(t,e)}async function v4e(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await R4e(t,!1);return;case"generate-submit-and-upload":await R4e(t,!0);return;case"generate-and-upload":await KWt(t)}}catch(r){F4e(t,e,r)}}async function jWt(t){if(qZ()){$("Dependency graph not supported in the ACT environment.");return}try{await _4e(await $Wt(t))}catch(e){F4e(t,"download-and-submit",e)}}async function R4e(t,e){if(qZ()){$("Dependency graph not supported in the ACT environment.");return}let r=await HZ();try{await _4e(r)}catch(n){try{await PZ(r,t)}catch(s){$(String(s))}throw n}e&&await PZ(r,t)}async function KWt(t){if(qZ()){$("Dependency graph not supported in the ACT environment.");return}await PZ(await HZ(),t)}async function $Wt(t){let e=oi.payload.workflow_run?{token:f2(),workflowRunId:oi.payload.workflow_run.id,repositoryName:oi.repo.repo,repositoryOwner:oi.repo.owner}:void 0,r=new Yp,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(D4e)),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 HZ()}async function HZ(){let r=(await(await tq(`${eJt()}/**/*.json`)).glob()).filter(n=>!tJt(n));return r.forEach(rJt),$(`Found dependency graph files: ${r.join(", ")}`),r}async function PZ(t,e){if(t.length===0){$("No dependency graph files found to upload.");return}let r=Vu(),n=new Yp;for(let s of t){let i=GZ(s);$(`Uploading dependency graph file: ${i}`);let o=`${D4e}${oL.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function _4e(t){if(t.length===0){$("No dependency graph files found to submit.");return}for(let e of t)try{await ZWt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=XWt(e,r)),r}}function XWt(t,e){let n=`Dependency submission failed for ${GZ(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 ZWt(t){let e=nJt(),r=OZ.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=oi.repo.owner,n.repo=oi.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=GZ(t);wAe(`Submitted ${i}: ${s.data.message}`)}function eJt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function tJt(t){let e=`${t}.processed`;return OZ.existsSync(e)}function rJt(t){let e=`${t}.processed`;OZ.writeFileSync(e,"")}function F4e(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new ap(r);ze(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function nJt(){return qa(f2())}function GZ(t){let e=Vu();return oL.relative(e,t)}function sJt(){let t=oi;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 qZ(){return process.env.ACT!==void 0}function YZ(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(oJt(o[1],o[6],o[0]));while(o!==null);return i}function oJt(){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 aJt(t=process.platform){return t==="win32"?50:0}async function M4e(t=process.platform){let e=aJt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function cJt(){try{w0e("gradle/actions/dependency-submission"),await qRe(new $0,new nc,new d2);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new yb;if(await k4e(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new l2,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
-Dorg.gradle.configureondemand=false
-Dorg.gradle.dependency.verification=off
-Dorg.gradle.unsafe.isolated-projects=false
-Dorg.gradle.isolated-projects=false
${n}
${s}
`,o=Lxe(i);await yat(r.getGradleVersion(),r.getBuildRootDirectory(),o),await WFt(e),mi("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),Ust()}catch(t){RIt(t)}process.exit()}xyn();export{xyn as run};
`,o=YZ(i);await kDe(r.getGradleVersion(),r.getBuildRootDirectory(),o),await v4e(e),Cn("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),B0e()}catch(t){ORe(t)}await M4e()}cJt();export{cJt 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 +415,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": ";u3BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,IAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+209 -336
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 nme=Object.create;var WS=Object.defineProperty;var ime=Object.getOwnPropertyDescriptor;var ome=Object.getOwnPropertyNames;var ame=Object.getPrototypeOf,Ame=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)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Ci=(t,e)=>{for(var r in e)WS(t,r,{get:e[r],enumerable:!0})},cme=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ome(e))!Ame.call(t,n)&&n!==r&&WS(t,n,{get:()=>e[n],enumerable:!(s=ime(e,n))||s.enumerable});return t};var Ie=(t,e,r)=>(r=t!=null?nme(ame(t)):{},cme(e||!t||!t.__esModule?WS(r,"default",{value:t,enumerable:!0}):r,t));var V5=E(Rd=>{"use strict";var Tat=w("net"),fme=w("tls"),ZS=w("http"),G5=w("https"),pme=w("events"),xat=w("assert"),mme=w("util");Rd.httpOverHttp=Eme;Rd.httpsOverHttp=Cme;Rd.httpOverHttps=Ime;Rd.httpsOverHttps=Bme;function Eme(t){var e=new pa(t);return e.request=ZS.request,e}function Cme(t){var e=new pa(t);return e.request=ZS.request,e.createSocket=Y5,e.defaultPort=443,e}function Ime(t){var e=new pa(t);return e.request=G5.request,e}function Bme(t){var e=new pa(t);return e.request=G5.request,e.createSocket=Y5,e.defaultPort=443,e}function pa(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||ZS.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=q5(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)})}mme.inherits(pa,pme.EventEmitter);pa.prototype.addRequest=function(e,r,s,n){var i=this,o=$S({request:e},i.options,q5(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)}})};pa.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=$S({},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")),SA("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,g){process.nextTick(function(){c(l,d,g)})}function c(l,d,g){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){SA("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(g.length>0){SA("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 SA("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(l){o.removeAllListeners(),SA(`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)}};pa.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 Y5(t,e){var r=this;pa.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=$S({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=fme.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function q5(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function $S(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 SA;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?SA=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)}:SA=function(){};Rd.debug=SA});var eT=E((Dat,J5)=>{J5.exports=V5()});var It=E((kat,W5)=>{W5.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((Fat,EH)=>{"use strict";var z5=Symbol.for("undici.error.UND_ERR"),Bt=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[z5]===!0}[z5]=!0},K5=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),tT=class extends Bt{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[K5]===!0}[K5]=!0},j5=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),rT=class extends Bt{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[j5]===!0}[j5]=!0},X5=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),sT=class extends Bt{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[X5]===!0}[X5]=!0},Z5=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),nT=class extends Bt{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[Z5]===!0}[Z5]=!0},$5=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),iT=class extends Bt{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 vEe(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(BEe.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function PEe(){return"allowed"}function OEe(){return"success"}function _Ee(){return"success"}function HEe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function GEe(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&&jT(t.origin)&&!jT(rp(t))&&(e=null);break;case"same-origin":XC(t,rp(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function _d(t,e){return t}function YEe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:_d(t.domainLookupStartTime,r),domainLookupEndTime:_d(t.domainLookupEndTime,r),connectionStartTime:_d(t.connectionStartTime,r),connectionEndTime:_d(t.connectionEndTime,r),secureConnectionStartTime:_d(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function qEe(t){return _d(NEe.now(),t)}function VEe(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 k9(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function JEe(t){return{referrerPolicy:t.referrerPolicy}}function WEe(t){let e=t.referrerPolicy;lu(e);let r=null;if(t.referrer==="client"){let a=N9();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=KT(r),n=KT(r,!0);s.toString().length>4096&&(s=n);let i=XC(t,s),o=tp(s)&&!tp(t.url);switch(e){case"origin":return n??KT(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=rp(t);return XC(s,a)?s:tp(s)&&!tp(a)?"no-referrer":n}default:return o?"no-referrer":n}}function KT(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 tp(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 zEe(t,e){if(jC===void 0)return!0;let r=F9(e);if(r==="no metadata"||r.length===0)return!0;let s=jEe(r),n=XEe(r,s);for(let i of n){let o=i.algo,a=i.hash,A=jC.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)),ZEe(A,a))return!0}return!1}var KEe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function F9(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=KEe.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();T9.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function jEe(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 XEe(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 ZEe(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 $Ee(t){}function XC(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function eCe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function tCe(t){return t.controller.state==="aborted"}function rCe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function sCe(t){return xEe[t.toLowerCase()]??t}function nCe(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 iCe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function M9(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function UCe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function LCe(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 vCe(t,e){$C(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&&eI(t,FCe,i)||i.position===t.length-4&&eI(t,MCe,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=PCe(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 g;c!==null?(u??="text/plain",UCe(u)||(u=""),g=new DCe([d],c,{type:u})):g=NCe(Buffer.from(d)),$C(J9(A)),$C(typeof g=="string"&&J9(g)||TCe(g)),n.push(xCe(A,g,c))}}function PCe(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=Gd(a=>a!==10&&a!==13&&a!==58,t,e);if(o=sx(o,!0,!0,a=>a===9||a===32),!SCe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Gd(a=>a===32||a===9,t,e),wCe(o)){case"content-disposition":{if(r=s=null,!eI(t,kCe,e)||(e.position+=17,r=K9(t,e),r===null))return"failure";if(eI(t,z9,e)){let a=e.position+z9.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=K9(t,e),s===null))return"failure"}break}case"content-type":{let a=Gd(A=>A!==10&&A!==13,t,e);a=sx(a,!1,!0,A=>A===9||A===32),n=W9(a);break}case"content-transfer-encoding":{let a=Gd(A=>A!==10&&A!==13,t,e);a=sx(a,!1,!0,A=>A===9||A===32),i=W9(a);break}default:Gd(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function K9(t,e){$C(t[e.position-1]===34);let r=Gd(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 Gd(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function sx(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 eI(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}j9.exports={multipartFormDataParser:vCe,validateBoundary:LCe}});var Vd=E((nAt,aG)=>{"use strict";var ip=ke(),{ReadableStreamFrom:OCe,isBlobLike:Z9,isReadableStreamLike:_Ce,readableStreamClose:HCe,createDeferredPromise:GCe,fullyReadBody:YCe,extractMimeType:qCe,utf8DecodeBytes:tG}=Js(),{FormData:$9}=np(),{kState:qd}=TA(),{webidl:VCe}=kr(),{Blob:JCe}=w("node:buffer"),nx=w("node:assert"),{isErrored:rG,isDisturbed:WCe}=w("node:stream"),{isArrayBuffer:zCe}=w("node:util/types"),{serializeAMimeType:KCe}=gs(),{multipartFormDataParser:jCe}=X9(),ix;try{let t=w("node:crypto");ix=e=>t.randomInt(0,e)}catch{ix=t=>Math.floor(Math.random(t))}var tI=new TextEncoder;function XCe(){}var sG=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,nG;sG&&(nG=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!WCe(e)&&!rG(e)&&e.cancel("Response object has been garbage collected").catch(XCe)}));function iG(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Z9(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?tI.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>HCe(A))},start(){},type:"bytes"}),nx(_Ce(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(zCe(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(ip.isFormDataLike(t)){let A=`----formdata-undici-0${`${ix(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=[],g=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=tI.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=tI.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,g),typeof m.size=="number"?i+=C.byteLength+m.size+g.byteLength:f=!0}let p=tI.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(Z9(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(ip.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:OCe(t)}if((typeof n=="string"||ip.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(!rG(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 ZCe(t,e=!1){return t instanceof ReadableStream&&(nx(!ip.isDisturbed(t),"The body has already been consumed."),nx(!t.locked,"The stream is locked.")),iG(t,e)}function $Ce(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function eIe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function tIe(t){return{blob(){return Yd(this,r=>{let s=eG(this);return s===null?s="":s&&(s=KCe(s)),new JCe([r],{type:s})},t)},arrayBuffer(){return Yd(this,r=>new Uint8Array(r).buffer,t)},text(){return Yd(this,tG,t)},json(){return Yd(this,sIe,t)},formData(){return Yd(this,r=>{let s=eG(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=jCe(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new $9;return i[qd]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new $9;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 Yd(this,r=>new Uint8Array(r),t)}}}function rIe(t){Object.assign(t.prototype,tIe(t))}async function Yd(t,e,r){if(VCe.brandCheck(t,r),oG(t))throw new TypeError("Body is unusable: Body has already been read");eIe(t[qd]);let s=GCe(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[qd].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await YCe(t[qd].body,i,n),s.promise)}function oG(t){let e=t[qd].body;return e!=null&&(e.stream.locked||ip.isDisturbed(e.stream))}function sIe(t){return JSON.parse(tG(t))}function eG(t){let e=t[qd].headersList,r=qCe(e);return r==="failure"?null:r}aG.exports={extractBody:iG,safelyExtractBody:ZCe,cloneBody:$Ce,mixinBody:rIe,streamRegistry:nG,hasFinalizationRegistry:sG,bodyUnusable:oG}});var QG=E((iAt,yG)=>{"use strict";var oe=w("node:assert"),ce=ke(),{channels:AG}=kd(),ox=HT(),{RequestContentLengthMismatchError:du,ResponseContentLengthMismatchError:cG,RequestAbortedError:mG,InvalidArgumentError:nIe,HeadersTimeoutError:iIe,HeadersOverflowError:oIe,SocketError:Jd,InformationalError:Wd,BodyTimeoutError:aIe,HTTPParserError:AIe,ResponseExceededMaxSizeError:cIe}=qe(),{kUrl:EG,kReset:fs,kClient:iI,kParser:ht,kBlocking:Ap,kRunning:tr,kPending:CG,kSize:uG,kWriting:xA,kQueue:Ii,kNoRef:op,kKeepAliveDefaultTimeout:uIe,kHostHeader:lIe,kPendingIdx:dIe,kRunningIdx:xn,kError:jr,kPipelining:oI,kSocket:gu,kKeepAliveTimeoutValue:AI,kMaxHeadersSize:ax,kKeepAliveMaxTimeout:hIe,kKeepAliveTimeoutThreshold:gIe,kHeadersTimeout:fIe,kBodyTimeout:pIe,kStrictContentLength:ux,kMaxRequests:lG,kCounter:mIe,kMaxResponseSize:EIe,kOnError:dG,kResume:ya,kHTTPContext:IG}=It(),Ws=n9(),hG=Buffer.alloc(0),rI=Buffer[Symbol.species],sI=ce.addListener,CIe=ce.removeAllListeners,fu=Symbol("kIdleSocketValidation"),hu=Symbol("kIdleSocketValidationTimeout"),gx=Symbol("kSocketUsed"),Ax;async function IIe(){let t=process.env.JEST_WORKER_ID?qT():void 0,e;try{e=await WebAssembly.compile(a9())}catch{e=await WebAssembly.compile(t||qT())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{oe(Rt.ptr===r);let i=s-oo+io.byteOffset;return Rt.onStatus(new rI(io.buffer,i,n))||0},wasm_on_message_begin:r=>(oe(Rt.ptr===r),Rt.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{oe(Rt.ptr===r);let i=s-oo+io.byteOffset;return Rt.onHeaderField(new rI(io.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{oe(Rt.ptr===r);let i=s-oo+io.byteOffset;return Rt.onHeaderValue(new rI(io.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(oe(Rt.ptr===r),Rt.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{oe(Rt.ptr===r);let i=s-oo+io.byteOffset;return Rt.onBody(new rI(io.buffer,i,n))||0},wasm_on_message_complete:r=>(oe(Rt.ptr===r),Rt.onMessageComplete()||0)}})}var cx=null,lx=IIe();lx.catch();var Rt=null,io=null,nI=0,oo=null,BIe=0,ap=1,zd=2|ap,aI=4|ap,dx=8|BIe,hx=class{constructor(e,r,{exports:s}){oe(Number.isFinite(e[ax])&&e[ax]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Ws.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,t Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[lIe],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[oI]&&!g[fs]?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 AG.sendHeaders.hasSubscribers&&AG.sendHeaders.publish({request:e,headers:p,socket:g}),!A||d===0?fG(f,null,t,e,g,u,p,l):ce.isBuffer(A)?fG(f,A,t,e,g,u,p,l):ce.isBlobLike(A)?typeof A.stream=="function"?pG(f,A.stream(),t,e,g,u,p,l):TIe(f,A,t,e,g,u,p,l):ce.isStream(A)?SIe(f,A,t,e,g,u,p,l):ce.isIterable(A)?pG(f,A,t,e,g,u,p,l):oe(!1),!0}function SIe(t,e,r,s,n,i,o,a){oe(i!==0||r[tr]===0,"stream body cannot be pipelined");let A=!1,c=new cI({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",g)}),!A){let f=new mG;queueMicrotask(()=>g(f))}},g=function(f){if(!A){if(A=!0,oe(n.destroyed||n[xA]&&r[tr]<=1),n.off("drain",l).off("error",g),e.removeListener("data",u).removeListener("end",g).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",g).on("error",g).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",g),e.errorEmitted??e.errored?setImmediate(()=>g(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>g(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function fG(t,e,r,s,n,i,o,a){try{e?ce.isBuffer(e)&&(oe(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"):(Be(g===null,"no body must not have content length"),d.write(`${E}\r
`,"latin1")),e.onRequestSent()):ve.isBuffer(r)?(Be(g===r.byteLength,"buffer body must have content length"),d.cork(),d.write(`${E}content-length: ${g}\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[fs]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"),d.write(r),d.uncork(),e.onBodySent(r),e.onRequestSent(),u||(d[Nn]=!0)):ve.isBlobLike(r)?typeof r.stream=="function"?Pk({body:r.stream(),client:t,request:e,socket:d,contentLength:g,header:E,expectsPayload:u}):lIe({body:r,client:t,request:e,socket:d,contentLength:g,header:E,expectsPayload:u}):ve.isStream(r)?uIe({body:r,client:t,request:e,socket:d,contentLength:g,header:E,expectsPayload:u}):ve.isIterable(r)?Pk({body:r,client:t,request:e,socket:d,contentLength:g,header:E,expectsPayload:u}):Be(!1),!0}function Cht(t,e,r){let{body:A,method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:c,headers:u}=r,l;if(typeof u=="string"?l=_q[Zdt](u.trim()):l=u,o)return Rn(t,r,new Error("Upgrade not supported for H2")),!1;try{r.onConnect(p=>{r.aborted||r.completed||Rn(t,r,p||new Vq)})}catch(p){Rn(t,r,p)}if(r.aborted)return!1;let g,d=t[vk];if(l[eht]=i||t[sIe],l[tht]=s,s==="CONNECT")return e.ref(),g=e.request(l,{endStream:!1,signal:c}),g.id&&!g.pending?(r.onUpgrade(null,null,g),++d.openStreams):g.once("ready",()=>{r.onUpgrade(null,null,g),++d.openStreams}),g.once("close",()=>{d.openStreams-=1,d.openStreams===0&&e.unref()}),!0;l[rht]=n,l[Aht]="https";let E=s==="PUT"||s==="POST"||s==="PATCH";A&&typeof A.read=="function"&&A.read(0);let C=ve.bodyLength(A);if(C==null&&(C=r.contentLength),(C===0||!E)&&(C=null),cIe(s)&&C>0&&r.contentLength!=null&&r.contentLength!==C){if(t[Jb])return Rn(t,r,new Kl),!1;process.emitWarning(new Kl)}C!=null&&(Be(A,"no body must not have content length"),l[sht]=`${C}`),e.ref();let Q=s==="GET"||s==="HEAD";return a?(l[nht]="100-continue",g=e.request(l,{endStream:Q,signal:c}),g.once("continue",I)):(g=e.request(l,{endStream:Q,signal:c}),I()),++d.openStreams,g.once("response",p=>{let{[iht]:w,...k}=p;r.onHeaders(Number(w),k,g.resume.bind(g),"")===!1&&g.pause()}),g.once("end",()=>{r.onComplete([])}),g.on("data",p=>{r.onData(p)===!1&&g.pause()}),g.once("close",()=>{d.openStreams-=1,d.openStreams===0&&e.unref()}),g.once("error",function(p){t[Xi]&&!t[Xi].destroyed&&!this.closed&&!this.destroyed&&(d.streams-=1,ve.destroy(g,p))}),g.once("frameError",(p,w)=>{let k=new Cu(`HTTP/2: "frameError" received - type ${p}, code ${w}`);Rn(t,r,k),t[Xi]&&!t[Xi].destroyed&&!this.closed&&!this.destroyed&&(d.streams-=1,ve.destroy(g,k))}),!0;function I(){A?ve.isBuffer(A)?(Be(C===A.byteLength,"buffer body must have content length"),g.cork(),g.write(A),g.uncork(),g.end(),r.onBodySent(A),r.onRequestSent()):ve.isBlobLike(A)?typeof A.stream=="function"?Pk({client:t,request:r,contentLength:C,h2stream:g,expectsPayload:E,body:A.stream(),socket:t[pA],header:""}):lIe({body:A,client:t,request:r,contentLength:C,expectsPayload:E,h2stream:g,header:"",socket:t[pA]}):ve.isStream(A)?uIe({body:A,client:t,request:r,contentLength:C,expectsPayload:E,socket:t[pA],h2stream:g,header:""}):ve.isIterable(A)?Pk({body:A,client:t,request:r,contentLength:C,expectsPayload:E,header:"",h2stream:g,socket:t[pA]}):Be(!1):r.onRequestSent()}}function uIe({h2stream:t,body:e,client:r,request:A,socket:s,contentLength:n,header:i,expectsPayload:o}){if(Be(n!==0||r[lA]===0,"stream body cannot be pipelined"),r[Bu]==="h2"){let C=function(Q){A.onBodySent(Q)},E=Udt(e,t,Q=>{Q?(ve.destroy(e,Q),ve.destroy(t,Q)):A.onRequestSent()});E.on("data",C),E.once("end",()=>{E.removeListener("data",C),ve.destroy(E)});return}let a=!1,c=new Ok({socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i}),u=function(E){if(!a)try{!c.write(E)&&this.pause&&this.pause()}catch(C){ve.destroy(this,C)}},l=function(){a||e.resume&&e.resume()},g=function(){if(a)return;let E=new Vq;queueMicrotask(()=>d(E))},d=function(E){if(!a){if(a=!0,Be(s.destroyed||s[Xl]&&r[lA]<=1),s.off("drain",l).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("error",d).removeListener("close",g),!E)try{c.end()}catch(C){E=C}c.destroy(E),E&&(E.code!=="UND_ERR_INFO"||E.message!=="reset")?ve.destroy(e,E):ve.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",g),e.resume&&e.resume(),s.on("drain",l).on("error",d)}async function lIe({h2stream:t,body:e,client:r,request:A,socket:s,contentLength:n,header:i,expectsPayload:o}){Be(n===e.size,"blob body must have content length");let a=r[Bu]==="h2";try{if(n!=null&&n!==e.size)throw new Kl;let c=Buffer.from(await e.arrayBuffer());a?(t.cork(),t.write(c),t.uncork()):(s.cork(),s.write(`${i}content-length: ${n}\r
`,"latin1"):(oe(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[ya]()}catch(A){t(A)}}async function TIe(t,e,r,s,n,i,o,a){oe(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[fs]=!0),r[ya]()}catch(A){t(A)}}async function pG(t,e,r,s,n,i,o,a){oe(i!==0||r[tr]===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)=>{oe(A===null),n[jr]?g(n[jr]):A=d});n.on("close",c).on("drain",c);let l=new cI({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[jr])throw n[jr];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var cI=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[xA]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[jr])throw r[jr];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[ux])throw new du;process.emitWarning(new du)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[fs]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),s===null&&r.write(`\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),A.onBodySent(e),u||r[QA].timeout&&r[QA].timeoutType===LB&&r[QA].timeout.refresh&&r[QA].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:A,bytesWritten:s,expectsPayload:n,header:i,request:o}=this;if(o.onRequestSent(),e[Xl]=!1,e[Ys])throw e[Ys];if(!e.destroyed){if(s===0?n?e.write(`${i}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[ht].timeout&&r[ht].timeoutType===zd&&r[ht].timeout.refresh&&r[ht].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[xA]=!1,e[jr])throw e[jr];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[ux])throw new du;process.emitWarning(new du)}e[ht].timeout&&e[ht].timeoutType===zd&&e[ht].timeout.refresh&&e[ht].timeout.refresh(),s[ya]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[xA]=!1,e&&(oe(s[tr]<=1,"pipeline should only contain this request"),n(e))}};yG.exports=yIe});var DG=E((oAt,RG)=>{"use strict";var Rn=w("node:assert"),{pipeline:xIe}=w("node:stream"),Ue=ke(),{RequestContentLengthMismatchError:fx,RequestAbortedError:bG,SocketError:cp,InformationalError:px}=qe(),{kUrl:uI,kReset:dI,kClient:Kd,kRunning:hI,kPending:RIe,kQueue:RA,kPendingIdx:mx,kRunningIdx:Bi,kError:Qi,kSocket:mr,kStrictContentLength:DIe,kOnError:Ex,kMaxConcurrentStreams:xG,kHTTP2Session:yi,kResume:DA,kSize:kIe,kHTTPContext:FIe}=It(),Qa=Symbol("open streams"),wG,NG=!1,lI;try{lI=w("node:http2")}catch{lI={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:MIe,HTTP2_HEADER_METHOD:UIe,HTTP2_HEADER_PATH:LIe,HTTP2_HEADER_SCHEME:vIe,HTTP2_HEADER_CONTENT_LENGTH:PIe,HTTP2_HEADER_EXPECT:OIe,HTTP2_HEADER_STATUS:_Ie}}=lI;function HIe(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 GIe(t,e){t[mr]=e,NG||(NG=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=lI.connect(t[uI],{createConnection:()=>e,peerMaxConcurrentStreams:t[xG]});r[Qa]=0,r[Kd]=t,r[mr]=e,Ue.addListener(r,"error",qIe),Ue.addListener(r,"frameError",VIe),Ue.addListener(r,"end",JIe),Ue.addListener(r,"goaway",WIe),Ue.addListener(r,"close",function(){let{[Kd]:n}=this,{[mr]:i}=n,o=this[mr][Qi]||this[Qi]||new cp("closed",Ue.getSocketInfo(i));if(n[yi]=null,n.destroyed){Rn(n[RIe]===0);let a=n[RA].splice(n[Bi]);for(let A=0;A<a.length;A++){let c=a[A];Ue.errorRequest(n,c,o)}}}),r.unref(),t[yi]=r,e[yi]=r,Ue.addListener(e,"error",function(n){Rn(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Qi]=n,this[Kd][Ex](n)}),Ue.addListener(e,"end",function(){Ue.destroy(this,new cp("other side closed",Ue.getSocketInfo(this)))}),Ue.addListener(e,"close",function(){let n=this[Qi]||new cp("closed",Ue.getSocketInfo(this));t[mr]=null,this[yi]!=null&&this[yi].destroy(n),t[mx]=t[Bi],Rn(t[hI]===0),t.emit("disconnect",t[uI],[t],n),t[DA]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return KIe(t,...n)},resume(){YIe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function YIe(t){let e=t[mr];e?.destroyed===!1&&(t[kIe]===0&&t[xG]===0?(e.unref(),t[yi].unref()):(e.ref(),t[yi].ref()))}function qIe(t){Rn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[mr][Qi]=t,this[Kd][Ex](t)}function VIe(t,e,r){if(r===0){let s=new px(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[mr][Qi]=s,this[Kd][Ex](s)}}function JIe(){let t=new cp("other side closed",Ue.getSocketInfo(this[mr]));this.destroy(t),Ue.destroy(this[mr],t)}function WIe(t){let e=this[Qi]||new cp(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ue.getSocketInfo(this)),r=this[Kd];if(r[mr]=null,r[FIe]=null,this[yi]!=null&&(this[yi].destroy(e),this[yi]=null),Ue.destroy(this[mr],e),r[Bi]<r[RA].length){let s=r[RA][r[Bi]];r[RA][r[Bi]++]=null,Ue.errorRequest(r,s,e),r[mx]=r[Bi]}Rn(r[hI]===0),r.emit("disconnect",r[uI],[r],e),r[DA]()}function zIe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function KIe(t,e){let r=t[yi],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Ue.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let S=0;S<c.length;S+=2){let D=c[S+0],F=c[S+1];if(Array.isArray(F))for(let U=0;U<F.length;U++)l[D]?l[D]+=`,${F[U]}`:l[D]=F[U];else l[D]=F}let d,{hostname:g,port:f}=t[uI];l[MIe]=i||`${g}${f?`:${f}`:""}`,l[UIe]=s;let p=S=>{e.aborted||e.completed||(S=S||new bG,Ue.errorRequest(t,e,S),d!=null&&Ue.destroy(d,S),Ue.destroy(u,S),t[RA][t[Bi]++]=null,t[DA]())};try{e.onConnect(p)}catch(S){Ue.errorRequest(t,e,S)}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[Qa],t[RA][t[Bi]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Qa],t[RA][t[Bi]++]=null}),d.once("close",()=>{r[Qa]-=1,r[Qa]===0&&r.unref()}),!0;l[LIe]=n,l[vIe]="https";let I=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Ue.bodyLength(u);if(Ue.isFormDataLike(u)){wG??=Vd().extractBody;let[S,D]=wG(u);l["content-type"]=D,u=S.stream,m=S.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),zIe(s)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[DIe])return Ue.errorRequest(t,e,new fx),!1;process.emitWarning(new fx)}m!=null&&(Rn(u,"no body must not have content length"),l[PIe]=`${m}`),r.ref();let C=s==="GET"||s==="HEAD"||u===null;return a?(l[OIe]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("continue",b)):(d=r Line truncated
`,this[BBe]=A??3e5,this[IBe]=n??3e5,this[yBe]=C??!0,this[QBe]=S,this[yx]=F,this[FA]=null,this[TBe]=P>-1?P:-1,this[RBe]=Je??100,this[Yt]=null,this[bi]=[],this[wa]=0,this[wi]=0,this[hp]=Te=>bx(this,Te),this[xBe]=Te=>YG(this,Te)}get pipelining(){return this[mI]}set pipelining(e){this[mI]=e,this[hp](!0)}get[pp](){return this[bi].length-this[wi]}get[fp](){return this[wi]-this[wa]}get[gp](){return this[bi].length-this[wa]}get[hBe](){return!!this[Yt]&&!this[Xd]&&!this[Yt].destroyed}get[Bx](){return!!(this[Yt]?.busy(null)||this[gp]>=(GG(this)||1)||this[pp]>0)}[dBe](e){qG(this),this.once("connect",e)}[SBe](e,r){let s=e.origin||this[Ao].origin,n=new oBe(s,e,r);return this[bi].push(n),this[mu]||(pu.bodyLength(n.body)==null&&pu.isIterable(n.body)?(this[mu]=1,queueMicrotask(()=>bx(this))):this[hp](!0)),this[mu]&&this[MA]!==2&&this[Bx]&&(this[MA]=2),this[MA]<2}async[wBe](){return new Promise(e=>{this[gp]?this[FA]=e:e(null)})}async[NBe](e){return new Promise(r=>{let s=this[bi].splice(this[wi]);for(let i=0;i<s.length;i++){let o=s[i];pu.errorRequest(this,o,e)}let n=()=>{this[FA]&&(this[FA](),this[FA]=null),r(null)};this[Yt]?(this[Yt].destroy(e,n),this[Yt]=null):queueMicrotask(n),this[hp]()})}},FBe=pI();function YG(t,e){if(t[fp]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ba(t[wi]===t[wa]);let r=t[bi].splice(t[wa]);for(let s=0;s<r.length;s++){let n=r[s];pu.errorRequest(t,n,e)}ba(t[gp]===0)}}async function qG(t){ba(!t[Xd]),ba(!t[Yt]);let{host:e,hostname:r,protocol:s,port:n}=t[Ao];if(r[0]==="["){let i=r.indexOf("]");ba(i!==-1);let o=r.substring(1,i);ba(HG.isIP(o)),r=o}t[Xd]=!0,jd.beforeConnect.hasSubscribers&&jd.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Yt]?.version,servername:t[kA],localAddress:t[dp]},connector:t[lp]});try{let i=await new Promise((o,a)=>{t[lp]({host:e,hostname:r,protocol:s,port:n,servername:t[kA],localAddress:t[dp]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){pu.destroy(i.on("error",OG),new cBe);return}ba(i);try{t[Yt]=i.alpnProtocol==="h2"?await kBe(t,i):await DBe(t,i)}catch(o){throw i.destroy().on("error",OG),o}t[Xd]=!1,i[bBe]=0,i[yx]=t[yx],i[lBe]=t,i[fBe]=null,jd.connected.hasSubscribers&&jd.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Yt]?.version,servername:t[kA],localAddress:t[dp]},connector:t[lp],socket:i}),t.emit("connect",t[Ao],[t])}catch(i){if(t.destroyed)return;if(t[Xd]=!1,jd.connectError.hasSubscribers&&jd.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Yt]?.version,servername:t[kA],localAddress:t[dp]},connector:t[lp],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ba(t[fp]===0);t[pp]>0&&t[bi][t[wi]].servername===t[kA];){let o=t[bi][t[wi]++];pu.errorRequest(t,o,i)}else YG(t,i);t.emit("connectionError",t[Ao],[t],i)}t[hp]()}function _G(t){t[MA]=0,t.emit("drain",t[Ao],[t])}function bx(t,e){t[mu]!==2&&(t[mu]=2,MBe(t,e),t[mu]=0,t[wa]>256&&(t[bi].splice(0,t[wa]),t[wi]-=t[wa],t[wa]=0))}function MBe(t,e){for(;;){if(t.destroyed){ba(t[pp]===0);return}if(t[FA]&&!t[gp]){t[FA](),t[FA]=null;return}if(t[Yt]&&t[Yt].resume(),t[Bx])t[MA]=2;else if(t[MA]===2){e?(t[MA]=1,queueMicrotask(()=>_G(t))):_G(t);continue}if(t[pp]===0||t[fp]>=(GG(t)||1))return;let r=t[bi][t[wi]];if(t[Ao].protocol==="https:"&&t[kA]!==r.servername){if(t[fp]>0)return;t[kA]=r.servername,t[Yt]?.destroy(new ABe("servername changed"),()=>{t[Yt]=null,bx(t)})}if(t[Xd])return;if(!t[Yt]){qG(t);return}if(t[Yt].destroyed||t[Yt].busy(r))return;!r.aborted&&t[Yt].write(r)?t[wi]++:t[bi].splice(t[wi],1)}}VG.exports=Qx});var wx=E((lAt,JG)=>{"use strict";var EI=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)}};JG.exports=class{constructor(){this.head=this.tail=new EI}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new EI),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var zG=E((dAt,WG)=>{var{kFree:UBe,kConnected:LBe,kPending:vBe,kQueued:PBe,kRunning:OBe,kSize:_Be}=It(),Eu=Symbol("pool"),Nx=class{constructor(e){this[Eu]=e}get connected(){return this[Eu][LBe]}get free(){return this[Eu][UBe]}get pending(){return this[Eu][vBe]}get queued(){return this[Eu][PBe]}get running(){return this[Eu][OBe]}get size(){return this[Eu][_Be]}};WG.exports=Nx});var kx=E((hAt,nY)=>{"use strict";var HBe=Ld(),GBe=wx(),{kConnected:Sx,kSize:KG,kRunning:jG,kPending:XG,kQueued:mp,kBusy:YBe,kFree:qBe,kUrl:VBe,kClose:JBe,kDestroy:WBe,kDispatch:zBe}=It(),KBe=zG(),ps=Symbol("clients"),Xr=Symbol("needDrain"),Ep=Symbol("queue"),Tx=Symbol("closed resolve"),xx=Symbol("onDrain"),ZG=Symbol("onConnect"),$G=Symbol("onDisconnect"),eY=Symbol("onConnectionError"),Rx=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())}};lV.exports=k2});var LI=E((HAt,pV)=>{"use strict";var hV=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Bbe}=qe(),ybe=eh();fV()===void 0&&gV(new ybe);function gV(t){if(!t||typeof t.dispatch!="function")throw new Bbe("Argument agent must implement Agent");Object.defineProperty(globalThis,hV,{value:t,writable:!0,enumerable:!1,configurable:!1})}function fV(){return globalThis[hV]}pV.exports={setGlobalDispatcher:gV,getGlobalDispatcher:fV}});var vI=E((YAt,mV)=>{"use strict";mV.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 CV=E((qAt,EV)=>{"use strict";var Qbe=fI();EV.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 Qbe(r,o,n,i);return r(a,A)}}});var BV=E((VAt,IV)=>{"use strict";var bbe=NI();IV.exports=t=>e=>function(s,n){return e(s,new bbe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var QV=E((JAt,yV)=>{"use strict";var wbe=ke(),{InvalidArgumentError:Nbe,RequestAbortedError:Sbe}=qe(),Tbe=vI(),F2=class extends Tbe{#e=1024*1024;#t=null;#s=!1;#r=!1;#i=0;#n=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Nbe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#n=e}onHeaders(e,r,s,n){let o=wbe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Sbe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#s||(e=this.#n??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#s=!0,this.#r?this.#a.onError(this.#n):this.#a.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function xbe({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new F2({maxSize:i},n);return e(s,o)}}yV.exports=xbe});var NV=E((WAt,wV)=>{"use strict";var{isIP:Rbe}=w("node:net"),{lookup:Dbe}=w("node:dns"),kbe=vI(),{InvalidArgumentError:lh,InformationalError:Fbe}=qe(),bV=Math.pow(2,31)-1,M2=class{#e=0;#t=0;#s=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#s.size===this.#t}runLookup(e,r,s){let n=this.#s.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new Fbe("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){Dbe(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===bV?(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===bV?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 U2(this,e,r)}},U2=class extends kbe{#e=null;#t=null;#s=null;#r=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#i=r,this.#r=s,this.#t={...i},this.#e=e,this.#s=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,s)=>{if(r)return this.#r.onError(r);le Line truncated
${i}`;break;case"retry":nW(i)&&(r[n]=i);break;case"id":iW(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&nW(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&iW(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}}};oW.exports={EventSourceStream:bR}});var fW=E((bct,gW)=>{"use strict";var{pipeline:HSe}=w("node:stream"),{fetching:GSe}=Rp(),{makeRequest:YSe}=gh(),{webidl:Ra}=kr(),{EventSourceStream:qSe}=aW(),{parseMIMEType:VSe}=gs(),{createFastMessageEvent:JSe}=Ih(),{isNetworkError:AW}=Tp(),{delay:WSe}=yR(),{kEnumerableProperty:Fu}=ke(),{environmentSettingsObject:cW}=Js(),uW=!1,lW=3e3,qp=0,dW=1,Vp=2,zSe="anonymous",KSe="use-credentials",wh=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=qp;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),Ra.util.markAsUncloneable(this);let s="EventSource constructor";Ra.argumentLengthCheck(arguments,1,s),uW||(uW=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ra.converters.USVString(e,s,"url"),r=Ra.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:lW};let n=cW,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=zSe;r.withCredentials&&(o=KSe,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=cW.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=YSe(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===Vp)return;this.#r=qp;let e={request:this.#i,dispatcher:this.#a},r=s=>{AW(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(AW(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?VSe(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=dW,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new qSe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(JSe(A.type,A.options))}});HSe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=GSe(e)}async#c(){this.#r!==Vp&&(this.#r=qp,this.dispatchEvent(new Event("error")),await WSe(this.#o.reconnectionTime),this.#r===qp&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Ra.brandCheck(this,t),this.#r!==Vp&&(this.#r=Vp,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}},hW={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:qp,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:dW,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Vp,writable:!1}};Object.defineProperties(wh,hW);Object.defineProperties(wh.prototype,hW);Object.defineProperties(wh.prototype,{close:Fu,onerror:Fu,onmessage:Fu,onopen:Fu,readyState:Fu,url:Fu,withCredentials:Fu});Ra.converters.EventSourceInitDict=Ra.dictionaryConverter([{key:"withCredentials",converter:Ra.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ra.converters.any}]);gW.exports={EventSource:wh,defaultReconnectionTime:lW}});var wB=E((wct,fe)=>{"use strict";var jSe=Zd(),pW=Kf(),XSe=$d(),ZSe=hY(),$Se=eh(),eTe=Vx(),tTe=vY(),rTe=qY(),mW=qe(),bB=ke(),{InvalidArgumentError:QB}=mW,Nh=Rq(),sTe=Xf(),nTe=N2(),iTe=dV(),oTe=x2(),aTe=h2(),ATe=NI(),{getGlobalDispatcher:EW,setGlobalDispatcher:cTe}=LI(),uTe=vI(),lTe=fI(),dTe=pI();Object.assign(pW.prototype,Nh);fe.exports.Dispatcher=pW;fe.exports.Client=jSe;fe.exports.Pool=XSe;fe.exports.BalancedPool=ZSe;fe.exports.Agent=$Se;fe.exports.ProxyAgent=eTe;fe.exports.EnvHttpProxyAgent=tTe;fe.exports.RetryAgent=rTe;fe.exports.RetryHandle Line truncated
%s`,D,D,C,s);var F=C.type==="*"?pD:C.type==="?"?fD:"\\"+C.type;n=!0,s=s.slice(0,C.reStart)+F+"\\("+D}f(),i&&(s+="\\\\");var U=!1;switch(s.charAt(0)){case"[":case".":case"(":U=!0}for(var P=a.length-1;P>-1;P--){var H=a[P],Re=s.slice(0,H.reStart),Je=s.slice(H.reStart,H.reEnd-8),pe=s.slice(H.reEnd-8,H.reEnd),De=s.slice(H.reEnd);pe+=De;var Te=Re.split("(").length-1,$t=De;for(p=0;p<Te;p++)$t=$t.replace(/\)[+*?]?/,"");De=$t;var er="";De===""&&e!==VB&&(er="$");var ga=Re+Je+De+er+pe;s=ga}if(s!==""&&n&&(s="(?=.)"+s),U&&(s=d+s),e===VB)return[s,n];if(!n)return tRe(t);var fa=r.nocase?"i":"";try{var VS=new RegExp("^"+s+"$",fa)}catch{return new RegExp("$.")}return VS._glob=t,VS._src=s,VS}sn.makeRe=function(t,e){return new nr(t,e||{}).makeRe()};nr.prototype.makeRe=eRe;function eRe(){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?pD:e.dot?J2e:W2e,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===Gu?r:typeof o=="string"?rRe(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}sn.match=function(t,e,r){r=r||{};var s=new nr(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};nr.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;sm.sep!=="/"&&(e=e.split(sm.sep).join("/")),e=e.split(AK),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};nr.prototype.matchOne=function(t,e,r){return e.indexOf(Gu)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};nr.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===Gu){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===Gu){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 g=t.length-u.length;if(this._matchOne(t,u,r,g,0))d=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(g--,!this._matchOne(t,u,r,g,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],S=0;S<c.length;S++){var D=c[S];D===Gu?(b.push(C),m=[[],0],I.push(m)):(m[0].push(D),C++)}for(var F=I.length-1,U=t.length-d,P=0;P<I.length;P++)I[P][1]=U-(b[F--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,s,0,r,0,!!d)};nr.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 g=this._matchGlobStarBodySections(t,e,r+u.length,s+1,n,i+1,o);if(g!==!1)return g}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return n||null};nr.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===Gu)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 tRe(t){return t.replace(/\\(.)/g,"$1")}function rRe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Mh=E((Slt,fK)=>{"use strict";var uRe="2.0.0",lRe=Number.MAX_SAFE_INTEGER||9007199254740991,dRe=16,hRe=250,gRe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];fK.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:dRe,MAX_SAFE_BUILD_LENGTH:hRe,MAX_SAFE_INTEGER:lRe,RELEASE_TYPES:gRe,SEMVER_SPEC_VERSION:uRe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var am=E((Tlt,pK)=>{"use strict";var fRe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};pK.exports=fRe});var Uh=E((fo,mK)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:ED,MAX_SAFE_BUILD_LENGTH:pRe,MAX_LENGTH:mRe}=Mh(),ERe=am();fo=mK.exports={};var CRe=fo.re=[],IRe=fo.safeRe=[],z=fo.src=[],BRe=fo.safeSrc=[],K=fo.t={},yRe=0,CD="[a-zA-Z0-9-]",QRe=[["\\s",1],["\\d",mRe],[CD,pRe]],bRe=t=>{for(let[e,r]of QRe)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+"+Dy.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=lMe()+e+" "+t[0]}function lMe(){return Cr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function dMe(...t){return process.stderr.write(Ry.formatWithOptions(Cr.inspectOpts,...t)+`
`)}function hMe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function gMe(){return process.env.DEBUG}function fMe(t){t.inspectOpts={};let e=Object.keys(Cr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Cr.inspectOpts[e[r]]}Dy.exports=Ak()(Cr);var{formatters:JX}=Dy.exports;JX.o=function(t){return this.inspectOpts.colors=this.useColors,Ry.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};JX.O=function(t){return this.inspectOpts.colors=this.useColors,Ry.inspect(t,this.inspectOpts)}});var ky=E((ngt,lk)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?lk.exports=_X():lk.exports=WX()});var jX=E(bs=>{"use strict";var pMe=bs&&bs.__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]})),mMe=bs&&bs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zX=bs&&bs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pMe(e,t,r);return mMe(e,t),e};Object.defineProperty(bs,"__esModule",{value:!0});bs.req=bs.json=bs.toBuffer=void 0;var EMe=zX(w("http")),CMe=zX(w("https"));async function KX(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}bs.toBuffer=KX;async function IMe(t){let r=(await KX(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}bs.json=IMe;function BMe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?CMe:EMe).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}bs.req=BMe});var hk=E(an=>{"use strict";var ZX=an&&an.__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]})),yMe=an&&an.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$X=an&&an.__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)&&ZX(e,t,r);return yMe(e,t),e},QMe=an&&an.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ZX(e,t,r)};Object.defineProperty(an,"__esModule",{value:!0});an.Agent=void 0;var bMe=$X(w("net")),XX=$X(w("http")),wMe=w("https");QMe(jX(),an);var Eo=Symbol("AgentBaseInternalState"),dk=class extends XX.Agent{constructor(e){super(e),this[Eo]={}}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 bMe.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)?wMe.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 XX.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[Eo].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[Eo].currentSocket;if(this[Eo].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Eo].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Eo]&&(this[Eo].defaultPort=e)}get protocol(){return this[Eo].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Eo]&&(this[Eo].protocol=e)}};an.Agent=dk});var eZ=E(qh=>{"use strict";var NMe=qh&&qh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qh,"__esModule",{value:!0});qh.parseProxyResponse=void 0;var SMe=NMe(ky()),Fy=(0,SMe.default)("https-proxy-agent:parse-proxy-response");function TMe(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(),Fy("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),Fy("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){Fy("have not received end of HTTP headers yet..."),i();return}let g=l.slice(0,d).toString("ascii").split(`\r
`),f=g.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 g){if(!b)continue;let S=b.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${b}"`));let D=b.slice(0,S).toLowerCase(),F=b.slice(S+1).trimStart(),U=C[D];typeof U=="string"?C[D]=[U,F]:Array.isArray(U)?U.push(F):C[D]=F}Fy("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()})}qh.parseProxyResponse=TMe});var oZ=E(Pn=>{"use strict";var xMe=Pn&&Pn.__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]})),RMe=Pn&&Pn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nZ=Pn&&Pn.__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)&&xMe(e,t,r);return RMe(e,t),e},iZ=Pn&&Pn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pn,"__esModule",{value:!0});Pn.HttpsProxyAgent=void 0;var My=nZ(w("net")),tZ=nZ(w("tls")),DMe=iZ(w("assert")),kMe=iZ(ky()),FMe=hk(),MMe=w("url"),UMe=eZ(),Bm=(0,kMe.default)("https-proxy-agent"),rZ=t=>t.servername===void 0&&t.host&&!My.isIP(t.host)?{...t,servername:t.host}:t,Uy=class extends FMe.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new MMe.URL(e):e,this.proxyHeaders=r?.headers??{},Bm("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?sZ(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:"?(Bm("Creating `tls.Socket`: %o",this.connectOpts),n=tZ.connect(rZ(this.connectOpts))):(Bm("Creating `net.Socket`: %o",this.connectOpts),n=My.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=My.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,UMe.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",LMe),r.secureEndpoint?(Bm("Upgrading socket connection to TLS"),tZ.connect({...sZ(rZ(r),"host","path","port"),socket:n})):n;n.destroy();let l=new My.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Bm("Replaying proxy buffer for failed request"),(0,DMe.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};Uy.protocols=["http","https"];Pn.HttpsProxyAgent=Uy;function LMe(t){t.resume()}function sZ(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var cZ=E(On=>{"use strict";var vMe=On&&On.__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]})),PMe=On&&On.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),AZ=On&&On.__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)&&vMe(e,t,r);return PMe(e,t),e},OMe=On&&On.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(On,"__esModule",{value:!0});On.HttpProxyAgent=void 0;var _Me=AZ(w("net")),HMe=AZ(w("tls")),GMe=OMe(ky()),YMe=w("events"),qMe=hk(),aZ=w("url"),Vh=(0,GMe.default)("http-proxy-agent"),Ly=class extends qMe.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new aZ.URL(e):e,this.proxyHeaders=r?.headers??{},Vh("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?VMe(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 aZ.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;Vh("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Vh("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),Vh("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Vh("Creating `tls.Socket`: %o",this.connectOpts),i=HMe.connect(this.connectOpts)):(Vh("Creating `net.Socket`: %o",this.connectOpts),i=_Me.connect(this.connectOpts)),await(0,YMe.once)(i,"connect"),i}};Ly.protocols=["http","https"];On.HttpProxyAgent=Ly;function VMe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var FZ=E(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});zy.state=void 0;zy.state={instrumenterImplementation:void 0}});var jZ=E($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});$y.state=void 0;$y.state={operationRequestMap:new WeakMap}});var Fte=E((sxt,$8e)=>{$8e.exports={name:"@actions/cache",version:"6.2.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var Ute=E((nxt,Mte)=>{var e4e=Fte();Mte.exports={version:e4e.version}});var Db=E(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});fg.isJsonObject=fg.typeofJsonValue=void 0;function c4e(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}fg.typeofJsonValue=c4e;function u4e(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}fg.isJsonObject=u4e});var Fb=E(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});pg.base64encode=pg.base64decode=void 0;var ja="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),kb=[];for(let t=0;t<ja.length;t++)kb[ja[t].charCodeAt(0)]=t;kb[45]=ja.indexOf("+");kb[95]=ja.indexOf("/");function l4e(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=kb[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)}pg.base64decode=l4e;function d4e(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=ja[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=ja[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=ja[n|s>>6],e+=ja[s&63],r=0;break}return r&&(e+=ja[n],e+="=",r==1&&(e+="=")),e}pg.base64encode=d4e});var _te=E(Mb=>{"use strict";Object.defineProperty(Mb,"__esModule",{value:!0});Mb.utf8read=void 0;var iv=t=>String.fromCharCode.apply(String,t);function h4e(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(iv(s)),n=0);return r.length?(n&&r.push(iv(s.slice(0,n))),r.join("")):iv(s.slice(0,n))}Mb.utf8read=h4e});var m0=E(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.WireType=Yo.mergeBinaryOptions=Yo.UnknownFieldHandler=void 0;var g4e;(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])})(g4e=Yo.UnknownFieldHandler||(Yo.UnknownFieldHandler={}));function f4e(t,e){return Object.assign(Object.assign({},t),e)}Yo.mergeBinaryOptions=f4e;var p4e;(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"})(p4e=Yo.WireType||(Yo.WireType={}))});var Lb=E(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.varint32read=Ds.varint32write=Ds.int64toString=Ds.int64fromString=Ds.varint64write=Ds.varint64read=void 0;function m4e(){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")}Ds.varint64read=m4e;function E4e(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)}}Ds.varint64write=E4e;var Ub=65536*65536;function C4e(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>=Ub&&(n=n+(s/Ub|0),s=s%Ub)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Ds.int64fromString=C4e;function I4e(t,e){if(e>>>0<=2097151)return""+(Ub*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)}Ds.int64toString=I4e;function B4e(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)}}Ds.varint32write=B4e;function y4e(){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}Ds.varint32read=y4e});var pc=E(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.PbLong=fc.PbULong=fc.detectBi=void 0;var E0=Lb(),at;function Hte(){let t=new DataView(new ArrayBuffer(8));at=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}fc.detectBi=Hte;Hte();function Gte(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Yte=/^-?[0-9]+$/,Pb=4294967296,vb=2147483648,Ob=c Line truncated
`)}};c1.RpcError=kv});var Mv=E(l1=>{"use strict";Object.defineProperty(l1,"__esModule",{value:!0});l1.mergeRpcOptions=void 0;var Cre=jt();function qOe(t,e){if(!e)return t;let r={};u1(t,r),u1(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Cre.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Cre.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},u1(t.meta,r.meta),u1(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}l1.mergeRpcOptions=qOe;function u1(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(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.Deferred=Il.DeferredState=void 0;var Jo;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Jo=Il.DeferredState||(Il.DeferredState={}));var Uv=class{constructor(e=!0){this._state=Jo.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!==Jo.PENDING)throw new Error(`cannot resolve ${Jo[this.state].toLowerCase()}`);this._resolve(e),this._state=Jo.RESOLVED}reject(e){if(this.state!==Jo.PENDING)throw new Error(`cannot reject ${Jo[this.state].toLowerCase()}`);this._reject(e),this._state=Jo.REJECTED}resolvePending(e){this._state===Jo.PENDING&&this.resolve(e)}rejectPending(e){this._state===Jo.PENDING&&this.reject(e)}};Il.Deferred=Uv});var Pv=E(d1=>{"use strict";Object.defineProperty(d1,"__esModule",{value:!0});d1.RpcOutputStreamController=void 0;var Ire=Lv(),Bl=jt(),vv=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){Bl.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){Bl.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){Bl.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(){Bl.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;Bl.assert(e,"bad state"),Bl.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 Ire.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;Bl.assert(s.state==Ire.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};d1.RpcOutputStreamController=vv});var _v=E(Qg=>{"use strict";var VOe=Qg&&Qg.__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(Qg,"__esModule",{value:!0});Qg.UnaryCall=void 0;var Ov=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 VOe(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}})}};Qg.UnaryCall=Ov});var Gv=E(bg=>{"use strict";var JOe=bg&&bg.__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(bg,"__esModule",{value:!0});bg.ServerStreamingCall=void 0;var Hv=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 Moe=E(Foe=>{"use strict";var _8=AA().Buffer;Foe._dbcs=cA;var Ur=-1,koe=-2,Ai=-10,cs=-1e3,tf=new Array(256),EE=-1;for(Ow=0;Ow<256;Ow++)tf[Ow]=Ur;var Ow;function cA(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]=tf.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(tf.slice(0));var i=this.decodeTables.length;this.decodeTables.push(tf.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[cs-o[s]],A=48;A<=57;A++){if(a[A]===Ur)a[A]=cs-n;else if(a[A]>cs)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[cs-a[A]],u=129;u<=254;u++){if(c[u]===Ur)c[u]=cs-i;else{if(c[u]===cs-i)continue;if(c[u]>cs)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[cs-c[u]],d=48;d<=57;d++)l[d]===Ur&&(l[d]=koe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var g={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function cWe(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(zJe.has(n)){r=n;break}}return r}function uWe(t,e){let r=cWe(e);r!==""&&(t.referrerPolicy=r)}function lWe(){return"allowed"}function dWe(){return"success"}function hWe(){return"success"}function gWe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function fWe(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&&iO(t.origin)&&!iO(Xl(t))&&(e=null);break;case"same-origin":TE(t,Xl(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function af(t,e){return t}function pWe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:af(t.domainLookupStartTime,r),domainLookupEndTime:af(t.domainLookupEndTime,r),connectionStartTime:af(t.connectionStartTime,r),connectionEndTime:af(t.connectionEndTime,r),secureConnectionStartTime:af(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function mWe(t){return af(ZJe.now(),t)}function EWe(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 cce(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function CWe(t){return{referrerPolicy:t.referrerPolicy}}function IWe(t){let e=t.referrerPolicy;xE(e);let r=null;if(t.referrer==="client"){let i=nce();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Oc.is.URL(t.referrer)&&(r=t.referrer);let s=nO(r),n=nO(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??nO(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=Xl(t);return jl(s)&&!jl(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=Xl(t);return TE(s,i)?s:jl(s)&&!jl(i)?"no-referrer":n}case"same-origin":return TE(t,s)?s:"no-referrer";case"origin-when-cross-origin":return TE(t,s)?s:n;case"no-referrer-when-downgrade":{let i=Xl(t);return jl(s)&&!jl(i)?"no-referrer":s}}}function nO(t,e=!1){return xE(Oc.is.URL(t)),t=new URL(t),hce(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var BWe=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)$/),yWe=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function uce(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),yWe(t)):BWe(t)}function QWe(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||uce(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function jl(t){return Oc.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:QWe(t.origin):!1}function bWe(t){}function TE(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function wWe(t){return t.controller.state==="aborted"}function NWe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function SWe(t){return eWe[t.toLowerCase()]??t}var TWe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function lce(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,TWe),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 xWe(t,e,r,s=0,n=1){let i=lce(t,r,s,n),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,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=li(a=>gO(a)&&a!==59,t,e);i=dO.decode(o)}return{name:s,value:i,extended:n}}function $We(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 Os("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=li(a=>a!==10&&a!==13&&a!==58,t,e);if(o=hO(o,!0,!0,a=>a===9||a===32),!VWe.test(o.toString()))throw Os("header name does not match the field-name token production");if(t[e.position]!==58)throw Os("expected :");switch(e.position++,li(a=>a===32||a===9,t,e),qWe(o)){case"content-disposition":{r=s=null;let a=!1;if(li(c=>gO(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw Os("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let c=ZWe(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(c.extended?(s=c.value,a=!0):a||(s=c.value))}if(r===null)throw Os("name attribute is required in content-disposition header");break}case"content-type":{let a=li(A=>A!==10&&A!==13,t,e);a=hO(a,!1,!0,A=>A===9||A===32),n=Cce(a);break}case"content-transfer-encoding":{let a=li(A=>A!==10&&A!==13,t,e);a=hO(a,!1,!0,A=>A===9||A===32),i=Cce(a);break}default:li(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Os("expected CRLF");e.position+=2}}function li(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function hO(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 eze(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 Os(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function tze(t){return t<=31||t===127}function rze(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 gO(t){return t<=127&&t!==32&&t!==9&&!tze(t)&&!rze(t)}Ice.exports={multipartFormDataParser:XWe,validateBoundary:jWe}});var RE=E((cLt,yce)=>{"use strict";function sze(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}yce.exports={createDeferredPromise:sze}});var uf=E((uLt,Sce)=>{"use strict";var mO=Be(),{ReadableStreamFrom:nze,readableStreamClose:ize,fullyReadBody:oze,extractMimeType:aze}=Cn(),{FormData:Qce,setFormDataState:Aze}=uN(),{webidl:Ki}=Lr(),fO=w("node:assert"),{isErrored:pO,isDisturbed:cze}=w("node:stream"),{isUint8Array:uze}=w("node:util/types"),{serializeAMimeType:lze}=ui(),{multipartFormDataParser:dze}=Bce(),{createDeferredPromise:hze}=RE(),{parseJSONFromBytes:gze}=dA(),{utf8DecodeBytes:fze}=nN(),{runtimeFeatures:pze}=hA(),mze=pze.has("crypto")?w("node:crypto").randomInt:t=>Math.floor(Math.random()*t),lN=new TextEncoder;function Eze(){}var Cze=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!cze(e)&&!pO(e)&&e.cancel("Response object has been garbage collected").catch(Eze)});function wce(t,e=!1){let r=null,s=null;Ki.is.ReadableStream(t)?r=t:Ki.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),fO(Ki.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(Ki.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Ki.is.BufferSource(t))i=Ki.util.getCopyOfBytesHeldByBufferSource(t);else if(Ki.is.FormData(t)){let c=`----formdata-undici-0${`${mze(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
`),g=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let b=lN.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
`);g.push(b),o+=b.byteLength}else{let b=lN.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
`);g.push(b,C,f),typeof C.size=="number"?o+=b.byteLength+C.size+f.byteLength:p=!0}let I=lN.encode(`--${c}--\r
`);g.push(I),o+=I.byteLength,p&&(o=null),i=t,n=async function*(){for(let m of g)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${c}`}else if(Ki.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(mO.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Ki.is.ReadableStream(t)?t:nze(t)}return(typeof i=="string"||uze(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(pO(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!pO(r)&&s.enqueue(typeof c=="string"?lN.encode(c):new Uint8Array(c));queueMicrotask(()=>ize(s))})(),[{stream:r,source:i,length:o},a]}function Ize(t,e=!1){return Ki.is.ReadableStream(t)&&(fO(!mO.isDisturbed(t),"The body has already been consumed."),fO(!t.locked,"The stream is locked.")),wce(t,e)}function Bze(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function yze(t,e){return{blob(){return cf(this,s=>{let n=bce(e(this));return n===null?n="":n&&(n=lze(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return cf(this,s=>new Uint8Array(s).buffer,t,e)},text(){return cf(this,fze,t,e)},json(){return cf(this,gze,t,e)},formData(){return cf(this,s=>{let n=bce(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=dze(s,n),o=new Qce;return Aze(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new Qce;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 cf(this,s=>new Uint8Array(s),t,e)}}}function Qze(t,e){Object.assign(t.prototype,yze(t,e))}function cf(t,e,r,s){try{Ki.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),Nce(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=hze(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(oze(t.body,o,i),n.promise)}function Nce(t){let e=t.body;return e!=null&&(e.stream.locked||mO.isDisturbed(e.stream))}function bce(t){let e=t.headersList,r=aze(e);return r==="failure"?null:r}Sce.exports={extractBody:wce,safelyExtractBody:Ize,cloneBody:Bze,mixinBody:Qze,streamRegistry:Cze,bodyUnusable:Nce}});var Gce=E((lLt,Hce)=>{"use strict";var le=w("node:assert"),se=Be(),{channels:Tce}=vc(),EO=Z8(),{RequestContentLengthMismatchError:Zl,ResponseContentLengthMismatchError:xce,RequestAbortedError:vce,InvalidArgumentError:bze,HeadersTimeoutError:wze,HeadersOverflowError:Nze,SocketError:$l,InformationalError:lf,BodyTimeoutError:Sze,HTTPParserError:Tze,ResponseExceededMaxSizeError:xze}=Ce(),{kUrl:Pce,kReset:_s,kClient:pN,kParser:Et,kBlocking:FE,kRunning:ar,kPending:wO,kSize:Rce,kWriting:_c,kQueue:ji,kNoRef:DE,kKeepAliveDefaultTimeout:Rze,kHostHeader:Dze,kPendingIdx:kze,kRunningIdx:di,kError:us,kPipelining:gN,kSocket:td,kKeepAliveTimeoutValue:mN,kMaxHeadersSize:Fze,kKeepAliveMaxTimeout:Mze,kKeepAliveTimeoutThreshold:Uze,kHeadersTimeout:Lze,kBodyTimeout:vze,kStrictContentLength:BO,kMaxRequests:Dce,kCounter:Pze,kMaxResponseSize:Oze,kOnError:kce,kResume:fA,kHTTPContext:Oce,kClosed:yO}=et(),In=SAe(),Fce=Buffer.alloc(0),dN=Buffer[Symbol.species],_ze=se.removeAllListeners,rd=Symbol("kIdleSocketValidation"),ed=Symbol("kIdleSocketValidationTimeout"),NO=Symbol("kSocketUsed"),CO;function Hze(){let t=process.env.JEST_WORKER_ID?V4():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(RAe())}catch{}return e||(e=new WebAssembly.Module(t||V4())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{le(_t.ptr===s);let o=n-ra+ta.byteOffset;return _t.onStatus(new dN(ta.buffer,o,i))},wasm_on_message_begin:s=>(le(_t.ptr===s),_t.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{le(_t.ptr===s);let o=n-ra+ta.byteOffset;return _t.onHeaderField(new dN(ta.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{le(_t.ptr===s);let o=n-ra+ta.byteOffset;return _t.onHeaderValue(new dN(ta.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(le(_t.ptr===s),_t.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{le(_t.ptr===s);let o=n-ra+ta.byteOffset;return _t.onBody(new dN(ta.buffer,o,i))},wasm_on_message_complete:s=>(le(_t.ptr===s),_t.onMessageComplete())}})}var IO=null,_t=null,ta=null,hN=0,ra=null,Gze=0,kE=1,df=2|kE,fN=4|kE,QO=8|Gze,bO=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(In.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[Fze],this.shouldKeepAliv Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[Dze],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[gN]&&!g[_s]?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 Tce.sendHeaders.hasSubscribers&&Tce.sendHeaders.publish({request:e,headers:p,socket:g}),!A||d===0?Uce(f,null,t,e,g,u,p,l):se.isBuffer(A)?Uce(f,A,t,e,g,u,p,l):se.isBlobLike(A)?typeof A.stream=="function"?Lce(f,A.stream(),t,e,g,u,p,l):eKe(f,A,t,e,g,u,p,l):se.isStream(A)?$ze(f,A,t,e,g,u,p,l):se.isIterable(A)?Lce(f,A,t,e,g,u,p,l):le(!1),!0}function $ze(t,e,r,s,n,i,o,a){le(i!==0||r[ar]===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){se.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",g)}),!A){let f=new vce;queueMicrotask(()=>g(f))}},g=function(f){if(!A){if(A=!0,le(n.destroyed||n[_c]&&r[ar]<=1),n.off("drain",l).off("error",g),e.removeListener("data",u).removeListener("end",g).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?se.destroy(e,f):se.destroy(e)}};e.on("data",u).on("end",g).on("error",g).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",g),e.errorEmitted??e.errored?setImmediate(g,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(g,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function Uce(t,e,r,s,n,i,o,a){try{e?se.isBuffer(e)&&(le(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[_s]=!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"):(le(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[fA]()}catch(A){t(A)}}async function eKe(t,e,r,s,n,i,o,a){le(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[_s]=!0),r[fA]()}catch(A){t(A)}}async function Lce(t,e,r,s,n,i,o,a){le(i!==0||r[ar]===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)=>{le(A===null),n[us]?g(n[us]):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[us])throw n[us];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var 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[_c]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[us])throw r[us];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[BO])throw new Zl;process.emitWarning(new Zl)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[_s]=!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[Et].timeout&&r[Et].timeoutType===df&&r[Et].timeout.refresh&&r[Et].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[_c]=!1,e[us])throw e[us];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${i}\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(A[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[BO])throw new Zl;process.emitWarning(new Zl)}e[Et].timeout&&e[Et].timeoutType===df&&e[Et].timeout.refresh&&e[Et].timeout.refresh(),s[fA]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[_c]=!1,e&&(le(s[ar]<=1,"pipeline should only contain this request"),n(e))}};Hce.exports=Yze});var Xce=E((dLt,jce)=>{"use strict";var gi=w("node:assert"),{pipeline:tKe}=w("node:stream"),xe=Be(),{RequestContentLengthMismatchError:RO,RequestAbortedError:rKe,SocketError:vE,InformationalError:Hc,InvalidArgumentError:sKe}=Ce(),{kUrl:LE,kReset:yN,kClient:Bn,kRunning:PE,kPending:nKe,kQueue:Gc,kPendingIdx:kO,kRunningIdx:Xi,kError:yn,kSocket:xt,kStrictContentLength:iKe,kOnError:hf,kMaxConcurrentStreams:IN,kPingInterval:Yce,kHTTP2Session:pA,kHTTP2InitialWindowSize:oKe,kHTTP2ConnectionWindowSize:aKe,kResume:sa,kSize:AKe,kHTTPContext:FO,kClosed:DO,kBodyTimeout:cKe,kEnableConnectProtocol:ME,kRemoteSettings:UE,kHTTP2Stream:CN,kHTTP2SessionState:MO}=et(),{channels:qce}=vc(),hi=Symbol("open streams"),Vce,BN;try{BN=w("node:http2")}catch{BN={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:uKe,HTTP2_HEADER_METHOD:Jce,HTTP2_HEADER_PATH:Wce,HTTP2_HEADER_SCHEME:SO,HTTP2_HEADER_CONTENT_LENGTH:lKe,HTTP2_HEADER_EXPECT:dKe,HTTP2_HEADER_STATUS:TO,HTTP2_HEADER_PROTOCOL:hKe,NGHTTP2_REFUSED_STREAM:gKe,NGHTTP2_CANCEL:fKe}}=BN;function xO(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 pKe(t,e){t[xt]=e;let r=t[oKe],s=t[aKe],n=BN.connect(t[LE],{createConnection:()=>e,peerMaxConcurrentStreams:t[IN],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[xt]=e,n[hi]=0,n[Bn]=t,n[xt]=e,n[MO]={ping:{interval:t[Yce]===0?null:setInterval(IKe,t[Yce],n).unref()}},n[ME]=!1,n[UE]=!1,s&&xe.addListener(n,"connect",EKe.bind(n,s)),xe.addListener(n,"error",BKe),xe.addListener(n,"frameError",yKe),xe.addListener(n,"end",QKe),xe.addListener(n,"goaway",bKe),xe.addListener(n,"close",wKe),xe.addListener(n,"remoteSettings",CKe),n.unref(),t[pA]=n,e[pA]=n,xe.addListener(e,"error",SKe),xe.addListener(e,"end",TKe),xe.addListener(e,"close",NKe),e[DO]=!1,e.on("close",xKe),{version:"h2",defaultPipelining:1/0,write(i){return DKe(t,i)},resume(){mKe(t)},destroy(i,o){e[DO]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[PE]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[UE]===!1||xe.bodyLength(i.body)!==0&&(xe.isStream(i.body)||xe.isAsyncIterable(i.body)||xe.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[UE]===!1;return!1}}}function mKe(t){let e=t[xt];e?.destroyed===!1&&(t[AKe]===0||t[IN]===0?(e.unref(),t[pA].unref()):(e.ref(),t[pA].ref()))}function EKe(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function CKe(t){if(this[Bn][IN]=t.maxConcurrentStreams??this[Bn][IN],this[UE]===!0&&this[ME]===!0&&t.enableConnectProtocol===!1){let e=new Hc("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[xt][yn]=e,this[Bn][hf](e);return}this[ME]=t.enableConnectProtocol??this[ME],this[UE]=!0,this[Bn][sa]()}function IKe(t){let e=t[MO];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[Bn],o=this[Bn];if(s!=null){let a=new Hc(`HTTP/2: "PING" errored - type ${s.message}`);o[yn]=a,i[hf](a)}else i.emit("ping",n)}}function BKe(t){gi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[xt][yn]=t,this[Bn][hf](t)}function yKe(t,e,r){if(r===0){let s=new Hc(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[xt][yn]=s,this[Bn][hf](s)}}function QKe(){let t=new vE("other side closed",xe.getSocketInfo(this[xt]));this.destroy(t),xe.destroy(this[xt],t)}function bKe(t){let e=this[yn]||new vE(`HTTP/2: "GOAWAY" frame received with code ${t}`,xe.getSocketInfo(this[xt])),r=this[Bn];if(r[xt]=null,r[FO]=null,this.close(),this[pA]=null,xe.destroy(this[xt],e),r[Xi]<r[Gc].length){let s=r[Gc][r[Xi]];r[Gc][r[Xi]++]=null,xe.errorRequest(r,s,e),r[kO]=r[Xi]}gi(r[PE]===0),r.emit("disconnect",r[LE],[r],e),r.emit("connectionError",r[LE],[r],e),r[sa]()}function wKe(){let{[Bn]:t,[MO]:e}=this,{[xt]:r}=t,s=this[xt][yn]||this[yn]||new vE("closed",xe.getSocketInfo(r));if(t[xt]=null,t[FO]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){gi(t[nKe]===0);let n=t[Gc].splice(t[Xi]);for(let i=0;i<n.length;i++){let o=n[i];xe.errorRequest(t,o,s)}}}function NKe(){let t=this[yn]||new vE("closed",xe.getSocketInfo(this)),e=this[pA][Bn];e[xt]=null,e[FO]=null,this[pA]!==null&&this[pA].destroy(t),e[kO]=e[Xi],gi(e[PE]===0),e.emit("disconnect",e[LE],[e],t),e[sa]()}function SKe(t){gi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[yn]=t,this[Bn][hf](t)}function TKe(){xe.destroy(this,new vE("other side closed",xe.getSocketInfo(this)))}func Line truncated
`;qce.sendHeaders.publish({request:e,headers:U,socket:s[xt]})}let S=n==="GET"||n==="HEAD"||d===null;A?(g[dKe]="100-continue",f=s.request(g,{endStream:S,signal:c}),f[CN]=!0,f.once("continue",F)):(f=s.request(g,{endStream:S,signal:c}),f[CN]=!0,F()),++s[hi],f.setTimeout(r);let D=!1;return f.once("response",U=>{let{[TO]:P,...H}=U;if(e.onResponseStarted(),D=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),xO(H),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",Re=>{e.aborted||e.completed||e.onData(Re)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),D?(!e.aborted&&!e.completed&&e.onComplete({}),t[Gc][t[Xi]++]=null,t[sa]()):(m(new Hc("HTTP/2: stream half-closed (remote)")),t[Gc][t[Xi]++]=null,t[kO]=t[Xi],t[sa]())}),f.once("close",()=>{f.removeAllListeners("data"),s[hi]-=1,s[hi]===0&&s.unref()}),f.once("error",function(U){f.removeAllListeners("data"),m(U)}),f.once("frameError",(U,P)=>{f.removeAllListeners("data"),m(new Hc(`HTTP/2: "frameError" received - type ${U}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let U=new Hc(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[hi]-=1,s[hi]===0&&s.unref(),m(U)}),f.once("trailers",U=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(U))}),!0;function F(){!d||b===0?zce(m,f,null,t,e,t[xt],b,C):xe.isBuffer(d)?zce(m,f,d,t,e,t[xt],b,C):xe.isBlobLike(d)?typeof d.stream=="function"?Kce(m,f,d.stream(),t,e,t[xt],b,C):FKe(m,f,d,t,e,t[xt],b,C):xe.isStream(d)?kKe(m,t[xt],C,f,d,t,e,b):xe.isIterable(d)?Kce(m,f,d,t,e,t[xt],b,C):gi(!1)}}function zce(t,e,r,s,n,i,o,a){try{r!=null&&xe.isBuffer(r)&&(gi(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[yN]=!0),n.onRequestSent(),s[sa]()}catch(A){t(A)}}function kKe(t,e,r,s,n,i,o,a){gi(a!==0||i[PE]===0,"stream body cannot be pipelined");let A=tKe(n,s,u=>{u?(xe.destroy(A,u),t(u)):(xe.removeAllListeners(A),o.onRequestSent(),r||(e[yN]=!0),i[sa]())});xe.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function FKe(t,e,r,s,n,i,o,a){gi(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new RO;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[yN]=!0),s[sa]()}catch(A){t(A)}}async function Kce(t,e,r,s,n,i,o,a){gi(o!==0||s[PE]===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)=>{gi(A===null),i[yn]?d(i[yn]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[yn])throw i[yn];let d=e.write(l);n.onBodySent(l),d||await u()}e.end(),n.onRequestSent(),a||(i[yN]=!0),s[sa]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}jce.exports=pKe});var Jc=E((hLt,iue)=>{"use strict";var mA=w("node:assert"),tue=w("node:net"),OE=w("node:http"),sd=Be(),{ClientStats:MKe}=S4(),{channels:gf}=vc(),UKe=fAe(),LKe=Wl(),{InvalidArgumentError:Ct,InformationalError:vKe,ClientDestroyedError:PKe}=Ce(),OKe=zl(),{kUrl:na,kServerName:Vc,kClient:_Ke,kBusy:LO,kConnect:HKe,kResuming:nd,kRunning:YE,kPending:qE,kSize:_E,kQueue:Zi,kConnected:GKe,kConnecting:ff,kNeedDrain:qc,kKeepAliveDefaultTimeout:Zce,kHostHeader:YKe,kPendingIdx:$i,kRunningIdx:CA,kError:qKe,kPipelining:QN,kKeepAliveTimeoutValue:VKe,kMaxHeadersSize:JKe,kKeepAliveMaxTimeout:WKe,kKeepAliveTimeoutThreshold:zKe,kHeadersTimeout:KKe,kBodyTimeout:jKe,kStrictContentLength:XKe,kConnector:HE,kMaxRequests:vO,kCounter:ZKe,kClose:$Ke,kDestroy:eje,kDispatch:tje,kLocalAddress:GE,kMaxResponseSize:rje,kOnError:sje,kHTTPContext:Zt,kMaxConcurrentStreams:nje,kHTTP2InitialWindowSize:ije,kHTTP2ConnectionWindowSize:oje,kResume:EA,kPingInterval:aje}=et(),Aje=Gce(),cje=Xce(),Yc=Symbol("kClosedResolve"),uje=OE&&OE.maxHeaderSize&&Number.isInteger(OE.maxHeaderSize)&&OE.maxHeaderSize>0?()=>OE.maxHeaderSize:()=>{throw new Ct("http module not available or http.maxHeaderSize invalid")},$ce=()=>{};function rue(t){return t[QN]??t[Zt]?.defaultPipelining??1}var PO=class extends LKe{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:g,socketPath:f,pipelining:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:b,maxRequestsPerClient:S,localAddress:D,maxResponseSize:F,autoSelectFamily:U,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:H,allowH2:Re,useH2c:Je,initialWindowSize:pe,connectionWindowSize:De,pingInterval:Te,webSocket:$t}={}){if(c!==void 0)throw new Ct("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new Ct("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new Ct("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new Ct("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)t Line truncated
`,this[jKe]=a??3e5,this[KKe]=s??3e5,this[XKe]=m??!0,this[vO]=S,this[Yc]=null,this[rje]=F>-1?F:-1,this[Zt]=null,this[nje]=H??100,this[ije]=pe??262144,this[oje]=De??524288,this[aje]=Te??6e4,this[Zi]=[],this[CA]=0,this[$i]=0,this[EA]=er=>OO(this,er),this[sje]=er=>sue(this,er)}get pipelining(){return this[QN]}set pipelining(e){this[QN]=e,this[EA](!0)}get stats(){return new MKe(this)}get[qE](){return this[Zi].length-this[$i]}get[YE](){return this[$i]-this[CA]}get[_E](){return this[Zi].length-this[CA]}get[GKe](){return!!this[Zt]&&!this[ff]&&!this[Zt].destroyed}get[LO](){return!!(this[Zt]?.busy(null)||this[_E]>=(rue(this)||1)||this[qE]>0)}[HKe](e){nue(this),this.once("connect",e)}[tje](e,r){let s=new UKe(this[na].origin,e,r);return this[Zi].push(s),this[nd]||(sd.bodyLength(s.body)==null&&sd.isIterable(s.body)?(this[nd]=1,queueMicrotask(()=>OO(this))):this[EA](!0)),this[nd]&&this[qc]!==2&&this[LO]&&(this[qc]=2),this[qc]<2}[$Ke](){return new Promise(e=>{this[_E]?this[Yc]=e:e(null)})}[eje](e){return new Promise(r=>{let s=this[Zi].splice(this[$i]);for(let i=0;i<s.length;i++){let o=s[i];sd.errorRequest(this,o,e)}let n=()=>{this[Yc]&&(this[Yc](),this[Yc]=null),r(null)};this[Zt]?(this[Zt].destroy(e,n),this[Zt]=null):queueMicrotask(n),this[EA]()})}};function sue(t,e){if(t[YE]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){mA(t[$i]===t[CA]);let r=t[Zi].splice(t[CA]);for(let s=0;s<r.length;s++){let n=r[s];sd.errorRequest(t,n,e)}mA(t[_E]===0)}}function nue(t){mA(!t[ff]),mA(!t[Zt]);let{host:e,hostname:r,protocol:s,port:n}=t[na];if(r[0]==="["){let i=r.indexOf("]");mA(i!==-1);let o=r.substring(1,i);mA(tue.isIPv6(o)),r=o}t[ff]=!0,gf.beforeConnect.hasSubscribers&&gf.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Zt]?.version,servername:t[Vc],localAddress:t[GE]},connector:t[HE]});try{t[HE]({host:e,hostname:r,protocol:s,port:n,servername:t[Vc],localAddress:t[GE]},(i,o)=>{if(i){UO(t,i,{host:e,hostname:r,protocol:s,port:n}),t[EA]();return}if(t.destroyed){sd.destroy(o.on("error",$ce),new PKe),t[EA]();return}mA(o);try{t[Zt]=o.alpnProtocol==="h2"?cje(t,o):Aje(t,o)}catch(a){o.destroy().on("error",$ce),UO(t,a,{host:e,hostname:r,protocol:s,port:n}),t[EA]();return}t[ff]=!1,o[ZKe]=0,o[vO]=t[vO],o[_Ke]=t,o[qKe]=null,gf.connected.hasSubscribers&&gf.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Zt]?.version,servername:t[Vc],localAddress:t[GE]},connector:t[HE],socket:o}),t.emit("connect",t[na],[t]),t[EA]()})}catch(i){UO(t,i,{host:e,hostname:r,protocol:s,port:n}),t[EA]()}}function UO(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[ff]=!1,gf.connectError.hasSubscribers&&gf.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[Zt]?.version,servername:t[Vc],localAddress:t[GE]},connector:t[HE],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(mA(t[YE]===0);t[qE]>0&&t[Zi][t[$i]].servername===t[Vc];){let o=t[Zi][t[$i]++];sd.errorRequest(t,o,e)}else sue(t,e);t.emit("connectionError",t[na],[t],e)}}function eue(t){t[qc]=0,t.emit("drain",t[na],[t])}function OO(t,e){t[nd]!==2&&(t[nd]=2,lje(t,e),t[nd]=0,t[CA]>256&&(t[Zi].splice(0,t[CA]),t[$i]-=t[CA],t[CA]=0))}function lje(t,e){for(;;){if(t.destroyed){mA(t[qE]===0);return}if(t[Yc]&&!t[_E]){t[Yc](),t[Yc]=null;return}if(t[Zt]&&t[Zt].resume(),t[LO])t[qc]=2;else if(t[qc]===2){e?(t[qc]=1,queueMicrotask(()=>eue(t))):eue(t);continue}if(t[qE]===0||t[YE]>=(rue(t)||1))return;let r=t[Zi][t[$i]];if(r===null)return;if(t[na].protocol==="https:"&&t[Vc]!==r.servername){if(t[YE]>0)return;t[Vc]=r.servername,t[Zt]?.destroy(new vKe("servername changed"),()=>{t[Zt]=null,OO(t)})}if(t[ff])return;if(!t[Zt]){nue(t);return}if(t[Zt].destroyed||t[Zt].busy(r))return;!r.aborted&&t[Zt].write(r)?t[$i]++:t[Zi].splice(t[$i],1)}}iue.exports=PO});var _O=E((fLt,oue)=>{"use strict";var bN=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)}};oue.exports=class{constructor(){this.head=this.tail=new bN}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new bN),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 wN=E((pLt,fue)=>{"use strict";var{PoolStats:dje}=S4(),hje=Wl(),gje=_O(),{kConnected:HO,kSize:aue,kRunning:Aue,kPending:cue,kQueued:VE,kBusy:fje,kFree:pje,kUrl:mje,kClose:Eje,kDestroy:Cje,kDispatch:Ije}=et(),Dr=Symbol("clients"),ls=Symbol("needDrain"),JE=Symbol("queue"),GO=Symbol("closed resolve"),YO=Symbol("onDrain"),uue=Symbol("onConnect"),lue=Symbol("onDisconnect"),due=Symbol("onConnectionError"),qO=Symbol("get dispatcher"),hue=Symbol("add client"),gue=Symbol("remove client"),VO=class extends hje{[JE]=new gje;[VE]=0;[Dr] 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())}};_de.exports=c6});var l6=E((WLt,qde)=>{"use strict";var{InvalidArgumentError:p$e}=Ce(),{runtimeFeatures:m$e}=hA();function E$e(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 Hde=m$e.has("crypto")?w("node:crypto"):null,C$e=Hde?.hash?t=>Hde.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Yde(t){return Array.isArray(t)&&(t.length&1)===0}function I$e(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 B$e(t){let e={};if(!t)return e;if(Yde(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 Gde=["record","playback","update"];function y$e(t){if(!Gde.includes(t))throw new p$e(`Invalid snapshot mode: ${t}. Must be one of: ${Gde.join(", ")}`)}qde.exports={createHeaderFilters:E$e,hashId:C$e,isUndiciHeaders:Yde,normalizeHeaders:B$e,isUrlExcludedFactory:I$e,validateSnapshotMode:y$e}});var $de=E((zLt,Zde)=>{"use strict";var{writeFile:Q$e,readFile:b$e,mkdir:w$e}=w("node:fs/promises"),{dirname:N$e,resolve:Vde}=w("node:path"),{setTimeout:S$e,clearTimeout:Jde}=w("node:timers"),{InvalidArgumentError:Wde,UndiciError:T$e}=Ce(),{hashId:x$e,isUrlExcludedFactory:R$e,normalizeHeaders:zde,createHeaderFilters:Kde}=l6();function nC(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||zde(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:jde(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function jde(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 Xde(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 iC(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 x$e(r)}var d6=class{#e;#t;#s=new Map;#r;#i=1/0;#n=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#n=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=Kde(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=R$e(e.excludeUrls),this.#n&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=nC(e,this.#a,this.matchOptions),n=iC(s),i=zde(r.headers),o={statusCode:r.statusCode,headers:Xde(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#s.size>=this.#i&&!this.#s.has(n)){let A=this.#s.keys().next().value;this.#s.delete(A)}let a=this.#s.get(n);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#s.set(n,{request:s,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#n&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=nC(e,this.#a,this.matchOptions),s=iC(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 Wde("Snapshot path is required");try{let s=await b$e(Vde(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 T$e(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new Wde("Snapshot path is required");let s=Vde(r);await w$e(N$e(s),{recursive:!0});let n=Array.from(this.#s.entries()).map(([i,o])=>({hash:i,snapshot:o}));await Q$e(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${bn} (
-- 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${bn}_getValuesQuery ON cacheInterceptorV${bn}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${bn}_deleteByUrlQuery ON cacheInterceptorV${bn}(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${bn}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#r.prepare(`
UPDATE cacheInterceptorV${Fo} SET
`),this.#i=this.#s.prepare(`
UPDATE cacheInterceptorV${bn} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -316,8 +167,8 @@ ${e.format(r)}`.trim())}};rVe.exports=Bne});var pne=h((XOr,iVe)=>{"use strict";v
staleAt = ?
WHERE
id = ?
`),this.#n=this.#r.prepare(`
INSERT INTO cacheInterceptorV${Fo} (
`),this.#n=this.#s.prepare(`
INSERT INTO cacheInterceptorV${bn} (
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${bn} WHERE url = ?`),this.#A=this.#s.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${bn}`),this.#a=this.#s.prepare(`DELETE FROM cacheInterceptorV${bn} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#s.prepare(`
DELETE FROM cacheInterceptorV${bn}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${Fo}
ORDER BY cachedAt DESC
FROM cacheInterceptorV${bn}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#r.close()}get(e){qne(e);let r=this.#g(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){qne(e);let A=this.#l(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,n=s?.byteLength;if(n&&n>this.#e)return;let i=this.#g(e,!0);i?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,i.id):(this.#u(),this.#n.run(A,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){qne(e),MEr(r);let A=0,s=[],n=this;return new UEr({decodeStrings:!0,write(i,o,a){A+=i.byteLength,A<n.#e?s.push(i):this.destroy(),a()},final(i){n.set(e,{...r,body:s}),i()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#i.run(this.#l(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#o.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#a.get();return e}#l(e){return`${e.origin}/${e.path}`}#g(e,r=!1){let A=this.#l(e),{headers:s,method:n}=e,i=this.#A.all(A,n);if(i.length===0)return;let o=Date.now();for(let a of i){if(o>=a.deleteAt&&!r)return;let c=!0;if(a.vary){let u=JSON.parse(a.vary);for(let l in u)if(!LEr(s[l],u[l])){c=!1;break}}if(c)return a}}};function LEr(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,A)=>r===e[A]):t===e}});var gI=h((QHr,QWe)=>{"use strict";var{kConstruct:vEr}=yr(),{kEnumerableProperty:hy}=ut(),{iteratorMixin:_Er,isValidHeaderName:_S,isValidHeaderValue:EWe}=No(),{webidl:Ot}=Ks(),Vne=B("node:assert"),jH=B("node:util");function hWe(t){return t===10||t===13||t===9||t===32}function fWe(t){let e=0,r=t.length;for(;r>e&&hWe(t.charCodeAt(r-1));)--r;for(;r>e&&hWe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function CWe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let A=e[r];if(A.length!==2)throw Ot.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${A.length}.`});Wne(t,A[0],A[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let A=0;A<r.length;++A)Wne(t,r[A],e[r[A]])}else throw Ot.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function Wne(t,e,r){if(r=fWe(r),_S(e)){if(!EWe(r))throw Ot.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Ot.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(BWe(t)==="immutable")throw new TypeError("immutable");return XH(t).append(e,r,!1)}function PEr(t){let e=XH(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],A=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=A;for(let n=0;n<A.length;++n){let{0:i,1:o}=A[n];if(i==="set-cookie")for(let a=0;a<s.length;++a)r.push([i,s[a]]);else r.push([i,o])}return e.sortedMap=r}function IWe(t,e){return t[0]<e[0]?-1:1}var KH=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,A){this.sortedMap=null;let s=A?e:e.toLowerCase(),n=this.headersMap.get(s);if(n){let i=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:n.name,value:`${n.value}${i}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,A){this.sortedMap=null;let s=A?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:A}of this.headersMap.values())e[r]=A;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMa Line truncated
${n}`;break;case"retry":Dje(n)&&(r[s]=n);break;case"id":Nje(n)&&(r[s]=n);break;case"event":n.length>0&&(r[s]=n);break}}processEvent(e){e.retry&&Dje(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Nje(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};Rje.exports={EventSourceStream:Sie}});var vje=h((JHr,Lje)=>{"use strict";var{pipeline:tQr}=B("node:stream"),{fetching:rQr}=YS(),{makeRequest:AQr}=fy(),{webidl:Wn}=Ks(),{EventSourceStream:sQr}=Sje(),{parseMIMEType:nQr}=za(),{createFastMessageEvent:iQr}=mG(),{isNetworkError:Tje}=OS(),{kEnumerableProperty:QI}=ut(),{environmentSettingsObject:kje}=No(),Fje=!1,xje=3e3,jS=0,Uje=1,KS=2,oQr="anonymous",aQr="use-credentials",Dy=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#A=jS;#s=null;#n=null;#o;#i;constructor(e,r={}){super(),Wn.util.markAsUncloneable(this);let A="EventSource constructor";Wn.argumentLengthCheck(arguments,1,A),Fje||(Fje=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Wn.converters.USVString(e),r=Wn.converters.EventSourceInitDict(r,A,"eventSourceInitDict"),this.#o=r.node.dispatcher||r.dispatcher,this.#i={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=kje,n;try{n=new URL(e,s.settingsObject.baseUrl),this.#i.origin=n.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#t=n.href;let i=oQr;r.withCredentials===!0&&(i=aQr,this.#r=!0);let o={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};o.client=kje.settingsObject,o.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],o.cache="no-store",o.initiator="other",o.urlList=[new URL(this.#t)],this.#s=AQr(o),this.#a()}get readyState(){return this.#A}get url(){return this.#t}get withCredentials(){return this.#r}#a(){if(this.#A===KS)return;this.#A=jS;let e={request:this.#s,dispatcher:this.#o},r=A=>{if(!Tje(A))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=A=>{if(Tje(A))if(A.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=A.headersList.get("content-type",!0),n=s!==null?nQr(s):"failure",i=n!=="failure"&&n.essence==="text/event-stream";if(A.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#A=Uje,this.dispatchEvent(new Event("open")),this.#i.origin=A.urlList[A.urlList.length-1].origin;let o=new sQr({eventSourceSettings:this.#i,push:a=>{this.dispatchEvent(iQr(a.type,a.options))}});tQr(A.body.stream,o,a=>{a?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=rQr(e)}#c(){this.#A!==KS&&(this.#A=jS,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#A===jS&&(this.#i.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#i.lastEventId,!0),this.#a())},this.#i.reconnectionTime)?.unref())}close(){Wn.brandCheck(this,t),this.#A!==KS&&(this.#A=KS,this.#n.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Wn.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=Wn.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=Wn.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},Mje={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:jS,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Uje,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:KS,writable:!1}};Object.defineProperties(Dy,Mje);Object.defineProperties(Dy.prototype,Mje);Object.defineProperties(Dy.prototype,{close:QI,onerror:QI,onmessage:QI,onopen:QI,readyState:QI,url:QI,withCredentials:QI});Wn.converters.EventSourceInitDict=Wn.dictionaryConverter([{key:"withCredentials",converter:Wn.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Wn.converters.any},{key:"node",converter:Wn.dictionaryConverter([{key:"reconnectionTime",converter:Wn.converters["unsigned long"],defaultValue:()=>xje},{key:"dispatcher",converter:Wn.converters.any}]),defaultValue:()=>({})}]);Lje.exports={EventSource:Dy,defaultReconnectionTime:xje}});var Yje=h((VHr,Ee)=>{"use strict";var cQr=hE(),Pje=KR(),uQr=ey(),lQr=tJe(),gQr=nJe(),dQr=nI(),hQr=bse(),EQr=SJe(),fQr=MJe(),CQr=_Je(),Oje=Ct(),LG=ut(),{InvalidArgumentError:MG}=Oje,Ny=B6e(),IQr=Ym(),BQr=ane(),{MockCallHistory:QQr,Mock Line truncated
`)}close(){this.#s.close()}get(e){_6(e);let r=this.#d(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){_6(e);let s=this.#l(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#d(e,!0);o?this.#i.run(n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#n.run(s,e.method,n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){_6(e),Utt(r);let s=0,n=[],i=this;return new Mtt({decodeStrings:!0,write(o,a,A){s+=o.byteLength,s<i.#e?n.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:n}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#l(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#l(e){return`${e.origin}/${e.path}`}#d(e,r=!1){let s=this.#l(e),{headers:n,method:i}=e,o=this.#r.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)continue;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!Ltt(n[l],u[l])){c=!1;break}}if(c)return A}}};function Ltt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var Bd=E((pvt,Bge)=>{"use strict";var{kConstruct:vtt}=et(),{kEnumerableProperty:Ff}=Be(),{iteratorMixin:Ptt,isValidHeaderName:dC,isValidHeaderValue:pge}=Cn(),{webidl:Oe}=Lr(),G6=w("node:assert"),rS=w("node:util");function fge(t){return t===10||t===13||t===9||t===32}function mge(t){let e=0,r=t.length;for(;r>e&&fge(t.charCodeAt(r-1));)--r;for(;r>e&&fge(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Ege(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw Oe.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});Y6(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)Y6(t,r[s],e[r[s]])}else throw Oe.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function Y6(t,e,r){if(r=mge(r),dC(e)){if(!pge(r))throw Oe.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Oe.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Ige(t)==="immutable")throw new TypeError("immutable");return nS(t).append(e,r,!1)}function Ott(t){let e=nS(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 Cge(t,e){return t[0]<e[0]?-1:1}var sS=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase(),i=this.headersMap.get(n);if(i){let o=n==="cookie"?"; ":", ";this.headersMap.set(n,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(n,{name:e,value:r});n==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase();n==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(n,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:s}of this.headersMap.values())e[r]=s;return e}rawValues(){return this.hea Line truncated
${i}`;break;case"retry":Npe(i)&&(r[n]=i);break;case"id":Spe(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&Npe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Spe(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}}};Tpe.exports={EventSourceStream:x5}});var vpe=E((Hvt,Lpe)=>{"use strict";var{pipeline:tot}=w("node:stream"),{fetching:rot}=mC(),{makeRequest:sot}=Uf(),{webidl:hs}=Lr(),{EventSourceStream:not}=xpe(),{parseMIMEType:iot}=ui(),{createFastMessageEvent:oot}=xS(),{isNetworkError:Rpe}=gC(),{kEnumerableProperty:xd}=Be(),{environmentSettingsObject:Dpe}=Cn(),kpe=!1,Fpe=3e3,bC=0,Mpe=1,wC=2,aot="anonymous",Aot="use-credentials",Vf=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#s=!1;#r=bC;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),hs.util.markAsUncloneable(this);let s="EventSource constructor";hs.argumentLengthCheck(arguments,1,s),kpe||(kpe=!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,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=Dpe,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=aot;r.withCredentials===!0&&(o=Aot,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Dpe.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=sot(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===wC)return;this.#r=bC;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!Rpe(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(Rpe(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?iot(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=Mpe,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new not({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(oot(A.type,A.options))}});tot(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=rot(e)}#c(){this.#r!==wC&&(this.#r=bC,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===bC&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){hs.brandCheck(this,t),this.#r!==wC&&(this.#r=wC,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=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}},Upe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:bC,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Mpe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:wC,writable:!1}};Object.defineProperties(Vf,Upe);Object.defineProperties(Vf.prototype,Upe);Object.defineProperties(Vf.prototype,{close:xd,onerror:xd,onmessage:xd,onopen:xd,readyState:xd,url:xd,withCredentials:xd});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:()=>Fpe},{key:"dispatcher",converter:hs.converters.any}]),defaultValue:()=>({})}]);Lpe.exports={EventSource:Vf,defaultReconnectionTime:Fpe}});var Ype=E((Gvt,W)=>{"use strict";var cot=Jc(),Ope=QE(),uot=id(),lot=Que(),dot=Sue(),hot=Ad(),got=h_(),fot=c_(),pot=dle(),mot=Cle(),Eot=yle(),_pe=Ce(),GS=Be(),{InvalidArgumentError:HS}=_pe,Jf=sde(),Cot=zl(),Iot=Z_(),{MockCallHistory:Bot 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 kot(e,r).catch(s=>{throw Ppe?Gpe(s,Ppe):s&&typeof s=="object"&&Error.captureStackTrace(s,W.exports.fetch),s})};W.exports.Headers=Bd().Headers;W.exports.Response=gC().Response;W.exports.Request=Uf().Request;W.exports.FormData=uN().FormData;var{setGlobalOrigin:Fot,getGlobalOrigin:Mot}=z4();W.exports.setGlobalOrigin=Fot;W.exports.getGlobalOrigin=Mot;var{CacheStorage:Uot}=bfe(),{kConstruct:Lot}=et();W.exports.caches=new Uot(Lot);var{deleteCookie:vot,getCookies:Pot,getSetCookies:Oot,setCookie:_ot,parseCookie:Hot}=Lfe();W.exports.deleteCookie=vot;W.exports.getCookies=Pot;W.exports.getSetCookies=Oot;W.exports.setCookie=_ot;W.exports.parseCookie=Hot;var{parseMIMEType:Got,serializeAMimeType:Yot}=ui();W.exports.parseMIMEType=Got;W.exports.serializeAMimeType=Yot;var{CloseEvent:qot,ErrorEvent:Vot,MessageEvent:Jot}=xS(),{WebSocket:Wot,ping:zot}=fpe();W.exports.WebSocket=Wot;W.exports.CloseEvent=qot;W.exports.ErrorEvent=Vot;W.exports.MessageEvent=Jot;W.exports.ping=zot;W.exports.WebSocketStream=Qpe().WebSocketStream;W.exports.WebSocketError=b5().WebSocketError;W.exports.request=NC(Jf.request);W.exports.stream=NC(Jf.stream);W.exports.pipeline=NC(Jf.pipeline);W.exports.connect=NC(Jf.connect);W.exports.upgrade=NC(Jf.upgrade);W.exports.MockClient=Iot;W.exports.MockCallHistory=Bot;W.exports.MockCallHistoryLog=yot;W.exports.MockPool=bot;W.exports.MockAgent=Qot;W.exports.SnapshotAgent=wot;W.exports.mockErrors=Not;var{EventSource:Kot}=vpe();W.exports.EventSource=Kot;function jot(){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=jot});var SC=E(ou=>{"use strict";ou.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");ou.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");ou.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";ou.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);ou.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);ou.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());ou.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 Vpe=E((Vvt,qpe)=>{"use strict";var{asciiLowercase:YS,solelyContainsHTTPTokenCodePoints:Xot,soleyContainsHTTPQuotedStringTokenCodePoints:Zot}=SC();qpe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=YS(String(e)),this._map.get(e)}has(e){return e=YS(String(e)),this._map.has(e)}set(e,r){if(e=YS(String(e)),r=String(r),!Xot(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Zot(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=YS(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 zpe=E((Jvt,Wpe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:$ot,removeTrailingHTTPWhitespace:Jpe,isHTTPWhitespaceChar:eat,solelyContainsHTTPTokenCodePoints:R5,soleyContainsHTTPQuotedStringTokenCodePoints:tat,asciiLowercase:D5,collectAnHTTPQuotedString:rat}=SC();Wpe.exports=t=>{t=$ot(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!R5(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=Jpe(s),s.length===0||!R5(s))return null;let n={type:D5(r),subtype:D5(s),parameters:new Map};for(;e<t.length;){for(++e;eat(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=D5(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=rat(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=Jpe(o),o==="")continue}i.length>0&&R5(i)&&tat(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var jpe=E((Wvt,Kpe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:sat}=SC();Kpe.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+="=",(!sat(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var eme=E((Kvt,$pe)=>{"use strict";var nat=Vpe(),iat=zpe(),oat=jpe(),{asciiLowercase:Xpe,solelyContainsHTTPTokenCodePoints:Zpe}=SC();$pe.exports=class{constructor(e){e=String(e);let r=iat(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 nat(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=Xpe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Zpe(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=Xpe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Zpe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return oat(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 P5 from"os";function NA(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function zS(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 au(t,e,r){let s=new KS(t,e,r);process.stdout.write(s.toString()+P5.EOL)}function jS(t,e=""){au(t,{},e)}var v5="::",KS=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=v5+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 PR(t){process.exitCode=LR.Failure,Pu(t)}function WA(){return process.env.RUNNER_DEBUG==="1"}function M(t){au("debug",{},t)}function Pu(t,e={}){au("error",zS(e),t instanceof Error?t.toString():t)}function ut(t,e={}){au("warning",zS(e),t instanceof Error?t.toString():t)}function he(t){process.stdout.write(t+FW.EOL)}function MW(t){jS("group",t)}function UW(){jS("endgroup")}function jp(t,e){if(process.env.GITHUB_STATE||"")return _5("STATE",H5(t,e));au("save-state",{name:t},NA(e))}function zA(t){return process.env[`STATE_${t}`]||""}import{readFileSync as txe,existsSync as rxe}from"fs";import{EOL as sxe}from"os";var Sh=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(rxe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(txe(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${sxe}`)}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 GR=Ie(_W(),1),HW=Ie(wB(),1),pxe=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 GW(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 YW(t){return new GR.HttpClient().getAgent(t)}function mxe(t){return new GR.HttpClient().getAgentDispatcher(t)}function qW(t){let e=mxe(t);return(s,n)=>pxe(this,void 0,void 0,function*(){return(0,HW.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function VW(){return process.env.GITHUB_API_URL||"https://api.github.com"}function YR(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 KA(){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 OB(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)=>OB.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 JW(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 WW(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 zW=Function.bind,KW=zW.bind(zW);function jW(t,e,r){let s=KW(WW,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]=KW(JW,null).apply(null,i)})}function Cxe(){let t=Symbol("Singular"),e={registry:{}},r=OB.bind(null,e,t);return jW(r,e,t),r}function Ixe(){let t={registry:{}},e=OB.bind(null,t);return jW(e,t),e}var XW={Singular:Cxe,Collection:Ixe};var Bxe="0.0.0-development",yxe=`octokit-endpoint.js/${Bxe} ${KA()}`,Qxe={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":yxe},mediaType Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var i2e=class extends Error{constructor(t,e,r){super(n2e(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},o2e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],a2e=["query","method","url"],Bz=/\/api\/v3\/?$/;function A2e(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(a2e.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)=>o2e.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 Bz.test(i)&&(n.url=i.replace(Bz,"/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 i2e(n,a,o.data)}return o.data.data})}function ZR(t,e){let r=t.defaults(e);return Object.assign((n,i)=>A2e(r,n,i),{defaults:ZR.bind(null,r),endpoint:r.endpoint})}var Sut=ZR($p,{headers:{"user-agent":`octokit-graphql.js/${s2e} ${KA()}`},method:"POST",url:"/graphql"});function yz(t){return ZR(t,{method:"POST",url:"/graphql"})}var $R="(?:[a-zA-Z0-9_-]+)",Qz="\\.",bz=new RegExp(`^${$R}${Qz}${$R}${Qz}${$R}$`),c2e=bz.test.bind(bz);async function u2e(t){let e=c2e(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 l2e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function d2e(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=l2e(t),e(n)}var wz=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(u2e.bind(null,e),{hook:d2e.bind(null,e)})};var eD="7.0.6";var Nz=()=>{},h2e=console.warn.bind(console),g2e=console.error.bind(console);function f2e(t={}){return typeof t.debug!="function"&&(t.debug=Nz),typeof t.info!="function"&&(t.info=Nz),typeof t.warn!="function"&&(t.warn=h2e),typeof t.error!="function"&&(t.error=g2e),t}var Sz=`octokit-core.js/${eD} ${KA()}`,GB=class{static VERSION=eD;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 XW.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} ${Sz}`:Sz,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=yz(this.request).defaults(s),this.log=f2e(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=wz(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 tD="17.0.0";var p2e={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}
`)}
`:`${Mz(t.status,e)}
${TOt(e)}
${AD[t.status]}
`}function _z(t){return t==="enabled"||t==="read-only"||t==="write-only"}function Mz(t,e){if(!_z(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 N2e(t){return t?b2e[t]:void 0}function S2e(t){return t?w2e[t]:void 0}function T2e(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${Is}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${Q2e}) for terms of use and opt-out instructions.`:`**[Basic Caching](${Is}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${Is}#enhanced-caching)** provider.`}function x2e(t){let e=t.entries,r=e.filter(u=>u.restoredKey).length,s=e.filter(u=>u.savedKey).length,n=Hz(e)?`Entries: ${r} restored (${YB(e,u=>u.restoredSize)}Mb), ${s} saved (${YB(e,u=>u.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${s} saved - Expand for more details`,i=t.status==="enabled"?N2e(t.cleanup):void 0,o=S2e(t.projectCache),a=R2e(t.entries),A=`<pre>
${D2e(t.entries)}</pre>`,c=[AD[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 Hz(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function R2e(t){return Hz(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>${Uz(t,e=>e.restoredSize)}</td>
<td>${YB(t,e=>e.restoredSize)}</td>
<td>${Lz(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>${Uz(t,e=>e.savedSize)}</td>
<td>${YB(t,e=>e.savedSize)}</td>
<td>${Lz(t,e=>e.savedTime)}</td>
</tr>
</table>
`}function kOt(t){return t.cacheEntries.map(e=>`Entry: ${e.entryName}
</table>`:""}function D2e(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: ${vz(e.restoredSize)}
Time: ${Pz(e.restoredTime)}
${e.restoredOutcome}
Saved Key : ${e.savedKey??""}
Size: ${Rke(e.savedSize)}
Time: ${Ske(e.savedTime)}
${xOt(e,t.cacheReadOnly)}
Size: ${vz(e.savedSize)}
Time: ${Pz(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 Uz(t,e){return t.filter(r=>e(r)).length}function YB(t,e){let r=t.map(s=>e(s)??0).reduce((s,n)=>s+n,0);return Math.round(r/(1024*1024))}function Lz(t,e){return t.map(r=>e(r)??0).reduce((r,s)=>r+s,0)}function vz(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function Pz(t){return t===void 0||t===0?"":`${t} ms`}import*as k0 from"path";import*as Fh from"fs";function cD(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,M(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,M(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,M(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,M(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,M(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as zB from"path";import*as Dh from"path";import Hu from"assert";var jA=process.platform==="win32";function Ua(t){if(t=Ma(t),jA&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Dh.dirname(t);return jA&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Ma(e)),e}function qB(t,e){if(Hu(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Hu(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),em(e))return e;if(jA){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Hu(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(Ri(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Hu(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Hu(em(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||jA&&t.endsWith("\\")||(t+=Dh.sep),t+e}function em(t){return Hu(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Ri(t),jA?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function tm(t){return Hu(t,"isRooted parameter 'itemPath' must not be empty"),t=Ri(t),jA?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Ri(t){return t=t||"",jA?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function Ma(t){return t?(t=Ri(t),!t.endsWith(Dh.sep)||t===Dh.sep||jA&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Di;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Di||(Di={}));var Gz=process.platform==="win32";function lD(t){t=t.filter(s=>!s.negate);let e={};for(let s of t){let n=Gz?s.searchPath.toUpperCase():s.searchPath;e[n]="candidate"}let r=[];for(let s of t){let n=Gz?s.searchPath.toUpperCase():s.searchPath;if(e[n]==="included")continue;let i=!1,o=n,a=Ua(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Ua(o)}i||(r.push(s.searchPath),e[n]="included")}return r}function Yz(t,e){let r=Di.None;for(let s of t)s.negate?r&=~s.match(e):r|=s.match(e);return r}function qz(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as dK from"os";import*as kh from"path";var hK=Ie(lK(),1);import Vu from"assert";import*as Yu from"path";import nm from"assert";var sRe=process.platform==="win32",qu=class{constructor(e){if(this.segments=[],typeof e=="string")if(nm(e,"Parameter 'itemPath' must not be empty"),e=Ma(e),!tm(e))this.segments=e.split(Yu.sep);else{let r=e,s=Ua(r);for(;s!==r;){let n=Yu.basename(r);this.segments.unshift(n),r=s,s=Ua(r)}this.segments.unshift(r)}else{nm(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let s=e[r];nm(s,"Parameter 'itemPath' must not contain any empty segments"),s=Ri(e[r]),r===0&&tm(s)?(s=Ma(s),nm(s===Ua(s),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(s)):(nm(!s.includes(Yu.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(s))}}}toString(){let e=this.segments[0],r=e.endsWith(Yu.sep)||sRe&&/^[A-Z]:$/i.test(e);for(let s=1;s<this.segments.length;s++)r?r=!1:e+=Yu.sep,e+=this.segments[s];return e}};var{Minimatch:nRe}=hK.default,La=process.platform==="win32",im=class t{constructor(e,r=!1,s,n){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{s=s||[],Vu(s.length,"Parameter 'segments' must not empty");let c=t.getLiteral(s[0]);Vu(c&&em(c),"Parameter 'segments' first element must be a root path"),i=new qu(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 im(i));return s.searchPaths.push(...lD(s.patterns)),s})}static stat(e,r,s){return mD(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Fh.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){M(`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 Fh.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Fh.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){M(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var ARe=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 gK(t,e){return ARe(this,void 0,void 0,function*(){return yield WB.create(t,e)})}var aX=Ie(iX(),1);import*as uy from"crypto";import*as vh from"fs";import*as Ju from"path";import*as AX from"util";var dm;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(dm||(dm={}));var ts;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(ts||(ts={}));var nn;(function(t){t.GNU="gnu",t.BSD="bsd"})(nn||(nn={}));var ay=2,Ay=5e3,PD=5e3,OD=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,oX=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,hm="cache.tar",_D="manifest.txt",Edt=10*Math.pow(1024,3),cy="cache read denied:";var Lh=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())})},mFe=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)}},EFe="1.0";function gm(){return Lh(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=Ju.join(s,"actions","temp")}let r=Ju.join(e,uy.randomUUID());return yield xB(r),r})}function po(t){return vh.statSync(t).size}function HD(t){return Lh(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 gK(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=mFe(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){n=l.value,c=!1;let g=Ju.relative(a,n).replace(new RegExp(`\\${Ju.sep}`,"g"),"/");M(`Matched: ${g}`),g===""?o.push("."):o.push(`${g}`)}}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 fm(t){return Lh(this,void 0,void 0,function*(){return AX.promisify(vh.unlink)(t)})}function cX(t){return Lh(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),M(`Checking ${e} ${r.join(" ")}`);try{yield kB(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){M(n.message)}return s=s.trim(),M(s),s})}function pm(){return Lh(this,void 0,void 0,function*(){let t=yield cX("zstd",["--quiet"]),e=aX.clean(t);return M(`zstd version: ${e}`),t===""?ts.Gzip:ts.ZstdWithoutLong})}function ec(t){return t===ts.Gzip?dm.Gzip:dm.Zstd}function uX(){return Lh(this,void 0,void 0,function*(){return vh.existsSync(OD)?OD:(yield cX("tar")).toLowerCase().includes("gnu tar")?ka("tar"):""})}function GD(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Ph(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(EFe),uy.createHash("sha256").update(s.join("|")).digest("hex")}function lX(){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 gg from"fs";import{URL as t4e}from"url";var mo=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as CFe}from"node:os";import IFe from"node:util";import BFe from"node:process";function dX(t,...e){BFe.stderr.write(`${IFe.format(t,...e)}${CFe}`)}import mm from"node:process";function dy(t){return mm.env[t]}var hX=typeof mm.versions.deno=="string"&&mm.versions.deno.length>0,gX=typeof mm.versions.bun=="string"&&mm.versions.bun.length>0,hy=!0;var fX=dy("DEBUG"),mX,YD=[],qD=[],gy=[];fX&&VD(fX);var EX=Object.assign(t=>CX(t),{enable:VD,enabled:JD,disable:yFe,log:dX});function VD(t){mX=t,YD=[],qD=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?qD.push(r.substring(1)):YD.push(r);for(let r of gy)r.enabled=JD(r.namespace)}function JD(t){if(t.endsWith("*"))return!0;for(let e of qD)if(pX(t,e))return!1;for(let e of YD)if(pX(t,e))return!0;return!1}function pX(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],g="";for(let f of e)f==="*"&&g==="*"||(g=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 yFe(){let t=mX||"";return VD(""),t}function CX(t){let e=Object.assign(r,{enabled:JD(t),destroy:QFe,log:EX.log,namespace:t,extend:bFe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return gy.push(e),e}function QFe(){let t=gy.indexOf(this);return t>=0?(gy.splice(t,1),!0):!1}function bFe(t){let e=CX(`${this.namespace}:${t}`);return e.log=this.log,e}var Oh=EX;var WD=["verbose","info","warning","error"],IX={verbose:400,info:300,warning:200,error:100};function BX(t,e){e.log=(...r)=>{t.log(...r)}}function yX(t){return WD.includes(t)}function fy(t){let e=new Set,r=dy(t.logLevelEnvVarName),s,n=Oh(t.namespace);n.log=(...u)=>{Oh.log(...u)};function i(u){if(u&&!yX(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${WD.join(",")}`);s=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Oh.enable(l.join(","))}r&&(yX(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${WD.join(", ")}.`));function o(u){return!!(s&&IX[u.level]<=IX[s])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(BX(u,d),o(d)){let g=Oh.disable();Oh.enable(g+","+d.namespace)}return e.add(d),d}function A(){return s}function c(u){let l=n.extend(u);return BX(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 QX=fy({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),wFe=QX.logger;function Em(t){return QX.createClientLogger(t)}function py(t){return t.toLowerCase()}function NFe(t){return String(t).trim().replace(/[\r\n]/g,"")}function*SFe(t){for(let e of t.values())yield[e.name,e.value]}var zD=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(py(e),{name:e,value:NFe(r)})}get(e){return this._headersMap.get(py(e))?.value}has(e){return this._headersMap.has(py(e))}delete(e){this._ Line truncated
${DFe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function _h(t){return t instanceof rs?!0:zu(t)&&t.name==="RestError"}function Bs(t,e){return Buffer.from(t,e)}import ZD from"node:http";import $D from"node:https";import NX from"node:zlib";import{Transform as kFe}from"node:stream";var ys=Em("ts-http-runtime");var FFe={};function Cm(t){return t&&typeof t.pipe=="function"}function SX(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 TX(t){return t&&typeof t.byteLength=="number"}var Cy=class extends kFe{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}},ek=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new mo("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 ki;ys.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=vFe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new Cy(f);p.on("error",I=>{ys.error("Error in upload progress",I)}),Cm(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let u=MFe(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?UFe(c,u):c;let g=e.onDownloadProgress;if(g){let f=new Cy(g);f.on("error",p=>{ys.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 LFe(A),d}finally{if(e.abortSignal&&s){let c=Promise.resolve();Cm(a)&&(c=SX(a));let u=Promise.resolve();Cm(A)&&(u=SX(A)),Promise.all([c,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(l=>{ys.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?ZD.request(a,A):$D.request(a,A);u.once("error",l=>{c(new rs(l.message,{code:l.code??rs.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new mo("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),s&&Cm(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):TX(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer,s.byteOffset,s.byteLength):Buffer.from(s)):(ys.error("Unrecognized body type",s),c(new rs("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?ZD.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new ZD.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return $D.globalAgent;let n=e.tlsSettings??FFe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(ys.info("No cached TLS Agent exist, creating a new Agent"),i=new $D.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function MFe(t){let e=on();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 UFe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=NX.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=NX.createInflate();return t.pipe(s),s}return t}function LFe(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 rs(`Error reading response as text: ${n.message}`,{code:rs.PARSE_ERROR}))})})}function vFe(t){return t?Buffer.isBuffer(t)?t.length:Cm(t)?null:TX(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function xX(){return new ek}function Iy(){return xX()}var tk="logPolicy";function By(t={}){let e=t.logger??ys.info,r=new ki({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:tk,async sendRequ Line truncated
`;return e}function nUe(t){return t instanceof Uint8Array?t.byteLength:ym(t)?t.size===-1?void 0:t.size:void 0}function iUe(t){let e=0;for(let r of t){let s=nUe(r);if(s===void 0)return;e+=s}return e}async function oUe(t,e,r){let s=[Bs(`--${r}`,"utf-8"),...e.flatMap(i=>[Bs(`\r
`,"utf-8"),Bs(sUe(i.headers),"utf-8"),Bs(`\r
`,"utf-8"),i.body,Bs(`\r
--${r}`,"utf-8")]),Bs(`--\r
\r
`,"utf-8")],n=iUe(s);n&&t.headers.set("Content-Length",n),t.body=await BZ(s)}var Qm="multipartPolicy",aUe=70,AUe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function cUe(t){if(t.length>aUe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!AUe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Yy(){return{name:Qm,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?cUe(r):r=rUe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await oUe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function qy(){return Ey()}var yZ=fy({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Ipt=yZ.logger;function _n(t){return yZ.createClientLogger(t)}var Co=_n("core-rest-pipeline");function Ck(t={}){return By({logger:Co.info,...t})}var Ik=Hy;function Bk(t={}){return Gy(t)}import yk from"node:os";import sc from"node:process";function QZ(){return"User-Agent"}async function bZ(t){if(sc&&sc.versions){let e=`${yk.type()} ${yk.release()}; ${yk.arch()}`;sc.versions.bun?t.set("Bun",`${sc.versions.bun} (${e})`):sc.versions.deno?t.set("Deno",`${sc.versions.deno} (${e})`):sc.versions.node&&t.set("Node",`${sc.versions.node} (${e})`)}}var Vy="1.24.0";function mUe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function wZ(){return QZ()}async function Jy(t){let e=new Map;e.set("core-rest-pipeline",Vy),await bZ(e);let r=mUe(e);return t?`${t} ${r}`:r}var NZ=wZ(),SZ="userAgentPolicy";function Qk(t={}){let e=Jy(t.userAgentPrefix);return{name:SZ,async sendRequest(r,s){return r.headers.has(NZ)||r.headers.set(NZ,await e),s(r)}}}var TZ=Symbol("rawContent");function bk(t){return typeof t[TZ]=="function"}function xZ(t){return bk(t)?t[TZ]():t}var Wy=Qm;function wk(){let t=Yy();return{name:Wy,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)bk(s.body)&&(s.body=xZ(s.body));return t.sendRequest(e,r)}}}var Nk=Oy;function Sk(){return _y()}function Tk(t={}){return by(t)}function xk(){return wy()}var bm=class extends Error{constructor(e){super(e),this.name="AbortError"}};function Rk(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new bm(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 NUe="The delay was aborted.";function Jh(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return Rk(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??NUe})}function nc(t){if(zu(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 RZ(t){return zu(t)}function Wh(){return Wu()}var Ze=hy;function ic(t){return fk(t)}function kk(t,e){return Py(t,e)}var DZ="setClientRequestIdPolicy";function Fk(t="x-ms-client-request-id"){return{name:DZ,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function Mk(t){return Ny(t)}function Uk(t){return Sy(t)}var zh={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function kZ(t={}){let e=new Lk(t.parentContext);return t.span&&(e=e.setValue(zh.span,t.span)),t.namespace&&(e=e.setValue(zh.namespace,t.namespace)),e}var Lk=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 MZ=Ie(FZ(),1),Ky=MZ.state;function SUe(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function TUe(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:SUe(),tracingContext:kZ({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function wm(){return Ky.instrumenterImplementation||(Ky.instrumenterImplementation=TUe()),Ky.instrumenterImplementation}function Nm(t){let{namespace:e,packageName:r,packageVersion:s}=t;function n(c,u,l){let d=wm().startSpan(c,{...l,packageName:r,packageVersion:s,tracingContext:u?.tracingOptions?.tracingContext}),g=d.tracingContext,f=d.span;g.getValue(zh.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--),!jLe(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Wt("InvalidTag",l,ss(t,i))}let c=VLe(t,i);if(c===!1)return Wt("InvalidAttr","Attributes for '"+A+"' have open quote.",ss(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=f$(u,e);if(d===!0)s=!0;else return Wt(d.err.code,d.err.msg,ss(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Wt("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",ss(t,o));if(r.length===0)return Wt("InvalidTag","Closing tag '"+A+"' has not been opened.",ss(t,o));{let l=r.pop();if(A!==l.tagName){let d=ss(t,l.tagStartPos);return Wt("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",ss(t,o))}r.length==0&&(n=!0)}}else return Wt("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",ss(t,i));else{let l=f$(u,e);if(l!==!0)return Wt(l.err.code,l.err.msg,ss(t,i-u.length+l.err.line));if(n===!0)return Wt("InvalidXml","Multiple possible root nodes found.",ss(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=g$(t,i);continue}else if(t[i+1]==="?"){if(i=h$(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=zLe(t,i);if(l==-1)return Wt("InvalidChar","char '&' is not expected.",ss(t,i));i=l}else if(n===!0&&!d$(t[i]))return Wt("InvalidXml","Extra text at the end",ss(t,i));t[i]==="<"&&i--}}else{if(d$(t[i]))continue;return Wt("InvalidChar","char '"+t[i]+"' is not expected.",ss(t,i))}if(s){if(r.length==1)return Wt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ss(t,r[0].tagStartPos));if(r.length>0)return Wt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Wt("InvalidXml","Start tag expected.",1);return!0}function d$(t){return t===" "||t===" "||t===`
`||t==="\r"}function h$(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 Wt("InvalidXml","XML declaration allowed only at the start of the document.",ss(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function g$(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 YLe='"',qLe="'";function VLe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===YLe||t[e]===qLe)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 JLe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function f$(t,e){let r=nQ(t,JLe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Wt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",Lm(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Wt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",Lm(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Wt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",Lm(r[n]));let i=r[n][2];if(!KLe(i))return Wt("InvalidAttr","Attribute '"+i+"' is an invalid name.",Lm(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return Wt("InvalidAttr","Attribute '"+i+"' is repeated.",Lm(r[n]))}return!0}function WLe(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 zLe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,WLe(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 Wt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function KLe(t){return eF(t)}function jLe(t){return eF(t)}function ss(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Lm(t){return t.startIndex+t[1].length}var p$={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"},m$={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"},E$={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 Ns("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new Om(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=eg(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(n.removeNSPrefix){let g=l.indexOf(":");g!==-1&&(l=l.substr(g+1))}l=AF(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=cF(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 Ns(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=eg(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=eg(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=cF(t,a,n.removeNSPrefix);if(!u){let F=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${F}"`)}let l=u.tagName,d=u.rawTagName,g=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:g}=AF(n.transformTagName,l,g,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;g.length>0&&g.lastIndexOf("/")===g.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),g=l):g=g.substr(0,g.length-1),f=l!==g);let C=null,b={},S;S=yve(d),l!==e.tagname&&this.matcher.push(l,{},S),l!==g&&f&&(C=this.buildAttributesMap(g,this.matcher,l),C&&(b=Bve(C,n))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let D=a;if(this.isCurrentNodeStopNode){let F="";if(m)a=u.closeIndex;else if(n.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,F=P.tagContent}let U=new Ns(l);C&&(U[":@"]=C),U.add(n.textNodeName,F),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,U,this.readonlyMatcher,D)}else{if(m){({tagName:l,tagExp:g}=AF(n.transformTagName,l,g,n));let F=new Ns(l);C&&(F[":@"]=C),this.addChild(r,F,this.readonlyMatcher,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(l)){let F=new Ns(l);C&&(F[":@"]=C),this.addChild(r,F,this.readonlyMatcher,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let F=new Ns(l);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(F[":@"]=C),this.addChild(r,F,this.readonlyMatcher,D),r=F}s="",a=p}}}else s+=t[a];return e.child};function Tve(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 xve(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 Rve(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 Dve(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function kve(t,e,r=">"){Line truncated
`;function _ve(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(fF(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}function q$(t,e,r,s,n){return!r.sanitizeName||tl(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}function gF(t,e){let r="";e.format&&(r=Ove);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 un(a)):a instanceof un&&s.push(a)}let n=_ve(t,e),i=new yo;return V$(t,e,r,i,s,n)}function V$(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=hF(A,e),A}return""}for(let A=0;A<t.length;A++){let c=t[A],u=fF(c);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:q$(u,!1,e,s,i),g=Hve(c[":@"],e);s.push(d,g);let f=Yve(s,n);if(d===e.textNodeName){let b=c[u];f||(b=e.tagValueProcessor(d,b),b=hF(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],S=fQ(b);o+=`<![CDATA[${S}]]>`,a=!1,s.pop();continue}else if(d===e.commentPropName){let b=c[u][0][e.textNodeName],S=gQ(b);o+=r+`<!--${S}-->`,a=!0,s.pop();continue}else if(d[0]==="?"){let b=Y$(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=Y$(c[":@"],e,f,s,i),m=r+`<${d}${I}`,C;f?C=J$(c[u],e):C=V$(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 Hve(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]=Ac(t[n]),s=!0}return s?r:null}function J$(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=fF(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=Gve(n[":@"],e),a=J$(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Gve(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)}="${Ac(n)}"`}return r}function fF(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 Y$(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:q$(a,!0,e,s,n),c;r?c=t[o]:(c=e.attributeValueProcessor(o,t[o]),c=hF(c,e)),c===!0&&e.suppressBooleanAttributes?i+=` ${A}`:i+=` ${A}="${Ac(c)}"`}return i}function Yve(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 hF(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 pF(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 qve={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 Ts(t){if(this.options=Object.assign({},qve,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 un(r)):r instanceof un&&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 Vve(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 mF(t,e,r,s,n){return!r.sanitizeName||tl(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}Ts.prototype.build=function(t){if(this.options.preserveOrder)return gF(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new yo,r=Vve(t,this.options);return this.j2x(t,0,e,r).val}};Ts.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:mF(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=mF(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 g=""+t[A];g===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+g+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[A],u,"",e,r)}}else if(Array.isArray(t[A])){let l=t[A].length,d="",g="";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)&&(g+=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,g,e)),i+=d}else if(this.options.attributesGroupName&&A===this.options.attributesGroupName){let l=Object.keys(t[A]),d=l.length;for(let g=0;g<d;g++){let f=mF(l[g],!0,this.options,r,s);n+=this.buildAttrPairStr(f,""+t[A][l[g]],a)}}else i+=this.processTextOrObjNode(t[A],u,e,r,s)}return{attrStr:n,val:i}};Ts.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+'="'+Ac(e)+'"'};function Jve(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)}Ts.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]=Ac(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]=Ac(t[s]),r=!0)}return r?e:null};Ts.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(Ee.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===Ee.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(Ee.PREFIX_FOR_STORAGE));r.sort((n,i)=>NQ(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=QQ(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=bQ(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 kt=class extends nl{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new qm(e,r,this)}computeHMACSHA256(e){return nPe("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var il=class extends Error{constructor(e){super(e),this.name="AbortError"}};var lr=_n("storage-common");var Hn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Hn||(Hn={}));var uc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Hn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},iPe=new il("The operation was aborted."),Vm=class extends Qo{retryOptions;constructor(e,r,s=uc){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:uc.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):uc.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:uc.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:uc.maxRetryDelayInMs):uc.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:uc.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:uc.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=yQ(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=cc(n.url,_a.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(lr.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(lr.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 lr.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 lr.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 lr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return lr.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(Ee.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')?(lr.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 Hn.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Hn.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return lr.info(`RetryPolicy: Delay for ${n}ms`),wQ(n,s,iPe)}};var Jm=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Vm(e,r,this.retryOptions)}};var oPe="storageBrowserPolicy";function X$(){return{name:oPe,async sendRequest(t,e){return Ze||((t.method==="GET"||t.method==="HEAD")&&(t.url=cc(t.url,_a.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Ee.COOKIE),t.headers.delete(Ee.CONTENT_LENGTH)),e(t)}}}var aPe="StorageCorrectContentLengthPolicy";function Z$(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Ee.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:aPe,async sendRequest(e,r){return t(e),r(e)}}}var APe="storageRetryPolicy",rg={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Hn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},cPe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],uPe=new il("The operation was aborted.");function $$(t={}){let e=t.retryPolicyType??rg.retryPolicyType,r=t.maxTries??rg.maxTries,s=t.retryDelayInMs??rg.retryDelayInMs,n=t.maxRetryDelayInMs??rg.maxRetryDelayInMs,i=t.secondaryHost??rg.secondaryHost,o=t.tryTimeoutInMs??rg.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return lr.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let g of cPe)if(d.name.toUpperCase().includes(g)||d.message.toUpperCase().inclu Line truncated
`)+`
`+s(i)+n(i),a=lPe("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(Ee.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===Ee.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(Ee.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>NQ(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=QQ(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=bQ(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:dPe,async sendRequest(i,o){return e(i),o(i)}}}var hPe="storageRequestFailureDetailsParserPolicy";function eee(){return{name:hPe,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 gPe}from"node:crypto";var SQ=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return gPe("sha256",this.key).update(e,"utf8").digest("base64")}};var TQ="12.31.0",xQ="2026-02-06";var RQ="https://storage.azure.com/.default",Ha={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Fi="",QF="*",fPe=1*1024*1024;var pPe=4*fPe;var tee="AES256",ree="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",see=["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"],nee=["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"],iee="BlobUsesCustomerSpecifiedEncryption",oee="BlobDoesNotUseCustomerSpecifiedEncryption",aee=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Ga(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 Wm=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function zt(t,e={}){t||(t=new bt);let r=new Wm([],e);return r._credential=t,r}function mPe(t){let e=[EPe,Aee,CPe,IPe,BPe,yPe,bPe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>QPe(n));return{wrappedPolicies:Zk(r),afterRetry:s}}}}function bF(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?$k(e):BF(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${TQ}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=xm({...r,loggingOptions:{additionalAllowedHeaderNames:see,additionalAllowedQueryParameters:nee,logger:mQ.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:pQ,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:CF,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:Nk}),n.addPolicy(Z$()),n.addPolicy($$(r.retryOptions),{phase:"Retry"}),n.addPolicy(eee()),n.addPolicy(X$());let a=mPe(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=wF(t);An(A)?n.addPolicy(Kh({credential:A,scopes:r.audience??RQ, Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Pi(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 E8e(t,e){if(t=gl(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=_o.parse(t.permissions.toString()).toString():n=Ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ze(t.startsOn,!1):"",t.expiresOn?ze(t.expiresOn,!1):"",hl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?vi(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 Pi(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 C8e(t,e){if(t=gl(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=_o.parse(t.permissions.toString()).toString():n=Ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ze(t.startsOn,!1):"",t.expiresOn?ze(t.expiresOn,!1):"",hl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?vi(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 Pi(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 I8e(t,e){if(t=gl(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=_o.parse(t.permissions.toString()).toString():n=Ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ze(t.startsOn,!1):"",t.expiresOn?ze(t.expiresOn,!1):"",hl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ze(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ze(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?vi(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 Pi(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 B8e(t,e){if(t=gl(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=_o.parse(t.permissions.toString()).toString():n=Ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ze(t.startsOn,!1):"",t.expiresOn?ze(t.expiresOn,!1):"",hl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ze(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ze(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?vi(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 Pi(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 y8e(t,e){if(t=gl(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=_o.parse(t.permissions.toString()).toString():n=Ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ze(t.startsOn,!1):"",t.expiresOn?ze(t.expiresOn,!1):"",hl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ze(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ze(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?vi(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 Pi(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 Q8e(t,e){if(t=gl(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=_o.parse(t.permissions.toString()).toString():n=Ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ze(t.startsOn,!1):"",t.expiresOn?ze(t.expiresOn,!1):"",hl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ze(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ze(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?vi(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 Pi(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 hl(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function gl(t){let e=t.version?t.version:xQ;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 i0=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=Wh()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Fi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Fi||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return X.withSpan("BlobLeaseClient-acquireLease",r,async s=>ie(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!==Fi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Fi||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return X.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=ie(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!==Fi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Fi||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return X.withSpan("BlobLeaseClient-releaseLease",e,async r=>ie(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Fi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Fi||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return X.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"}};dg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var ml=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"}};ml.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var h0=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var J8e=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())})},ZL=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);he(`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 Bte(t,e,r){return J8e(this,void 0,void 0,function*(){var s;let n=new Ka(t),i=n.getBlockBlobClient(),o=new ZL((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(),M(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new bb(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw ut(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as Qte from"buffer";import*as Go from"fs";import*as bte from"stream";import*as wte from"util";var wb=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 Nb(t){return t?t>=200&&t<300:!1}function W8e(t){return t?t>=500:!0}function z8e(t){return t?[Dt.BadGateway,Dt.ServiceUnavailable,Dt.GatewayTimeout].includes(t):!1}function K8e(t){return wb(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function yte(t,e,r){return wb(this,arguments,void 0,function*(s,n,i,o=ay,a=Ay,A=void 0){let c="",u=1;for(;u<=o;){let l,d,g=!1;try{l=yield n()}catch(f){A&&(l=A(f)),g=!0,c=f.message}if(l&&(d=i(l),!W8e(d)))return l;if(d&&(g=z8e(d),c=`Cache service responded with ${d}`),M(`${s} - Attempt ${u} of ${o} failed with error: ${c}`),!g){M(`${s} - Error is not retryable`);break}yield K8e(a),u++}throw Error(`${s} failed: ${c}`)})}function g0(t,e){return wb(this,arguments,void 0,function*(r,s,n=ay,i=Ay){return yield yte(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof ho)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function hg(t,e){return wb(this,arguments,void 0,function*(r,s,n=ay,i=Ay){return yield yte(r,s,o=>o.message.statusCode,n,i)})}var Jn=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 j8e(t,e){return Jn(this,void 0,void 0,function*(){yield wte.promisify(bte.pipeline)(t.message,e)})}var Sb=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,M(`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);he(`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||[])M(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function sv(t,e,r){return Rs(this,void 0,void 0,function*(){let s=new t4e(t),n=xte(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield Ste(t,e,n):n.concurrentBlobDownloads?yield Nte(t,e,n):yield Tb(t,e):yield Tb(t,e)})}function Ote(t,e,r){return Rs(this,void 0,void 0,function*(){let s=rv(),n=Ph(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield g0("reserveCache",()=>Rs(this,void 0,void 0,function*(){return s.postJson(p0("caches"),i)}))})}function vte(t,e){return`bytes ${t}-${e}/*`}function i4e(t,e,r,s,n){return Rs(this,void 0,void 0,function*(){M(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${vte(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":vte(s,n)},o=yield hg(`uploadChunk (start: ${s}, end: ${n})`,()=>Rs(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Nb(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function o4e(t,e,r,s){return Rs(this,void 0,void 0,function*(){let n=po(r),i=p0(`caches/${e.toString()}`),o=gg.openSync(r,"r"),a=$L(s),A=GD("uploadConcurrency",a.uploadConcurrency),c=GD("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];M("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Rs(this,void 0,void 0,function*(){for(;l<n;){let d=Math.min(n-l,c),g=l,f=l+d-1;l+=c,yield i4e(t,i,()=>gg.createReadStream(r,{fd:o,start:g,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),g,f)}})))}finally{gg.closeSync(o)}})}function a4e(t,e,r){return Rs(this,void 0,void 0,function*(){let s={size:r};return yield g0("commitCache",()=>Rs(this,void 0,void 0,function*(){return t.postJson(p0(`caches/${e.toString()}`),s)}))})}function nv(t,e,r,s){return Rs(this,void 0,void 0,function*(){if($L(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Bte(r,e,s)}else{let i=rv();M("Upload cache"),yield o4e(i,t,e,s),M("Commiting cache");let o=po(e);he(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield a4e(i,t,o);if(!Nb(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);he("Cache saved successfully")}})}var Fre=Ie(Nre(),1),Xt=Ie(jt(),1),hn=Ie(jt(),1),yl=Ie(jt(),1),Ql=Ie(jt(),1),bl=Ie(jt(),1);var Zv=Ie(jt(),1),$v=Ie(jt(),1),Rre=Ie(jt(),1),Dre=Ie(jt(),1),kre=Ie(jt(),1);var Kv=Ie(jt(),1),jv=Ie(jt(),1),Sre=Ie(jt(),1),Tre=Ie(jt(),1),xre=Ie(jt(),1),Xv=class extends xre.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,Tre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Sre.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?jv.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,Kv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Kv.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?jv.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},f1=new Xv;var eP=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:()=>f1}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Dre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Rre.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(f1.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?$v.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,Zv.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)f1.internalBinaryWrite(e.scope[i],r.tag(2,Zv.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?$v.UnknownFieldHandler.onWrit Line truncated
`));let s=yield fP(r,"create");yield pP(s,t)})}var Rg=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())})},Hi=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},wl=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},CP="cache write denied:",E1=class t extends wl{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},vre=cy,C1=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},I1=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Pre(t){if(!t||t.length===0)throw new Hi("Path Validation Error: At least one directory or file path is required")}function IP(t){if(t.length>512)throw new Hi(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Hi(`Key Validation Error: ${t} cannot contain commas.`)}function Ore(){return f0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function _re(t,e,r,s){return Rg(this,arguments,void 0,function*(n,i,o,a,A=!1){let c=f0();M(`Cache service version: ${c}`),Pre(n);let u=tv();if(!Dte(u)){he(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),M(`Skipped restore for paths [${n.join(", ")}] with primary key '${i}'.`);return}return c==="v2"?yield b_e(n,i,o,a,A):yield Q_e(n,i,o,a,A)})}function Q_e(t,e,r,s){return Rg(this,arguments,void 0,function*(n,i,o,a,A=!1){var c;o=o||[];let u=[i,...o];if(M("Resolved Keys:"),M(JSON.stringify(u)),u.length>10)throw new Hi("Key Validation Error: Keys are limited to a maximum of 10.");for(let g of u)IP(g);let l=yield pm(),d="";try{let g;try{g=yield Pte(u,n,{compressionMethod:l,enableCrossOsArchive:A})}catch(p){let I=(c=p?.message)!==null&&c!==void 0?c:"";throw I.includes(vre)?new C1(I):p}if(!g?.archiveLocation)return;if(a?.lookupOnly)return he("Lookup only - skipping download"),g.cacheKey;d=k0.join(yield gm(),ec(l)),M(`Archive Path: ${d}`),yield sv(g.archiveLocation,d,a),WA()&&(yield D0(d,l));let f=po(d);return he(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield mP(d,l),he("Cache restored successfully"),g.cacheKey}catch(g){let f=g;if(f.name===Hi.name)throw g;f instanceof ho&&typeof f.statusCode=="number"&&f.statusCode>=500?Pu(`Failed to restore: ${g.message}`):ut(`Failed to restore: ${g.message}`)}finally{try{yield fm(d)}catch(g){M(`Failed to delete archive: ${g}`)}}})}function b_e(t,e,r,s){return Rg(this,arguments,void 0,function*(n,i,o,a,A=!1){var c;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(M("Resolved Keys:"),M(JSON.stringify(u)),u.length>10)throw new Hi("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)IP(d);let l="";try{let d=gP(),g=yield pm(),f={key:i,restoreKeys:o,version:Ph(n,g,A)},p;try{p=yield d.GetCacheEntryDownloadURL(f)}catch(C){let b=(c=C?.message)!==null&&c!==void 0?c:"";throw b.includes(vre)?new C1(b):C}if(!p.ok){M(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==p.matchedKey?he(`Cache hit for restore-key: ${p.matchedKey}`):he(`Cache hit for: ${p.matchedKey}`),a?.lookupOnly)return he("Lookup only - skipping download"),p.matchedKey;l=k0.join(yield gm(),ec(g)),M(`Archive path: ${l}`),M(`Starting download of archive to: ${l}`),yield sv(p.signedDownloadUrl,l,a);let m=po(l);return he(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),WA()&&(yield D0(l,g)),yield mP(l,g),he("Cache restored successfully"),p.matchedKey}catch(d){let g=d;if(g.name===Hi.name)throw d;g instanceof ho&&typeof g.statusCode=="number"&&g.statusCode>=500?Pu(`Failed to restore: ${d.message}`):ut(`Failed to restore: ${d.message}`)}finally{try{l&&(yield fm(l))}catch(d){M(`Failed to delete archive: ${d}`)}}})}function Hre(t,e,r){return Rg(this,arguments,void 0,function*(s,n,i,o=!1){let a=f0();M(`Cache service version: ${a}`),Pre(s),IP(n);let A=tv();return kte(A)?a==="v2"?yield N_e(s,n,i,o):yield w_e(s,n,i,o):(he(`Cache save skipped: the effective cache-mode '${A}' does not permit writes.`),M(`Skipped save for paths [${s.join(", ")}] with key '${n}'.`),-1)})}function w_e(t,e,r){return Rg(this,arguments,void 0,function*(s,n,i,o=!1){var a,A,c,u,l,d;let g=yield pm(),f=-1,p=yield HD(s);if(M("Cache Paths:"),M(`${JSON.stringify(p)}`),p.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let I=yield gm(),m=k0.join(I,ec(g));M(`Archive Path: ${m}`);try{yield EP(I,p,g),WA()&&(yield D0(m,g));let C=10*1024*1024*1024 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=NP(),i=aD(n);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:s})}catch(o){if(o instanceof Error&&o.name==="HttpError")ut(M_e(o));else throw o}}function M_e(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 U_e(t){return`${v_e()}
${O_e(t)}`}function L_e(){let t=qre();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function v_e(){let t=Yre();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>${bP()}</code> action. Follow the links for upgrade details.
<ul>
${t.map(e=>`<li>${t$t(e)}</li>`).join("")}
${t.map(e=>`<li>${P_e(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 P_e(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function O_e(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=>H_e(e)).join("")}
</table>
`}function A$t(t){return`
`}function __e(t){return t.some(e=>e.buildFailed)}function H_e(t){return`
<tr>
<td>${g8e(t.rootProjectName,30)}</td>
<td>${g8e(t.requestedTasks,60)}</td>
<td>${Wre(t.rootProjectName,30)}</td>
<td>${Wre(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'>${G_e(t)}</td>
<td>${Y_e(t)}</td>
</tr>`}function G_e(t){return t.buildFailed?":x:":":white_check_mark:"}function Y_e(t){return t.buildScanFailed?SP({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?SP({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):SP({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function SP({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 Wre(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function q_e(){let t=Rh;if(t.payload.pull_request==null){he("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;he(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=Kre(t),s=aD(NP()),{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 ut(`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(()=>he(`Successfully minimized (id:${u.id}, url:${u.url})`)).catch(l=>ut(`Failed to minimize (id:${u.id}, url:${u.url}, error:${l?.message||l})`)));await Promise.allSettled(c)}function Kre(t){return`<!-- gradle-job-summary: ${B1.constructJobCorrelator(t.workflow,t.job,wP())} -->`}var jre=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 jn from"fs";import*as Za from"path";function Xre(){return $re().map(e=>{let r=jn.readFileSync(e,"utf8"),s=JSON.parse(r);return W_e(e,s),s})}function Zre(){$re().forEach(K_e)}function $re(){let t=Za.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return jn.existsSync(t)?jn.readdirSync(t).map(e=>Za.resolve(t,e)).filter(e=>Za.extname(e)===".json"&&!z_e(e)):[]}function W_e(t,e){let r=Za.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!jn.existsSync(r))return;let s=Za.resolve(r,Za.basename(t));if(jn.existsSync(s)){let n=jn.readFileSync(s,"utf8"),i=JSON.parse(n);Object.assign(e,i)}}function z_e(t){let e=`${t}.processed`;return jn.existsSync(e)}function K_e(t){let e=`${t}.processed`;jn.writeFileSync(e,"")}import*as Fse from"fs";import*as Mse from"path";import{pathToFileURL as f5e}from"url";import*as Fg from"fs";function TP(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,M(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,M(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,M(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,M(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,M(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as x1 from"path";import*as Dg from"path";import Sl from"assert";var Ic=process.platform==="win32";function eA(t){if(t=$a(t),Ic&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Dg.dirname(t);return Ic&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=$a(e)),e}function N1(t,e){if(Sl(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Sl(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),U0(e))return e;if(Ic){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Sl(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(Gi(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Sl(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Sl(U0(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Ic&&t.endsWith("\\")||(t+=Dg.sep),t+e}function U0(t){return Sl(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Gi(t),Ic?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function L0(t){return Sl(t,"isRooted parameter 'itemPath' must not be empty"),t=Gi(t),Ic?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Gi(t){return t=t||"",Ic?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function $a(t){return t?(t=Gi(t),!t.endsWith(Dg.sep)||t===Dg.sep||Ic&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Yi;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Yi||(Yi={}));var ese=process.platform==="win32";function RP(t){t=t.filter(s=>!s.negate);let e={};for(let s of t){let n=ese?s.searchPath.toUpperCase():s.searchPath;e[n]="candidate"}let r=[];for(let s of t){let n=ese?s.searchPath.toUpperCase():s.searchPath;if(e[n]==="included")continue;let i=!1,o=n,a=eA(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=eA(o)}i||(r.push(s.searchPath),e[n]="included")}return r}function tse(t,e){let r=Yi.None;for(let s of t)s.negate?r&=~s.match(e):r|=s.match(e);return r}function rse(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as yse 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 H0(i));return s.searchPaths.push(...RP(s.patterns)),s})}static stat(e,r,s){return PP(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Fg.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){M(`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 Fg.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Fg.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){M(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};import*as OP from"crypto";import*as R1 from"fs";import*as Qse from"stream";import*as bse from"util";import*as wse from"path";var A5e=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())})},c5e=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 Nse(t,e){return A5e(this,arguments,void 0,function*(r,s,n=!1){var i,o,a,A,c;let u=n?he:M,l=!1,d=s||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),g=OP.createHash("sha256"),f=0;try{for(var p=!0,I=c5e(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}${wse.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(R1.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let b=OP.createHash("sha256");yield bse.promisify(Qse.pipeline)(R1.createReadStream(C),b),g.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 g.end(),l?(u(`Found ${f} files to hash.`),g.digest("hex")):(u("No matches found for glob"),"")})}var Sse=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 u5e(t,e){return Sse(this,void 0,void 0,function*(){return yield T1.create(t,e)})}function Tse(t){return Sse(this,arguments,void 0,function*(e,r="",s,n=!1){let i=!0;s&&typeof s.followSymbolicLinks=="boolean"&&(i=s.followSymbolicLinks);let o=yield u5e(e,{followSymbolicLinks:i});return Nse(o,r,n)})}import*as _P from"path";var d5e="Gradle User Home",xse="BASIC_CACHE_PRIMARY_KEY",Rse="BASIC_CACHE_RESTORED_KEY",h5e="setup-java",Dse=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],D1=class{async restore(e,r){let s=kse(e),n=await g5e();jp(xse,n);try{let i=await _re(s,n);i?(jp(Rse,i),he(`Basic caching restored from cache key: ${i}`)):he("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){ut(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,s){let n=zA(xse),i=zA(Rse);if(s.readOnly)return{status:"read-only",entries:[Y0({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 he(`Basic caching restored entry with key \`${n}\`. Save was skipped.`),{status:"enabled",entries:[Y0({primaryKey:n,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=kse(e);try{return await Hre(o,n)===-1?(ut(`Basic caching failed to save entry with key \`${n}\`. See preceding log output for the cause.`),{status:"enabled",entries:[Y0({primaryKey:n,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(he(`Basic caching saved entry with key: ${n}`),{status:"enabled",entries:[Y0({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 ut(`Basic caching failed to save entry with key \`${n}\`: ${a}`),{status:"enabled",entries:[Y0({primaryKey:n,restoredKey:i,restoredOutcome:i?"Line truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${Dse}], make sure you have checked out the target repository`);return`${h5e}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var p5e="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.",m5e="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.",GP=class{async restore(e,r){}async save(e,r,s){return{status:"disabled",entries:[]}}};async function Use(t){return t.isCacheDisabled()?(HP("Cache is disabled: will not restore state from previous builds."),new GP):t.getCacheProvider()==="basic"?(HP(m5e),new D1):(HP(p5e),E5e())}function Lse(t){if(!t.isCacheDisabled())return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function E5e(){let t=C5e();return await import(f5e(t).href)}function C5e(){let t=import.meta.dirname,e=Mse.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Fse.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function HP(t){console.info(t)}import*as Hse from"util";var N5e=Ie(_se(),1);import*as YP from"fs";var _Rt=Hse.promisify(YP.readdir);var T5e={_useHtmlParser2:!1};function Mg(t,e){if(!t)return e??T5e;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 h3={};Ci(h3,{contains:()=>J1,extract:()=>yHe,html:()=>EHe,merge:()=>une,parseHTML:()=>IHe,root:()=>BHe,text:()=>vl,xml:()=>CHe});var Sc={};Ci(Sc,{DocumentPosition:()=>ei,append:()=>eHe,appendChild:()=>$5e,compareDocumentPosition:()=>one,existsOne:()=>nne,filter:()=>Og,find:()=>G1,findAll:()=>nHe,findOne:()=>Y1,findOneChild:()=>sHe,getAttributeValue:()=>K5e,getChildren:()=>Pg,getElementById:()=>AHe,getElements:()=>aHe,getElementsByClassName:()=>cHe,getElementsByTagName:()=>Ll,getElementsByTagType:()=>uHe,getFeed:()=>d3,getInnerHTML:()=>z5e,getName:()=>X5e,getOuterHTML:()=>rne,getParent:()=>sne,getSiblings:()=>u3,getText:()=>O1,hasAttrib:()=>j5e,hasChildren:()=>it,innerText:()=>z0,isCDATA:()=>Ug,isComment:()=>Ul,isDocument:()=>$n,isTag:()=>Z,isText:()=>Ms,nextElementSibling:()=>_1,prepend:()=>rHe,prependChild:()=>tHe,prevElementSibling:()=>H1,removeElement:()=>nA,removeSubsets:()=>lHe,replaceElement:()=>Z5e,testElement:()=>oHe,textContent:()=>sA,uniqueSort:()=>wc});var Zn={};Ci(Zn,{CDATA:()=>ZP,Comment:()=>zP,Directive:()=>WP,Doctype:()=>$P,ElementType:()=>ve,Root:()=>VP,Script:()=>KP,Style:()=>jP,Tag:()=>XP,Text:()=>JP,isTag:()=>qP});var ve;(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"})(ve||(ve={}));function qP(t){return t.type===ve.Tag||t.type===ve.Script||t.type===ve.Style}var VP=ve.Root,JP=ve.Text,WP=ve.Directive,zP=ve.Comment,KP=ve.Script,jP=ve.Style,XP=ve.Tag,ZP=ve.CDATA,$P=ve.Doctype;var k1=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 Lg(this,e)}},q0=class extends k1{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},zo=class extends q0{constructor(){super(...arguments),this.type=ve.Text}get nodeType(){return 3}},kl=class extends q0{constructor(){super(...arguments),this.type=ve.Comment}get nodeType(){return 8}},Fl=class extends q0{constructor(e,r){super(r),this.name=e,this.type=ve.Directive}get nodeType(){return 1}},V0=class extends k1{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}},J0=class extends V0{constructor(){super(...arguments),this.type=ve.CDATA}get nodeType(){return 4}},fn=class extends V0{constructor(){super(...arguments),this.type=ve.Root}get nodeType(){return 9}},Ml=class extends V0{constructor(e,r,s=[],n=e==="script"?ve.Script:e==="style"?ve.Style:ve.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
`:O1(t.children):Ug(t)?O1(t.children):Ms(t)?t.data:""}function sA(t){return Array.isArray(t)?t.map(sA).join(""):it(t)&&!Ul(t)?sA(t.children):Ms(t)?t.data:""}function z0(t){return Array.isArray(t)?t.map(z0).join(""):it(t)&&(t.type===ve.Tag||Ug(t))?z0(t.children):Ms(t)?t.data:""}function Pg(t){return it(t)?t.children:[]}function sne(t){return t.parent||null}function u3(t){let e=sne(t);if(e!=null)return Pg(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 K5e(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function j5e(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function X5e(t){return t.name}function _1(t){let{next:e}=t;for(;e!==null&&!Z(e);)({next:e}=e);return e}function H1(t){let{prev:e}=t;for(;e!==null&&!Z(e);)({prev:e}=e);return e}function nA(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 Z5e(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 $5e(t,e){if(nA(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 eHe(t,e){nA(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 tHe(t,e){if(nA(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 rHe(t,e){nA(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 Og(t,e,r=!0,s=1/0){return G1(t,Array.isArray(e)?e:[e],r,s)}function G1(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&&it(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function sHe(t,e){return e.find(t)}function Y1(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&&it(i)&&i.children.length>0){let o=Y1(t,i.children,!0);if(o)return o}}return null}function nne(t,e){return(Array.isArray(e)?e:[e]).some(r=>Z(r)&&t(r)||it(r)&&nne(t,r.children))}function nHe(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),it(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var q1={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=>Ms(e)&&t(e.data):e=>Ms(e)&&e.data===t}};function l3(t,e){return typeof e=="function"?r=>Z(r)&&e(r.attribs[t]):r=>Z(r)&&r.attribs[t]===e}function iHe(t,e){return r=>t(r)||e(r)}function ine(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(q1,r)?q1[r](s):l3(r,s)});return e.length===0?null:e.reduce(iHe)}function oHe(t,e){let r=ine(t);return r?r(e):!0}function aHe(t,e,r,s=1/0){let n=ine(t);return n?Og(n,e,r,s):[]}function AHe(t,e,r=!0){return Array.isArray(e)||(e=[e]),Y1(l3("id",t),e,r)}function Ll(t,e,r=!0,s=1/0){return Og(q1.tag_name(t),e,r,s)}function cHe(t,e,r=!0,s=1/0){return Og(l3("class",t),e,r,s)}function uHe(t,e,r=!0,s=1/0){return Og(q1.tag_type(t),e,r,s)}function lHe(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 ei;(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"})(ei||(ei={}));function one(t,e){let r=[],s=[];if(t===e)return 0;let n=it(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=it(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 ei.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?ei.FOLLOWING|ei.CONTAINED_BY:ei.FOLLOWING:a===t?ei.PRECEDING|ei.CONTAINS:ei.PRECEDING}function wc(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=one(e,r);return s&ei.PRECEDING?-1:s&ei.FOLLOWING?1:0}),t}function d3(t){let e=V1(pHe,t);return e?e.name==="feed"?dHe(e):hHe(e):null}function dHe(t){var e;let r=t.children,s={type:"atom",items:Ll("entry",r).map(o=>{var a;let{children:A}=o,c={media:ane(A)};Us(c,"id","id",A),Us(c,"title","title",A);let u=(a=V1("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=Nc("summary",A)||Nc("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 si=Ie(Tc(),1);var x3={};function R3(t,e){return t===si.default.falseFunc?si.default.falseFunc:r=>e.isTag(r)&&t(r)}function D3(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 S3=(t,e,r,s,n)=>{let i=n(e,T3(r),s);return i===si.default.trueFunc?t:i===si.default.falseFunc?si.default.falseFunc:o=>i(o)&&t(o)},nw={is:S3,matches:S3,where:S3,not(t,e,r,s,n){let i=n(e,T3(r),s);return i===si.default.falseFunc?t:i===si.default.trueFunc?si.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(tE))?[x3]:void 0,A=n(e,o,a);if(A===si.default.falseFunc)return si.default.falseFunc;let c=R3(A,i);if(a&&A!==si.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),g=u?[...d,...D3(l,i)]:d;return i.existsOne(c,g)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function Kne(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in nw))throw new Error(`Unknown pseudo-class :${o}(${a})`);return nw[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:sw[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,zne.parse)(c);return nw.is(t,u,r,s,n)}if(typeof A=="function")return N3(A,o,a,1),u=>A(u,a)&&t(u);if(o in zg)return zg[o](t,a,r,s);if(o in sE){let u=sE[o];return N3(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var ni=Ie(Jg(),1);function k3(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function jne(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case ni.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ni.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ni.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()),qne[e.action](t,e,r)}case ni.SelectorType.Pseudo:return Kne(t,e,r,s,n);case ni.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 ni.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=k3(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=k3(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=k3(c,i));return!1};case ni.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case ni.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case ni.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 ni.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 ni.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function Xne(t,e,r){let s=iw(t,e,r);return R3(s,e.adapter)}function iw(t,e,r){let s=typeof t=="string"?(0,Vi.parse)(t):t;return ow(s,e,r)}function Zne(t){return t.type===Vi.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(Zne)))}var a9e={type:Vi.SelectorType.Descendant},A9e={type:"_flexibleDescendant"},c9e={type:Vi.SelectorType.Pseudo,name:"scope",data:null};function u9e(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===x3||i&&e.isTag(i)});fo Line truncated
`)})):{name:n,value:i.replace(gie,`\r
`)}}).toArray()}var z3={};Ci(z3,{extract:()=>wGe});function bGe(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 wGe(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=bGe(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 Dc=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}}};Dc.prototype.cheerio="[cheerio object]";Dc.prototype.splice=Array.prototype.splice;Dc.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Dc.prototype,B3,q3,V3,J3,W3,z3);function fie(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=Mg(n),a=t(s,o,i,null);class A extends Dc{_make(l,d){let g=c(l,d);return g.prevObject=this,g}_parse(l,d,g,f){return t(l,d,g,f)}_render(l){return e(l,this.options)}}function c(u,l,d=a,g){if(u&&ti(u))return u;let f=Mg(g,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=ti(p)?p:new A(p,null,f);if(I._root=I,!u)return new A(void 0,I,f);let m=typeof u=="string"&&K0(u)?t(u,f,!1,null).children:NGe(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,S=l?typeof l=="string"?K0(l)?new A([t(l,f,!1,null)],I,f):(b=`${l} ${b}`,I):ti(l)?l:new A(Array.isArray(l)?l:[l],I,f):I;return S?S.find(b):C}return Object.assign(c,h3,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function NGe(t){return!!t.name||t.type===Zn.Root||t.type===Zn.Text||t.type===Zn.Comment}var SGe=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]),dt="\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 As={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function dw(t){return t>=55296&&t<=57343}function pie(t){return t>=56320&&t<=57343}function mie(t,e){return(t-55296)*1024+9216+e}function hw(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function gw(t){return t>=64976&&t<=65007||SGe.has(t)}var R;(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": ";u3BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+180 -336
View File
@@ -1,269 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var fMt=Object.create;var LP=Object.defineProperty;var pMt=Object.getOwnPropertyDescriptor;var mMt=Object.getOwnPropertyNames;var EMt=Object.getPrototypeOf,CMt=Object.prototype.hasOwnProperty;var B=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var IMt=(t,e)=>()=>(t&&(e=t(t=0)),e);var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),xu=(t,e)=>{for(var r in e)LP(t,r,{get:e[r],enumerable:!0})},lTe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of mMt(e))!CMt.call(t,s)&&s!==r&&LP(t,s,{get:()=>e[s],enumerable:!(n=pMt(e,s))||n.enumerable});return t};var Xe=(t,e,r)=>(r=t!=null?fMt(EMt(t)):{},lTe(e||!t||!t.__esModule?LP(r,"default",{value:t,enumerable:!0}):r,t)),$n=t=>lTe(LP({},"__esModule",{value:!0}),t);var ETe=f($y=>{"use strict";var Syn=B("net"),NMt=B("tls"),$K=B("http"),fTe=B("https"),SMt=B("events"),Ryn=B("assert"),RMt=B("util");$y.httpOverHttp=DMt;$y.httpsOverHttp=xMt;$y.httpOverHttps=TMt;$y.httpsOverHttps=kMt;function DMt(t){var e=new Pf(t);return e.request=$K.request,e}function xMt(t){var e=new Pf(t);return e.request=$K.request,e.createSocket=pTe,e.defaultPort=443,e}function TMt(t){var e=new Pf(t);return e.request=fTe.request,e}function kMt(t){var e=new Pf(t);return e.request=fTe.request,e.createSocket=pTe,e.defaultPort=443,e}function Pf(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||$K.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=mTe(s,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}RMt.inherits(Pf,SMt.EventEmitter);Pf.prototype.addRequest=function(e,r,n,s){var i=this,o=eX({request:e},i.options,mTe(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};Pf.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=eX({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),Gm("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){Gm("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var g=new Error("tunneling socket could not be established, statusCode="+l.statusCode);g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}if(h.length>0){Gm("got illegal response body from proxy"),d.destroy();var g=new Error("got illegal response body from proxy");g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}return Gm("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Gm(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};Pf.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function pTe(t,e){var r=this;Pf.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=eX({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=NMt.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function mTe(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function eX(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var Gm;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Gm=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:Gm=function(){};$y.debug=Gm});var qP=f((xyn,CTe)=>{CTe.exports=ETe()});var ps=f((Tyn,ITe)=>{ITe.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var tn=f((kyn,YTe)=>{"use strict";var BTe=Symbol.for("undici.error.UND_ERR"),Ts=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[BTe]===!0}[BTe]=!0},QTe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),tX=class extends Ts{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[QTe]===!0}[QTe]=!0},yTe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),rX=class extends Ts{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[yTe]===!0}[yTe]=!0},bTe=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),nX=class extends Ts{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[bTe]===!0}[bTe]=!0},wTe=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),sX=class extends Ts{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[wTe]===!0}[wTe]=!0},NTe=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),iX=class extends Ts{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function zLt(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(kLt.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function jLt(){return"allowed"}function KLt(){return"success"}function XLt(){return"success"}function ZLt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function $Lt(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&zX(t.origin)&&!zX(PT(t))&&(e=null);break;case"same-origin":c_(t,PT(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function cb(t,e){return t}function eUt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:cb(t.domainLookupStartTime,r),domainLookupEndTime:cb(t.domainLookupEndTime,r),connectionStartTime:cb(t.connectionStartTime,r),connectionEndTime:cb(t.connectionEndTime,r),secureConnectionStartTime:cb(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function tUt(t){return cb(ULt.now(),t)}function rUt(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function ike(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function nUt(t){return{referrerPolicy:t.referrerPolicy}}function sUt(t){let e=t.referrerPolicy;oB(e);let r=null;if(t.referrer==="client"){let a=$1e();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=WX(r),s=WX(r,!0);n.toString().length>4096&&(n=s);let i=c_(t,n),o=UT(n)&&!UT(t.url);switch(e){case"origin":return s??WX(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=PT(t);return c_(n,a)?n:UT(n)&&!UT(a)?"no-referrer":s}default:return o?"no-referrer":s}}function WX(t,e){return oB(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function UT(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function iUt(t,e){if(A_===void 0)return!0;let r=oke(e);if(r==="no metadata"||r.length===0)return!0;let n=aUt(r),s=AUt(r,n);for(let i of s){let o=i.algo,a=i.hash,A=A_.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),cUt(A,a))return!0}return!1}var oUt=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function oke(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=oUt.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();tke.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function aUt(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function AUt(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}function cUt(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function uUt(t){}function c_(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function lUt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function dUt(t){return t.controller.state==="aborted"}function hUt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function gUt(t){return OLt[t.toLowerCase()]??t}function fUt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return oB(typeof e=="string"),e}var pUt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function ake(t,e,r=0,n=1){class s{ Line truncated
`);function VUt(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function WUt(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}function zUt(t,e){l_(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&d_(t,YUt,i)||i.position===t.length-4&&d_(t,JUt,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=jUt(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let g=t.indexOf(n.subarray(2),i.position);if(g===-1)return"failure";d=t.subarray(i.position,g-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",VUt(u)||(u=""),h=new qUt([d],c,{type:u})):h=UUt(Buffer.from(d)),l_(Cke(A)),l_(typeof h=="string"&&Cke(h)||_Ut(h)),s.push(OUt(A,h,c))}}function jUt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=lb(a=>a!==10&&a!==13&&a!==58,t,e);if(o=tZ(o,!0,!0,a=>a===9||a===32),!PUt.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,lb(a=>a===32||a===9,t,e),LUt(o)){case"content-disposition":{if(r=n=null,!d_(t,GUt,e)||(e.position+=17,r=Qke(t,e),r===null))return"failure";if(d_(t,Bke,e)){let a=e.position+Bke.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Qke(t,e),n===null))return"failure"}break}case"content-type":{let a=lb(A=>A!==10&&A!==13,t,e);a=tZ(a,!1,!0,A=>A===9||A===32),s=Ike(a);break}case"content-transfer-encoding":{let a=lb(A=>A!==10&&A!==13,t,e);a=tZ(a,!1,!0,A=>A===9||A===32),i=Ike(a);break}default:lb(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Qke(t,e){l_(t[e.position-1]===34);let r=lb(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function lb(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function tZ(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function d_(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}yke.exports={multipartFormDataParser:zUt,validateBoundary:WUt}});var gb=f((nbn,Mke)=>{"use strict";var HT=mr(),{ReadableStreamFrom:KUt,isBlobLike:wke,isReadableStreamLike:XUt,readableStreamClose:ZUt,createDeferredPromise:$Ut,fullyReadBody:ePt,extractMimeType:tPt,utf8DecodeBytes:Rke}=Qc(),{FormData:Nke}=OT(),{kState:hb}=Ym(),{webidl:rPt}=Oo(),{Blob:nPt}=B("node:buffer"),rZ=B("node:assert"),{isErrored:Dke,isDisturbed:sPt}=B("node:stream"),{isArrayBuffer:iPt}=B("node:util/types"),{serializeAMimeType:oPt}=yA(),{multipartFormDataParser:aPt}=bke(),nZ;try{let t=B("node:crypto");nZ=e=>t.randomInt(0,e)}catch{nZ=t=>Math.floor(Math.random(t))}var h_=new TextEncoder;function APt(){}var xke=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Tke;xke&&(Tke=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!sPt(e)&&!Dke(e)&&e.cancel("Response object has been garbage collected").catch(APt)}));function kke(t,e=!1){let r=null;t instanceof ReadableStream?r=t:wke(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?h_.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>ZUt(A))},start(){},type:"bytes"}),rZ(XUt(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(iPt(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(HT.isFormDataLike(t)){let A=`----formdata-undici-0${`${nZ(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=h_.encode(c+`; name="${u(l(C))}"\r
var e6e=Object.create;var pL=Object.defineProperty;var t6e=Object.getOwnPropertyDescriptor;var r6e=Object.getOwnPropertyNames;var n6e=Object.getPrototypeOf,s6e=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var C=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},xa=(t,e)=>{for(var r in e)pL(t,r,{get:e[r],enumerable:!0})},i6e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of r6e(e))!s6e.call(t,s)&&s!==r&&pL(t,s,{get:()=>e[s],enumerable:!(n=t6e(e,s))||n.enumerable});return t};var ge=(t,e,r)=>(r=t!=null?e6e(n6e(t)):{},i6e(e||!t||!t.__esModule?pL(r,"default",{value:t,enumerable:!0}):r,t));var See=C(Kp=>{"use strict";var XWt=Q("net"),l6e=Q("tls"),IL=Q("http"),bee=Q("https"),d6e=Q("events"),ZWt=Q("assert"),h6e=Q("util");Kp.httpOverHttp=f6e;Kp.httpsOverHttp=g6e;Kp.httpOverHttps=p6e;Kp.httpsOverHttps=m6e;function f6e(t){var e=new Au(t);return e.request=IL.request,e}function g6e(t){var e=new Au(t);return e.request=IL.request,e.createSocket=Qee,e.defaultPort=443,e}function p6e(t){var e=new Au(t);return e.request=bee.request,e}function m6e(t){var e=new Au(t);return e.request=bee.request,e.createSocket=Qee,e.defaultPort=443,e}function Au(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||IL.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=wee(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)})}h6e.inherits(Au,d6e.EventEmitter);Au.prototype.addRequest=function(e,r,n,s){var i=this,o=yL({request:e},i.options,wee(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)}})};Au.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=yL({},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")),kl("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){kl("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){kl("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 kl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),kl(`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)}};Au.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 Qee(t,e){var r=this;Au.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=yL({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=l6e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function wee(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function yL(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 kl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?kl=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)}:kl=function(){};Kp.debug=kl});var BL=C((tJt,Nee)=>{Nee.exports=See()});var br=C((rJt,Tee)=>{Tee.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 _t=C((nJt,Zee)=>{"use strict";var xee=Symbol.for("undici.error.UND_ERR"),Qr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[xee]===!0}[xee]=!0},Ree=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),bL=class extends Qr{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[Ree]===!0}[Ree]=!0},Dee=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),QL=class extends Qr{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[Dee]===!0}[Dee]=!0},kee=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),wL=class extends Qr{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[kee]===!0}[kee]=!0},vee=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),SL=class extends Qr{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[vee]===!0}[vee]=!0},_ee=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),NL=class extends Qr{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 vHe(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(mHe.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function _He(){return"allowed"}function FHe(){return"success"}function MHe(){return"success"}function LHe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function UHe(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&&EU(t.origin)&&!EU(OI(t))&&(e=null);break;case"same-origin":vS(t,OI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function om(t,e){return t}function PHe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:om(t.domainLookupStartTime,r),domainLookupEndTime:om(t.domainLookupEndTime,r),connectionStartTime:om(t.connectionStartTime,r),connectionEndTime:om(t.connectionEndTime,r),secureConnectionStartTime:om(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function OHe(t){return om(BHe.now(),t)}function HHe(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 hre(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function GHe(t){return{referrerPolicy:t.referrerPolicy}}function qHe(t){let e=t.referrerPolicy;Yh(e);let r=null;if(t.referrer==="client"){let a=are();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=mU(r),s=mU(r,!0);n.toString().length>4096&&(n=s);let i=vS(t,n),o=PI(n)&&!PI(t.url);switch(e){case"origin":return s??mU(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=OI(t);return vS(n,a)?n:PI(n)&&!PI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function mU(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 PI(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 YHe(t,e){if(kS===void 0)return!0;let r=fre(e);if(r==="no metadata"||r.length===0)return!0;let n=WHe(r),s=JHe(r,n);for(let i of s){let o=i.algo,a=i.hash,c=kS.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)),zHe(c,a))return!0}return!1}var VHe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function fre(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=VHe.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Are.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function WHe(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 JHe(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 zHe(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 jHe(t){}function vS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function KHe(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function $He(t){return t.controller.state==="aborted"}function XHe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function ZHe(t){return wHe[t.toLowerCase()]??t}function e9e(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 t9e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function gre(t,e,r=0,n=1){class s{ Line truncated
`);function D9e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function k9e(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 v9e(t,e){FS(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&&MS(t,x9e,i)||i.position===t.length-4&&MS(t,R9e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=_9e(t,i);if(a==="failure")return"failure";let{name:c,filename:A,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;A!==null?(u??="text/plain",D9e(u)||(u=""),h=new N9e([d],A,{type:u})):h=B9e(Buffer.from(d)),FS(Nre(c)),FS(typeof h=="string"&&Nre(h)||Q9e(h)),s.push(w9e(c,h,A))}}function _9e(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=cm(a=>a!==10&&a!==13&&a!==58,t,e);if(o=wU(o,!0,!0,a=>a===9||a===32),!b9e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,cm(a=>a===32||a===9,t,e),y9e(o)){case"content-disposition":{if(r=n=null,!MS(t,T9e,e)||(e.position+=17,r=Rre(t,e),r===null))return"failure";if(MS(t,xre,e)){let a=e.position+xre.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Rre(t,e),n===null))return"failure"}break}case"content-type":{let a=cm(c=>c!==10&&c!==13,t,e);a=wU(a,!1,!0,c=>c===9||c===32),s=Tre(a);break}case"content-transfer-encoding":{let a=cm(c=>c!==10&&c!==13,t,e);a=wU(a,!1,!0,c=>c===9||c===32),i=Tre(a);break}default:cm(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Rre(t,e){FS(t[e.position-1]===34);let r=cm(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 cm(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function wU(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 MS(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}Dre.exports={multipartFormDataParser:v9e,validateBoundary:k9e}});var lm=C((TJt,Gre)=>{"use strict";var qI=dt(),{ReadableStreamFrom:F9e,isBlobLike:vre,isReadableStreamLike:M9e,readableStreamClose:L9e,createDeferredPromise:U9e,fullyReadBody:P9e,extractMimeType:O9e,utf8DecodeBytes:Mre}=vi(),{FormData:_re}=GI(),{kState:um}=vl(),{webidl:H9e}=Xn(),{Blob:G9e}=Q("node:buffer"),SU=Q("node:assert"),{isErrored:Lre,isDisturbed:q9e}=Q("node:stream"),{isArrayBuffer:Y9e}=Q("node:util/types"),{serializeAMimeType:V9e}=ei(),{multipartFormDataParser:W9e}=kre(),NU;try{let t=Q("node:crypto");NU=e=>t.randomInt(0,e)}catch{NU=t=>Math.floor(Math.random(t))}var LS=new TextEncoder;function J9e(){}var Ure=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Pre;Ure&&(Pre=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!q9e(e)&&!Lre(e)&&e.cancel("Response object has been garbage collected").catch(J9e)}));function Ore(t,e=!1){let r=null;t instanceof ReadableStream?r=t:vre(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?LS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>L9e(c))},start(){},type:"bytes"}),SU(M9e(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(Y9e(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(qI.isFormDataLike(t)){let c=`----formdata-undici-0${`${NU(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=E=>E.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,m]of t)if(typeof m=="string"){let I=LS.encode(A+`; name="${u(l(E))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=h_.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(I),i+=I.byteLength}else{let I=LS.encode(`${A}; name="${u(l(E))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=h_.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${A}`}else if(wke(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(HT.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:KUt(t)}if((typeof s=="string"||HT.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!Dke(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function cPt(t,e=!1){return t instanceof ReadableStream&&(rZ(!HT.isDisturbed(t),"The body has already been consumed."),rZ(!t.locked,"The stream is locked.")),kke(t,e)}function uPt(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function lPt(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function dPt(t){return{blob(){return db(this,r=>{let n=Ske(this);return n===null?n="":n&&(n=oPt(n)),new nPt([r],{type:n})},t)},arrayBuffer(){return db(this,r=>new Uint8Array(r).buffer,t)},text(){return db(this,Rke,t)},json(){return db(this,gPt,t)},formData(){return db(this,r=>{let n=Ske(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=aPt(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Nke;return i[hb]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Nke;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return db(this,r=>new Uint8Array(r),t)}}}function hPt(t){Object.assign(t.prototype,dPt(t))}async function db(t,e,r){if(rPt.brandCheck(t,r),Fke(t))throw new TypeError("Body is unusable: Body has already been read");lPt(t[hb]);let n=$Ut(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[hb].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await ePt(t[hb].body,i,s),n.promise)}function Fke(t){let e=t[hb].body;return e!=null&&(e.stream.locked||HT.isDisturbed(e.stream))}function gPt(t){return JSON.parse(Rke(t))}function Ske(t){let e=t[hb].headersList,r=tPt(e);return r==="failure"?null:r}Mke.exports={extractBody:kke,safelyExtractBody:cPt,cloneBody:uPt,mixinBody:hPt,streamRegistry:Tke,hasFinalizationRegistry:xke,bodyUnusable:Fke}});var Jke=f((sbn,Yke)=>{"use strict";var xt=B("node:assert"),Yt=mr(),{channels:vke}=tb(),sZ=_X(),{RequestContentLengthMismatchError:aB,ResponseContentLengthMismatchError:fPt,RequestAbortedError:Hke,HeadersTimeoutError:pPt,HeadersOverflowError:mPt,SocketError:C_,InformationalError:fb,BodyTimeoutError:EPt,HTTPParserError:CPt,ResponseExceededMaxSizeError:IPt}=tn(),{kUrl:qke,kReset:bA,kClient:AZ,kParser:Js,kBlocking:YT,kRunning:sa,kPending:BPt,kSize:Lke,kWriting:Vm,kQueue:Ad,kNoRef:qT,kKeepAliveDefaultTimeout:QPt,kHostHeader:yPt,kPendingIdx:bPt,kRunningIdx:ku,kError:Fu,kPipelining:m_,kSocket:pb,kKeepAliveTimeoutValue:I_,kMaxHeadersSize:iZ,kKeepAliveMaxTimeout:wPt,kKeepAliveTimeoutThreshold:NPt,kHeadersTimeout:SPt,kBodyTimeout:RPt,kStrictContentLength:cZ,kMaxRequests:Uke,kCounter:DPt,kMaxResponseSize:xPt,kOnError:TPt,kResume:Jm,kHTTPContext:Gke}=ps(),Qh=T1e(),kPt=Buffer.alloc(0),g_=Buffer[Symbol.species],f_=Yt.addListener,FPt=Yt.removeAllListeners,oZ;async function MPt(){let t=process.env.JEST_WORKER_ID?qX():void 0,e;try{e=await WebAssembly.compile(M1e())}catch{e=await WebAssembly.compile(t||qX())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{xt(Hi.ptr===r);let i=n-bh+yh.byteOffset;return Hi.onStatus(new g_(yh.buffer,i,s))||0},wasm_on_message_begin:r=>(xt(Hi.ptr===r),Hi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{xt(Hi.ptr===r);let i=n-bh+yh.byteOffset;return Hi.onHeaderField(new g_(yh.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{xt(Hi.ptr===r);let i=n-bh+yh.byteOffset;return Hi.onHeaderValue(new g_(yh.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(xt(Hi.ptr===r),Hi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{xt(Hi.ptr===r);let i=n-bh+yh.byteOffset;return Hi.onBody(new g_(yh.buffer,i,s))||0},wasm_on_message_complete:r=>(xt(Hi.ptr===r),Hi.onMessageComplete()||0)}})}var aZ=null,uZ=MPt();uZ.catch();var Hi=null,yh=null,p_=0,bh=null,vPt=0,GT=1,mb=2|GT,E_=4|GT,lZ=8|vPt,dZ=class{constructor(e,r,{exports:n}){xt(Number.isFinite(e[iZ])&&e[iZ]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Qh.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[yPt],i?p+=`connection: upgrade\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:f=!0}let g=LS.encode(`--${c}--\r
`);d.push(g),i+=g.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(vre(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(qI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:F9e(t)}if((typeof s=="string"||qI.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(!Lre(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function z9e(t,e=!1){return t instanceof ReadableStream&&(SU(!qI.isDisturbed(t),"The body has already been consumed."),SU(!t.locked,"The stream is locked.")),Ore(t,e)}function j9e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function K9e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function $9e(t){return{blob(){return Am(this,r=>{let n=Fre(this);return n===null?n="":n&&(n=V9e(n)),new G9e([r],{type:n})},t)},arrayBuffer(){return Am(this,r=>new Uint8Array(r).buffer,t)},text(){return Am(this,Mre,t)},json(){return Am(this,Z9e,t)},formData(){return Am(this,r=>{let n=Fre(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=W9e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new _re;return i[um]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new _re;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 Am(this,r=>new Uint8Array(r),t)}}}function X9e(t){Object.assign(t.prototype,$9e(t))}async function Am(t,e,r){if(H9e.brandCheck(t,r),Hre(t))throw new TypeError("Body is unusable: Body has already been read");K9e(t[um]);let n=U9e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[um].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await P9e(t[um].body,i,s),n.promise)}function Hre(t){let e=t[um].body;return e!=null&&(e.stream.locked||qI.isDisturbed(e.stream))}function Z9e(t){return JSON.parse(Mre(t))}function Fre(t){let e=t[um].headersList,r=O9e(e);return r==="failure"?null:r}Gre.exports={extractBody:Ore,safelyExtractBody:z9e,cloneBody:j9e,mixinBody:X9e,streamRegistry:Pre,hasFinalizationRegistry:Ure,bodyUnusable:Hre}});var sne=C((xJt,nne)=>{"use strict";var Me=Q("node:assert"),Pe=dt(),{channels:qre}=Xp(),TU=AU(),{RequestContentLengthMismatchError:Vh,ResponseContentLengthMismatchError:Yre,RequestAbortedError:Xre,InvalidArgumentError:eGe,HeadersTimeoutError:tGe,HeadersOverflowError:rGe,SocketError:dm,InformationalError:hm,BodyTimeoutError:nGe,HTTPParserError:sGe,ResponseExceededMaxSizeError:iGe}=_t(),{kUrl:Zre,kReset:ti,kClient:HS,kParser:lr,kBlocking:WI,kRunning:cn,kPending:ene,kSize:Vre,kWriting:_l,kQueue:Da,kNoRef:YI,kKeepAliveDefaultTimeout:oGe,kHostHeader:aGe,kPendingIdx:cGe,kRunningIdx:To,kError:Ts,kPipelining:GS,kSocket:Jh,kKeepAliveTimeoutValue:YS,kMaxHeadersSize:xU,kKeepAliveMaxTimeout:AGe,kKeepAliveTimeoutThreshold:uGe,kHeadersTimeout:lGe,kBodyTimeout:dGe,kStrictContentLength:kU,kMaxRequests:Wre,kCounter:hGe,kMaxResponseSize:fGe,kOnError:Jre,kResume:gu,kHTTPContext:tne}=br(),_i=Pte(),zre=Buffer.alloc(0),US=Buffer[Symbol.species],PS=Pe.addListener,gGe=Pe.removeAllListeners,zh=Symbol("kIdleSocketValidation"),Wh=Symbol("kIdleSocketValidationTimeout"),MU=Symbol("kSocketUsed"),RU;async function pGe(){let t=process.env.JEST_WORKER_ID?dU():void 0,e;try{e=await WebAssembly.compile(Gte())}catch{e=await WebAssembly.compile(t||dU())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Me(Ur.ptr===r);let i=n-xc+Tc.byteOffset;return Ur.onStatus(new US(Tc.buffer,i,s))||0},wasm_on_message_begin:r=>(Me(Ur.ptr===r),Ur.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Me(Ur.ptr===r);let i=n-xc+Tc.byteOffset;return Ur.onHeaderField(new US(Tc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Me(Ur.ptr===r);let i=n-xc+Tc.byteOffset;return Ur.onHeaderValue(new US(Tc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Me(Ur.ptr===r),Ur.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Me(Ur.ptr===r);let i=n-xc+Tc.byteOffset;return Ur.onBody(new US(Tc.buffer,i,s))||0},wasm_on_message_complete:r=>(Me(Ur.ptr===r),Ur.onMessageComplete()||0)}})}var DU=null,vU=pGe();vU.catch();var Ur=null,Tc=null,OS=0,xc=null,mGe=0,VI=1,fm=2|VI,qS=4|VI,_U=8|mGe,FU=class{constructor(e,r,{exports:n}){Me(Number.isFinite(e[xU])&&e[xU]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(_i.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[aGe],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[m_]&&!h[bA]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return vke.sendHeaders.hasSubscribers&&vke.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?_ke(g,null,t,e,h,u,p,l):Yt.isBuffer(A)?_ke(g,A,t,e,h,u,p,l):Yt.isBlobLike(A)?typeof A.stream=="function"?Oke(g,A.stream(),t,e,h,u,p,l):HPt(g,A,t,e,h,u,p,l):Yt.isStream(A)?OPt(g,A,t,e,h,u,p,l):Yt.isIterable(A)?Oke(g,A,t,e,h,u,p,l):xt(!1),!0}function OPt(t,e,r,n,s,i,o,a){xt(i!==0||r[sa]===0,"stream body cannot be pipelined");let A=!1,c=new B_({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Yt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new Hke;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,xt(s.destroyed||s[Vm]&&r[sa]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Yt.destroy(e,g):Yt.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function _ke(t,e,r,n,s,i,o,a){try{e?Yt.isBuffer(e)&&(xt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[bA]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(xt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Jm]()}catch(A){t(A)}}async function HPt(t,e,r,n,s,i,o,a){xt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new aB;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[bA]=!0),r[Jm]()}catch(A){t(A)}}async function Oke(t,e,r,n,s,i,o,a){xt(i!==0||r[sa]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{xt(A===null),s[Fu]?h(s[Fu]):A=d});s.on("close",c).on("drain",c);let l=new B_({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Fu])throw s[Fu];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var B_=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Vm]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Fu])throw r[Fu];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[cZ])throw new aB;process.emitWarning(new aB)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[bA]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Js].timeout&&r[Js].timeoutType===mb&&r[Js].timeout.refresh&&r[Js].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Vm]=!1,e[Fu])throw e[Fu];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[cZ])throw new aB;process.emitWarning(new aB)}e[Js].timeout&&e[Js].timeoutType===mb&&e[Js].timeout.refresh&&e[Js].timeout.refresh(),n[Jm]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Vm]=!1,e&&(xt(n[sa]<=1,"pipeline should only contain this request"),s(e))}};Yke.exports=LPt});var $ke=f((ibn,Zke)=>{"use strict";var Mu=B("node:assert"),{pipeline:qPt}=B("node:stream"),wr=mr(),{RequestContentLengthMismatchError:hZ,RequestAbortedError:Vke,SocketError:JT,InformationalError:gZ}=tn(),{kUrl:Q_,kReset:b_,kClient:Eb,kRunning:w_,kPending:GPt,kQueue:Wm,kPendingIdx:fZ,kRunningIdx:cd,kError:ld,kSocket:oo,kStrictContentLength:YPt,kOnError:pZ,kMaxConcurrentStreams:Xke,kHTTP2Session:ud,kResume:zm,kSize:JPt,kHTTPContext:VPt}=ps(),Yf=Symbol("open streams"),Wke,zke=!1,y_;try{y_=B("node:http2")}catch{y_={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:WPt,HTTP2_HEADER_METHOD:zPt,HTTP2_HEADER_PATH:jPt,HTTP2_HEADER_SCHEME:KPt,HTTP2_HEADER_CONTENT_LENGTH:XPt,HTTP2_HEADER_EXPECT:ZPt,HTTP2_HEADER_STATUS:$Pt}}=y_;function e_t(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function t_t(t,e){t[oo]=e,zke||(zke=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=y_.connect(t[Q_],{createConnection:()=>e,peerMaxConcurrentStreams:t[Xke]});r[Yf]=0,r[Eb]=t,r[oo]=e,wr.addListener(r,"error",n_t),wr.addListener(r,"frameError",s_t),wr.addListener(r,"end",i_t),wr.addListener(r,"goaway",o_t),wr.addListener(r,"close",function(){let{[Eb]:s}=this,{[oo]:i}=s,o=this[oo][ld]||this[ld]||new JT("closed",wr.getSocketInfo(i));if(s[ud]=null,s.destroyed){Mu(s[GPt]===0);let a=s[Wm].splice(s[cd]);for(let A=0;A<a.length;A++){let c=a[A];wr.errorRequest(s,c,o)}}}),r.unref(),t[ud]=r,e[ud]=r,wr.addListener(e,"error",function(s){Mu(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ld]=s,this[Eb][pZ](s)}),wr.addListener(e,"end",function(){wr.destroy(this,new JT("other side closed",wr.getSocketInfo(this)))}),wr.addListener(e,"close",function(){let s=this[ld]||new JT("closed",wr.getSocketInfo(this));t[oo]=null,this[ud]!=null&&this[ud].destroy(s),t[fZ]=t[cd],Mu(t[w_]===0),t.emit("disconnect",t[Q_],[t],s),t[zm]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return A_t(t,...s)},resume(){r_t(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function r_t(t){let e=t[oo];e?.destroyed===!1&&(t[JPt]===0&&t[Xke]===0?(e.unref(),t[ud].unref()):(e.ref(),t[ud].ref()))}function n_t(t){Mu(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[oo][ld]=t,this[Eb][pZ](t)}function s_t(t,e,r){if(r===0){let n=new gZ(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[oo][ld]=n,this[Eb][pZ](n)}}function i_t(){let t=new JT("other side closed",wr.getSocketInfo(this[oo]));this.destroy(t),wr.destroy(this[oo],t)}function o_t(t){let e=this[ld]||new JT(`HTTP/2: "GOAWAY" frame received with code ${t}`,wr.getSocketInfo(this)),r=this[Eb];if(r[oo]=null,r[VPt]=null,this[ud]!=null&&(this[ud].destroy(e),this[ud]=null),wr.destroy(this[oo],e),r[cd]<r[Wm].length){let n=r[Wm][r[cd]];r[Wm][r[cd]++]=null,wr.errorRequest(r,n,e),r[fZ]=r[cd]}Mu(r[w_]===0),r.emit("disconnect",r[Q_],[r],e),r[zm]()}function a_t(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function A_t(t,e){let r=t[ud],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return wr.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let w=0;w<c.length;w+=2){let H=c[w+0],z=c[w+1];if(Array.isArray(z))for(let F=0;F<z.length;F++)l[H]?l[H]+=`,${z[F]}`:l[H]=z[F];else l[H]=z}let d,{hostname:h,port:g}=t[Q_];l[WPt]=i||`${h}${g?`:${g}`:""}`,l[zPt]=n;let p=w=>{e.aborted||e.completed||(w=w||new Vke,wr.errorRequest(t,e,w),d!=null&&wr.destroy(d,w),wr.destroy(u,w),t[Wm][t[cd]++]=null,t[zm]())};try{e.onConnect(p)}catch(w){wr.errorRequest(t,e,w)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Yf],t[Wm][t[cd]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Yf],t[Wm][t[cd]++]=null}),d.once("close",()=>{r[Yf]-=1,r[Yf]===0&&r.unref()}),!0;l[jPt]=s,l[KPt]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=wr.bodyLength(u);if(wr.isFormDataLike(u)){Wke??=gb().extractBody;let[w,H]=Wke(u);l["content-type"]=H,u=w.stream,m=w.length}if(m==null&&(m=e.contentLength),(m===0||!C)&&(m=null),a_t(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[YPt])return wr.errorRequest(t,e,new hZ),!1;process.emitWarning(new hZ)}m!=null&&(Mu(u,"no body must not have content length"),l[XPt]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[ZPt]="100-continue",d=r.request(l,{endStream:I,signal:A}),d.once("cont Line truncated
`,this[M_t]=A??3e5,this[F_t]=s??3e5,this[v_t]=I??!0,this[L_t]=w,this[IZ]=z,this[Km]=null,this[H_t]=W>-1?W:-1,this[G_t]=oe??100,this[fi]=null,this[dd]=[],this[Vf]=0,this[hd]=0,this[jT]=he=>QZ(this,he),this[q_t]=he=>l2e(this,he)}get pipelining(){return this[D_]}set pipelining(e){this[D_]=e,this[jT](!0)}get[ZT](){return this[dd].length-this[hd]}get[XT](){return this[hd]-this[Vf]}get[KT](){return this[dd].length-this[Vf]}get[N_t](){return!!this[fi]&&!this[Ib]&&!this[fi].destroyed}get[CZ](){return!!(this[fi]?.busy(null)||this[KT]>=(u2e(this)||1)||this[ZT]>0)}[w_t](e){d2e(this),this.once("connect",e)}[O_t](e,r){let n=e.origin||this[Nh].origin,s=new C_t(n,e,r);return this[dd].push(s),this[cB]||(AB.bodyLength(s.body)==null&&AB.isIterable(s.body)?(this[cB]=1,queueMicrotask(()=>QZ(this))):this[jT](!0)),this[cB]&&this[Xm]!==2&&this[CZ]&&(this[Xm]=2),this[Xm]<2}async[P_t](){return new Promise(e=>{this[KT]?this[Km]=e:e(null)})}async[__t](e){return new Promise(r=>{let n=this[dd].splice(this[hd]);for(let i=0;i<n.length;i++){let o=n[i];AB.errorRequest(this,o,e)}let s=()=>{this[Km]&&(this[Km](),this[Km]=null),r(null)};this[fi]?(this[fi].destroy(e,s),this[fi]=null):queueMicrotask(s),this[jT]()})}},V_t=R_();function l2e(t,e){if(t[XT]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Jf(t[hd]===t[Vf]);let r=t[dd].splice(t[Vf]);for(let n=0;n<r.length;n++){let s=r[n];AB.errorRequest(t,s,e)}Jf(t[KT]===0)}}async function d2e(t){Jf(!t[Ib]),Jf(!t[fi]);let{host:e,hostname:r,protocol:n,port:s}=t[Nh];if(r[0]==="["){let i=r.indexOf("]");Jf(i!==-1);let o=r.substring(1,i);Jf(c2e.isIP(o)),r=o}t[Ib]=!0,Cb.beforeConnect.hasSubscribers&&Cb.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[jm],localAddress:t[zT]},connector:t[WT]});try{let i=await new Promise((o,a)=>{t[WT]({host:e,hostname:r,protocol:n,port:s,servername:t[jm],localAddress:t[zT]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){AB.destroy(i.on("error",a2e),new Q_t);return}Jf(i);try{t[fi]=i.alpnProtocol==="h2"?await J_t(t,i):await Y_t(t,i)}catch(o){throw i.destroy().on("error",a2e),o}t[Ib]=!1,i[U_t]=0,i[IZ]=t[IZ],i[b_t]=t,i[R_t]=null,Cb.connected.hasSubscribers&&Cb.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[jm],localAddress:t[zT]},connector:t[WT],socket:i}),t.emit("connect",t[Nh],[t])}catch(i){if(t.destroyed)return;if(t[Ib]=!1,Cb.connectError.hasSubscribers&&Cb.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[jm],localAddress:t[zT]},connector:t[WT],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Jf(t[XT]===0);t[ZT]>0&&t[dd][t[hd]].servername===t[jm];){let o=t[dd][t[hd]++];AB.errorRequest(t,o,i)}else l2e(t,i);t.emit("connectionError",t[Nh],[t],i)}t[jT]()}function A2e(t){t[Xm]=0,t.emit("drain",t[Nh],[t])}function QZ(t,e){t[cB]!==2&&(t[cB]=2,W_t(t,e),t[cB]=0,t[Vf]>256&&(t[dd].splice(0,t[Vf]),t[hd]-=t[Vf],t[Vf]=0))}function W_t(t,e){for(;;){if(t.destroyed){Jf(t[ZT]===0);return}if(t[Km]&&!t[KT]){t[Km](),t[Km]=null;return}if(t[fi]&&t[fi].resume(),t[CZ])t[Xm]=2;else if(t[Xm]===2){e?(t[Xm]=1,queueMicrotask(()=>A2e(t))):A2e(t);continue}if(t[ZT]===0||t[XT]>=(u2e(t)||1))return;let r=t[dd][t[hd]];if(t[Nh].protocol==="https:"&&t[jm]!==r.servername){if(t[XT]>0)return;t[jm]=r.servername,t[fi]?.destroy(new B_t("servername changed"),()=>{t[fi]=null,QZ(t)})}if(t[Ib])return;if(!t[fi]){d2e(t);return}if(t[fi].destroyed||t[fi].busy(r))return;!r.aborted&&t[fi].write(r)?t[hd]++:t[dd].splice(t[hd],1)}}h2e.exports=BZ});var yZ=f((ubn,g2e)=>{"use strict";var x_=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};g2e.exports=class{constructor(){this.head=this.tail=new x_}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new x_),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var p2e=f((lbn,f2e)=>{var{kFree:z_t,kConnected:j_t,kPending:K_t,kQueued:X_t,kRunning:Z_t,kSize:$_t}=ps(),uB=Symbol("pool"),bZ=class{constructor(e){this[uB]=e}get connected(){return this[uB][j_t]}get free(){return this[uB][z_t]}get pending(){return this[uB][K_t]}get queued(){return this[uB][X_t]}get running(){return this[uB][Z_t]}get size(){return this[uB][$_t]}};f2e.exports=bZ});var xZ=f((dbn,N2e)=>{"use strict";var eOt=ib(),tOt=yZ(),{kConnected:wZ,kSize:m2e,kRunning:E2e,kPending:C2e,kQueued:$T,kBusy:rOt,kFree:nOt,kUrl:sOt,kClose:iOt,kDestroy:oOt,kDispatch:aOt}=ps(),AOt=p2e(),wA=Symbol("clients"),Ha=Symbol("needDrain"),e1=Symbol("queue"),NZ=Symbol("closed resolve"),SZ=Symbol("onDrain"),I2e=Symbol("onConnect"),B2e=Symbol("onDisconnect"),Q2e=Symbol("onC Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};kMe.exports=x$});var z_=f((Obn,UMe)=>{"use strict";var MMe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Mqt}=tn(),vqt=yb();LMe()===void 0&&vMe(new vqt);function vMe(t){if(!t||typeof t.dispatch!="function")throw new Mqt("Argument agent must implement Agent");Object.defineProperty(globalThis,MMe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function LMe(){return globalThis[MMe]}UMe.exports={setGlobalDispatcher:vMe,getGlobalDispatcher:LMe}});var j_=f((qbn,PMe)=>{"use strict";PMe.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var OMe=f((Gbn,_Me)=>{"use strict";var Lqt=S_();_Me.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new Lqt(r,o,s,i);return r(a,A)}}});var qMe=f((Ybn,HMe)=>{"use strict";var Uqt=P_();HMe.exports=t=>e=>function(n,s){return e(n,new Uqt({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var YMe=f((Jbn,GMe)=>{"use strict";var Pqt=mr(),{InvalidArgumentError:_qt,RequestAbortedError:Oqt}=tn(),Hqt=j_(),T$=class extends Hqt{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new _qt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=Pqt.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Oqt(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function qqt({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new T$({maxSize:i},s);return e(n,o)}}GMe.exports=qqt});var WMe=f((Vbn,VMe)=>{"use strict";var{isIP:Gqt}=B("node:net"),{lookup:Yqt}=B("node:dns"),Jqt=j_(),{InvalidArgumentError:Fb,InformationalError:Vqt}=tn(),JMe=Math.pow(2,31)-1,k$=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new Vqt("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){Yqt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===JMe?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===JMe?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new F$(this,e,r)}},F$=class extends Jqt{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":NUe(i)&&(r[s]=i);break;case"id":SUe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&NUe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&SUe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};RUe.exports={EventSourceStream:Eee}});var UUe=f((ywn,LUe)=>{"use strict";var{pipeline:eYt}=B("node:stream"),{fetching:tYt}=h1(),{makeRequest:rYt}=Lb(),{webidl:Xf}=Oo(),{EventSourceStream:nYt}=DUe(),{parseMIMEType:sYt}=yA(),{createFastMessageEvent:iYt}=qb(),{isNetworkError:xUe}=l1(),{delay:oYt}=pee(),{kEnumerableProperty:wB}=mr(),{environmentSettingsObject:TUe}=Qc(),kUe=!1,FUe=3e3,w1=0,MUe=1,N1=2,aYt="anonymous",AYt="use-credentials",Wb=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=w1;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Xf.util.markAsUncloneable(this);let n="EventSource constructor";Xf.argumentLengthCheck(arguments,1,n),kUe||(kUe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Xf.converters.USVString(e,n,"url"),r=Xf.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:FUe};let s=TUe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=aYt;r.withCredentials&&(o=AYt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=TUe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=rYt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===N1)return;this.#r=w1;let e={request:this.#s,dispatcher:this.#a},r=n=>{xUe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(xUe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?sYt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=MUe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new nYt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(iYt(A.type,A.options))}});eYt(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=tYt(e)}async#c(){this.#r!==N1&&(this.#r=w1,this.dispatchEvent(new Event("error")),await oYt(this.#o.reconnectionTime),this.#r===w1&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Xf.brandCheck(this,t),this.#r!==N1&&(this.#r=N1,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},vUe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:w1,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:MUe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:N1,writable:!1}};Object.defineProperties(Wb,vUe);Object.defineProperties(Wb.prototype,vUe);Object.defineProperties(Wb.prototype,{close:wB,onerror:wB,onmessage:wB,onopen:wB,readyState:wB,url:wB,withCredentials:wB});Xf.converters.EventSourceInitDict=Xf.dictionaryConverter([{key:"withCredentials",converter:Xf.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Xf.converters.any}]);LUe.exports={EventSource:Wb,defaultReconnectionTime:FUe}});var HUe=f((bwn,Mt)=>{"use strict";var cYt=Bb(),PUe=TT(),uYt=Qb(),lYt=v2e(),dYt=yb(),hYt=GZ(),gYt=iFe(),fYt=lFe(),_Ue=tn(),UO=mr(),{InvalidArgumentError:LO}=_Ue,zb=XFe(),pYt=FT(),mYt=b$(),EYt=FMe(),CYt=S$(),IYt=l$(),BYt=P_(),{getGlobalDispatcher:OUe,setGlobalDispatcher:QYt}=z_(),yYt=j_(),bYt=S_(),wYt=R_();Object.assign(PUe.prototype,zb);Mt.exports.Dispatcher=PUe;Mt.exports.Client=cYt;Mt.exports.Pool=uYt;Mt.exports.BalancedPool=lYt;Mt.exports.Agent=dYt;Mt.exports.ProxyAgent=hYt;Mt.exports.EnvHttpProxyAgent=gYt;Mt.expo Line truncated
\r
`),m6t=/\r\n/g,E6t=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function $b(t){OPe.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=_Pe(t,"maxHeaderPairs",2e3),this.maxHeaderSize=_Pe(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new f6t(p6t),this.ss.on("info",function(r,n,s,i){n&&!e.maxed&&(e.nread+i-s>=e.maxHeaderSize?(i=e.maxHeaderSize-e.nread+s,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=i-s,e.buffer+=n.toString("binary",s,i)),r&&e._finish()})}g6t($b,OPe);$b.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};$b.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};$b.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};$b.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(m6t),e=t.length,r,n;for(var s=0;s<e;++s){if(t[s].length===0)continue;if((t[s][0]===" "||t[s][0]===" ")&&n){this.header[n][this.header[n].length-1]+=t[s];continue}let i=t[s].indexOf(":");if(i===-1||i===0)return;if(r=E6t.exec(t[s]),n=r[1].toLowerCase(),this.header[n]=this.header[n]||[],this.header[n].push(r[2]||""),++this.npairs===this.maxHeaderPairs)break}};HPe.exports=$b});var ate=f((pNn,YPe)=>{"use strict";var ote=B("node:stream").Writable,C6t=B("node:util").inherits,I6t=ste(),GPe=UPe(),B6t=qPe(),Q6t=45,y6t=Buffer.from("-"),b6t=Buffer.from(`\r
`),w6t=function(){};function Ed(t){if(!(this instanceof Ed))return new Ed(t);if(ote.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new B6t(t),this._hparser.on("header",function(r){e._inHeader=!1,e._part.emit("header",r)})}C6t(Ed,ote);Ed.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let r=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(r+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else ote.prototype.emit.apply(this,arguments)};Ed.prototype._write=function(t,e,r){if(!this._hparser&&!this._bparser)return r();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new GPe(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let n=this._hparser.push(t);if(!this._inHeader&&n!==void 0&&n<t.length)t=t.slice(n);else return r()}this._firstWrite&&(this._bparser.push(b6t),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=r:r()};Ed.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};Ed.prototype.setBoundary=function(t){let e=this;this._bparser=new I6t(`\r
--`+t),this._bparser.on("info",function(r,n,s,i){e._oninfo(r,n,s,i)})};Ed.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",w6t),this._part.resume())};Ed.prototype._oninfo=function(t,e,r,n){let s,i=this,o=0,a,A=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&r+o<n;)if(e[r+o]===Q6t)++o,++this._dashes;else{this._dashes&&(s=y6t),this._dashes=0;break}if(this._dashes===2&&(r+o<n&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(r+o,n)),this.reset(),this._finished=!0,i._parts===0&&(i._realFinish=!0,i.emit("finish"),i._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new GPe(this._partOpts),this._part._read=function(c){i._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&r<n&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(s&&(A=this._part.push(s)),A=this._part.push(e.slice(r,n)),A||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(s&&this._hparser.push(s),a=this._hparser.push(e.slice(r,n)),!this._inHeader&&a!==void 0&&a<n&&this._oninfo(!1,e,r+a,n))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:r!==n&&(++this._parts,this._part.on("end",function(){--i._parts===0&&(i._finished?(i._realFinish=!0,i.emit("finish"),i._realFinish=!1):i._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};Ed.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};YPe.exports=Ed});var KO=f((Ate,WPe)=>{"use strict";var JPe=new TextDecoder("utf-8"),VPe=new Map([["utf-8",JPe],["utf8",JPe]]);function N6t(t){let e;for(;;)switch(t){case"utf-8":case"utf8":return v1.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return v1.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return v1.utf16le;case"base64":return v1.base64;default:if(e===void 0){e=!0,t=t.toLowerCase();continue}return v1.other.bind(t)}}var v1={utf8:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.utf8Slice(0,t.length)),latin1:(t,e)=>t.length===0?"":typeof t=="string"?t:t.latin1Slice(0,t.length),utf16le:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.ucs2Slice(0,t.length)),base64:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.base64Slice(0,t.length)),other:(t,e)=>{if(t.length===0)return"";if(typeof t=="string"&&(t=Buffer.from(t,e)),VPe.has(Ate.toString()))try{return VPe.get(Ate).decode(t)}catch{}return typeof t=="string"?t:t.toString()}};function S6t(t,e,r){return t&&N6t(r)(t,e)}WPe.exports=S6t});var ute=f((mNn,ZPe)=>{"use strict";var XO=KO(),zPe=/%[a-fA-F0-9][a-fA-F0-9]/g,R6t={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xLine truncated
`))}function S9t(t,e){let{headersList:r}=e,n=(r.get("referrer-policy")??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(h9t.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function R9t(){return"allowed"}function D9t(){return"success"}function x9t(){return"success"}function T9t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}function k9t(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&Ete(t.origin)&&!Ete(P1(t))&&(e=null);break;case"same-origin":rH(t,P1(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}function F9t(t){return p9t.now()}function M9t(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function v9t(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function L9t(t){return{referrerPolicy:t.referrerPolicy}}function U9t(t){let e=t.referrerPolicy;sw(e);let r=null;if(t.referrer==="client"){let a=f9t();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=pte(r),s=pte(r,!0);n.toString().length>4096&&(n=s);let i=rH(t,n),o=U1(n)&&!U1(t.url);switch(e){case"origin":return s??pte(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=P1(t);return rH(n,a)?n:U1(n)&&!U1(a)?"no-referrer":s}default:return o?"no-referrer":s}}function pte(t,e){return sw(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function U1(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function P9t(t,e){if(tH===void 0)return!0;let r=w_e(e);if(r==="no metadata"||r.length===0)return!0;let n=O9t(r),s=H9t(r,n);for(let i of s){let o=i.algo,a=i.hash,A=tH.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),q9t(A,a))return!0}return!1}var _9t=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function w_e(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=_9t.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();B_e.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function O9t(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function H9t(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}function q9t(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function G9t(t){}function rH(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Y9t(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function J9t(t){return t.controller.state==="aborted"}function V9t(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}var Cte={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(Cte,null);function W9t(t){return Cte[t.toLowerCase()]??t}function z9t(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return sw(typeof e=="string"),e}var j9t=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function K9t(t,e,r){let n={index:0,kind:r,target:t},s={next(){if(Object.getPrototypeOf(this)!==s)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:i,kind:o,target:a}=n,A=a(),c=A.length;if(i>=c)return{value:void 0,done:!0};let u=A[i];return n.index=i+1,X9t(u,o)},[Symbol.toStringTag]:`${e} Iterator`};return Object.setPrototypeOf(s,j9t),Object.setPrototypeOf({},s)}function X9t(t,e){let r;switch(e){case"key":{r=t[0];brea Line truncated
`||t===" "||t===" "}function Ite(t,e=!0,r=!0){let n=0,s=t.length-1;if(e)for(;n<t.length&&k_e(t[n]);n++);if(r)for(;s>0&&k_e(t[s]);s--);return t.slice(n,s+1)}function F_e(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}function pJt(t,e=!0,r=!0){let n=0,s=t.length-1;if(e)for(;n<t.length&&F_e(t[n]);n++);if(r)for(;s>0&&F_e(t[s]);s--);return t.slice(n,s+1)}U_e.exports={dataURLProcessor:dJt,URLSerializer:M_e,collectASequenceOfCodePoints:iH,collectASequenceOfCodePointsFast:iw,stringPercentDecode:v_e,parseMIMEType:Bte,collectAnHTTPQuotedString:L_e,serializeAMimeType:fJt}});var oH=f((DNn,q_e)=>{"use strict";var{Blob:O_e,File:P_e}=B("buffer"),{types:Qte}=B("util"),{kState:xc}=np(),{isBlobLike:H_e}=Hu(),{webidl:fn}=Ya(),{parseMIMEType:mJt,serializeAMimeType:EJt}=Cd(),{kEnumerableProperty:__e}=qr(),CJt=new TextEncoder,_1=class t extends O_e{constructor(e,r,n={}){fn.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=fn.converters["sequence<BlobPart>"](e),r=fn.converters.USVString(r),n=fn.converters.FilePropertyBag(n);let s=r,i=n.type,o;e:{if(i){if(i=mJt(i),i==="failure"){i="";break e}i=EJt(i).toLowerCase()}o=n.lastModified}super(IJt(e,n),{type:i}),this[xc]={name:s,lastModified:o,type:i}}get name(){return fn.brandCheck(this,t),this[xc].name}get lastModified(){return fn.brandCheck(this,t),this[xc].lastModified}get type(){return fn.brandCheck(this,t),this[xc].type}},yte=class t{constructor(e,r,n={}){let s=r,i=n.type,o=n.lastModified??Date.now();this[xc]={blobLike:e,name:s,type:i,lastModified:o}}stream(...e){return fn.brandCheck(this,t),this[xc].blobLike.stream(...e)}arrayBuffer(...e){return fn.brandCheck(this,t),this[xc].blobLike.arrayBuffer(...e)}slice(...e){return fn.brandCheck(this,t),this[xc].blobLike.slice(...e)}text(...e){return fn.brandCheck(this,t),this[xc].blobLike.text(...e)}get size(){return fn.brandCheck(this,t),this[xc].blobLike.size}get type(){return fn.brandCheck(this,t),this[xc].blobLike.type}get name(){return fn.brandCheck(this,t),this[xc].name}get lastModified(){return fn.brandCheck(this,t),this[xc].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(_1.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:__e,lastModified:__e});fn.converters.Blob=fn.interfaceConverter(O_e);fn.converters.BlobPart=function(t,e){if(fn.util.Type(t)==="Object"){if(H_e(t))return fn.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||Qte.isAnyArrayBuffer(t))return fn.converters.BufferSource(t,e)}return fn.converters.USVString(t,e)};fn.converters["sequence<BlobPart>"]=fn.sequenceConverter(fn.converters.BlobPart);fn.converters.FilePropertyBag=fn.dictionaryConverter([{key:"lastModified",converter:fn.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:fn.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=fn.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function IJt(t,e){let r=[];for(let n of t)if(typeof n=="string"){let s=n;e.endings==="native"&&(s=BJt(s)),r.push(CJt.encode(s))}else Qte.isAnyArrayBuffer(n)||Qte.isTypedArray(n)?n.buffer?r.push(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)):r.push(new Uint8Array(n)):H_e(n)&&r.push(n);return r}function BJt(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}function QJt(t){return P_e&&t instanceof P_e||t instanceof _1||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}q_e.exports={File:_1,FileLike:yte,isFileLike:QJt}});var AH=f((xNn,W_e)=>{"use strict";var{isBlobLike:aH,toUSVString:yJt,makeIterator:bte}=Hu(),{kState:aa}=np(),{File:V_e,FileLike:G_e,isFileLike:bJt}=oH(),{webidl:wn}=Ya(),{Blob:wJt,File:wte}=B("buffer"),Y_e=wte??V_e,ow=class t{constructor(e){if(e!==void 0)throw wn.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[aa]=[]}append(e,r,n=void 0){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!aH(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=wn.converters.USVString(e),r=aH(r)?wn.converters.Blob(r,{strict:!1}):wn.converters.USVString(r),n=arguments.length===3?wn.converters.USVString(n):void 0;let s=J_e(e,r,n);this[aa].push(s)}delete(e){wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=wn.converters.USVString(e),this[aa]=this[aa].filter(r=>r.name!==e)}get(e){wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=wn.converters.USVString(e);let r=this[aa].findIndex(n=>n.name===e);return r===-1?null:this[aa][r].value}getAll(e){return wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=wn.converters.USVString(e),this[aa].filter(r=>r.name===e).map(r=>r.value)}has(e){return wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=wn.converters.USVString(e),this[aa].findIndex(r=>r.name===e)!==-1}set(e,r,n=void 0){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!aH(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=wn.converters.USVString(e),r=aH(r)?wn.converters.Blob(r,{strict:!1}):wn.converters.USVString(r),n=arguments.length===3?yJt(n):void 0;let s=J_e(e,r,n),i=this[aa].findIndex(o=>o.name===e);i!==-1?this[aa]=[...this[aa].slice(0,i),s,...this[aa].slice(i+1).filter(o=>o.name!==e)]:this[aa].push(s)}entries(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","key")}values(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,r=globalThis){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[n,s]of this)e.apply(r,[s,n,this])}};ow.prototype[Symbol.iterator]=ow.prototype.entries;Object.defineProperties(ow.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function J_e(t,e,r){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(bJt(e)||(e=e instanceof wJt?new Y_e([e],"blob",{type:e.type}):new G_e(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=wte&&e instanceof wte||e instanceof V_e?new Y_e([e],r,n):new G_e(e,r,n)}return{name:t,value:e}}W_e.exports={FormData:ow}});var O1=f((TNn,rOe)=>{"use strict";var NJt=l_e(),aw=qr(),{ReadableStreamFrom:SJt,isBlobLike:z_e,isReadableStreamLike:RJt,readableStreamClose:DJt,createDeferredPromise:xJt,fullyReadBody:TJt}=Hu(),{FormData:j_e}=AH(),{kState:ip}=np(),{webidl:Nte}=Ya(),{DOMException:Z_e,structuredClone:kJt}=dE(),{Blob:FJt,File:MJt}=B("buffer"),{kBodyUsed:vJt}=ts(),Ste=B("assert"),{isErrored:LJt}=qr(),{isUint8Array:$_e,isArrayBuffer:UJt}=B("util/types"),{File:PJt}=oH(),{parseMIMEType:_Jt,serializeAMimeType:OJt}=Cd(),Rte;try{let t=B("node:crypto");Rte=e=>t.randomInt(0,e)}catch{Rte=t=>Math.floor(Math.random(t))}var sp=globalThis.ReadableStream,K_e=MJt??PJt,cH=new TextEncoder,HJt=new TextDecoder;function eOe(t,e=!1){sp||(sp=B("stream/web").ReadableStream);let r=null;t instanceof sp?r=t:z_e(t)?r=t.stream():r=new sp({async pull(A){A.enqueue(typeof s=="string"?cH.encode(s):s),queueMicrotask(()=>DJt(A))},start(){},type:void 0}),Ste(RJt(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(UJt(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(aw.isFormDataLike(t)){let A=`----formdata-undici-0${`${Rte(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=cH.encode(c+`; name="${u(l(C))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=cH.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=cH.encode(`--${A}--`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o="multipart/form-data; boundary="+A}else if(z_e(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(aw.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof sp?t:SJt(t)}if((typeof s=="string"||aw.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new sp({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();return l?queueMicrotask(()=>{c.close()}):LJt(r)||c.enqueue(new Uint8Array(u)),c.desiredSize>0},async cancel(c){await A.return()},type:void 0})}return[{stream:r,source:s,length:i},o]}function qJt(t,e=!1){return sp||(sp=B("stream/web").ReadableStream),t instanceof sp&&(Ste(!aw.isDisturbed(t),"The body has already been consumed."),Ste(!t.locked,"The stream is locked.")),eOe(t,e)}function GJt(t){let[e,r]=t.stream.tee(),n=kJt(r,{transfer:[r]}),[,s]=n.tee();return t.stream=e,{stream:s,length:t.length,source:t.source}}async function*X_e(t){if(t)if($_e(t))yield t;else{let e=t.stream;if(aw.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[vJt]=!0,yield*e}}function Dte(t){if(t.aborted)throw new Z_e("The operation was aborted.","AbortError")}function YJt(t){return{blob(){return uH(this,r=>{let n=zJt(this);return n==="failure"?n="":n&&(n=OJt(n)),new FJt([r],{type:n})},t)},arrayBuffer(){return uH(this,r=>new Uint8Array(r).buffer,t)},text(){return uH(this,tOe,t)},json(){return uH(this,WJt,t)},async formData(){Nte.brandCheck(this,t),Dte(this[ip]);let r=this.headers.get("Content-Type");if(/multipart\/form-data/.test(r)){let n={};for(let[a,A]of this.headers)n[a.toLowerCase()]=A;let s=new j_e,i;try{i=new NJt({headers:n,preservePath:!0})}catch(a){throw new Z_e(`${a}`,"AbortError")}i.on("field",(a,A)=>{s.append(a,A)}),i.on("file",(a,A,c,u,l)=>{let d=[];if(u==="base64"||u.toLowerCase()==="base64"){let h="";A.on("data",g=>{h+=g.toString().replace(/[\r\n]/gm,"");let p=h.length-h.length%4;d.push(Buffer.from(h.slice(0,p),"base64")),h=h.slice(p)}),A.on("end",()=>{d.push(Buffer.from(h,"base64")),s.append(a,new K_e(d,c,{type:l}))})}else A.on("data",h=>{d.push(h)}),A.on("end",()=>{s.append(a,new K_e(d,c,{type:l}))})});let o=new Promise((a,A)=>{i.on("finish",a),i.on("error",c=>A(new TypeError(c)))});if(this.body!==null)for await(let a of X_e(this[ip].body))i.write(a);return i.end(),await o,s}else if(/application\/x-www-form-urlencoded/.test(r)){let n;try{let i="",o=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let a of X_e(this[ip].body)){if(!$_e(a))throw new TypeError("Expected Uint8Array chunk");i+=o.decode(a,{stream:!0})}i+=o.decode(),n=new URLSearchParams(i)}catch(i){throw Object.assign(new TypeError,{cause:i})}let s=new j_e;for(let[i,o]of n)s.append(i,o);return s}else throw await Promise.resolve(),Dte(this[ip]),Nte.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}function JJt(t){Object.assign(t.prototype,YJt(t))}async function uH(t,e,r){if(Nte.brandCheck(t,r),Dte(t[ip]),VJt(t[ip].body))throw new TypeError("Body is unusable");let n=xJt(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[ip].body==null?(i(new Uint8Array),n.promise):(await TJt(t[ip].body,i,s),n.promise)}function VJt(t){return t!=null&&(t.stream.locked||aw.isDisturbed(t.stream))}function tOe(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),HJt.decode(t))}function WJt(t){return JSON.parse(tOe(t))}function zJt(t){let{headersList:e}=t[ip],r=e.get("content-type");return r===null?"failure":_Jt(r)}rOe.exports={extractBody:eOe,safelyExtractBody:qJt,cloneBody:GJt,mixinBody:JJt}});var oOe=f((kNn,iOe)=>{"use strict";var{InvalidArgumentError:Yn,NotSupportedError:jJt}=Un(),op=B("assert"),{kHTTP2BuildRequest:KJt,kHTTP2CopyHeaders:XJt,kHTTP1BuildRequest:ZJt}=ts(),xA=qr(),nOe=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,sOe=/[^\t\x20-\x7e\x80-\xff]/,$Jt=/[^\u0021-\u00ff]/,Id=Symbol("handler"),xi={},xte;try{let t=B("diagnostics_channel");xi.create=t.channel("undici:request:create"),xi.bodySent=t.channel("undici:request:bodySent"),xi.headers=t.channel("undici:request:headers"),xi.trailers=t.channel("undici:request:trailers"),xi.error=t.channel("undici:request:error")}catch{xi.create={hasSubscribers:!1},xi.bodySent={hasSubscribers:!1},xi.headers={hasSubscribers:!1},xi.trailers={hasSubscribers:!1},xi.error={hasSubscribers:!1}}var Tte=class t{constructor(e,{path:r,method:n,body:s,headers:i,query:o,idempotent:a,blocking:A,upgrade:c,headersTimeout:u,bodyTimeout:l,reset:d,throwOnError:h,expectContinue:g},p){if(typeof r!="string")throw new Yn("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsLine truncated
`),this.body=C.stream,this.contentLength=C.length}else xA.isBlobLike(s)&&this.contentType==null&&s.type&&(this.contentType=s.type,this.headers+=`content-type: ${s.type}\r
`);xA.validateHandler(p,n,c),this.servername=xA.getServerName(this.host),this[Id]=p,xi.create.hasSubscribers&&xi.create.publish({request:this})}onBodySent(e){if(this[Id].onBodySent)try{return this[Id].onBodySent(e)}catch(r){this.abort(r)}}onRequestSent(){if(xi.bodySent.hasSubscribers&&xi.bodySent.publish({request:this}),this[Id].onRequestSent)try{return this[Id].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(op(!this.aborted),op(!this.completed),this.error)e(this.error);else return this.abort=e,this[Id].onConnect(e)}onHeaders(e,r,n,s){op(!this.aborted),op(!this.completed),xi.headers.hasSubscribers&&xi.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:s}});try{return this[Id].onHeaders(e,r,n,s)}catch(i){this.abort(i)}}onData(e){op(!this.aborted),op(!this.completed);try{return this[Id].onData(e)}catch(r){return this.abort(r),!1}}onUpgrade(e,r,n){return op(!this.aborted),op(!this.completed),this[Id].onUpgrade(e,r,n)}onComplete(e){this.onFinally(),op(!this.aborted),this.completed=!0,xi.trailers.hasSubscribers&&xi.trailers.publish({request:this,trailers:e});try{return this[Id].onComplete(e)}catch(r){this.onError(r)}}onError(e){if(this.onFinally(),xi.error.hasSubscribers&&xi.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Id].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,r){return H1(this,e,r),this}static[ZJt](e,r,n){return new t(e,r,n)}static[KJt](e,r,n){let s=r.headers;r={...r,headers:null};let i=new t(e,r,n);if(i.headers={},Array.isArray(s)){if(s.length%2!==0)throw new Yn("headers array must be even");for(let o=0;o<s.length;o+=2)H1(i,s[o],s[o+1],!0)}else if(s&&typeof s=="object"){let o=Object.keys(s);for(let a=0;a<o.length;a++){let A=o[a];H1(i,A,s[A],!0)}}else if(s!=null)throw new Yn("headers must be an object or an array");return i}static[XJt](e){let r=e.split(`\r
`),n={};for(let s of r){let[i,o]=s.split(": ");o==null||o.length===0||(n[i]?n[i]+=`,${o}`:n[i]=o)}return n}};function FB(t,e,r){if(e&&typeof e=="object")throw new Yn(`invalid ${t} header`);if(e=e!=null?`${e}`:"",sOe.exec(e)!==null)throw new Yn(`invalid ${t} header`);return r?e:`${t}: ${e}\r
`}function H1(t,e,r,n=!1){if(r&&typeof r=="object"&&!Array.isArray(r))throw new Yn(`invalid ${e} header`);if(r===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(sOe.exec(r)!==null)throw new Yn(`invalid ${e} header`);t.host=r}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(r,10),!Number.isFinite(t.contentLength))throw new Yn("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=r,n?t.headers[e]=FB(e,r,n):t.headers+=FB(e,r);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new Yn("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let s=typeof r=="string"?r.toLowerCase():null;if(s!=="close"&&s!=="keep-alive")throw new Yn("invalid connection header");s==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new Yn("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new Yn("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new jJt("expect header not supported");if(nOe.exec(e)===null)throw new Yn("invalid header key");if(Array.isArray(r))for(let s=0;s<r.length;s++)n?t.headers[e]?t.headers[e]+=`,${FB(e,r[s],n)}`:t.headers[e]=FB(e,r[s],n):t.headers+=FB(e,r[s]);else n?t.headers[e]=FB(e,r,n):t.headers+=FB(e,r)}}}iOe.exports=Tte});var lH=f((FNn,aOe)=>{"use strict";var eVt=B("events"),kte=class extends eVt{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};aOe.exports=kte});var G1=f((MNn,AOe)=>{"use strict";var tVt=lH(),{ClientDestroyedError:Fte,ClientClosedError:rVt,InvalidArgumentError:Aw}=Un(),{kDestroy:nVt,kClose:sVt,kDispatch:Mte,kInterceptors:MB}=ts(),cw=Symbol("destroyed"),q1=Symbol("closed"),ap=Symbol("onDestroyed"),uw=Symbol("onClosed"),dH=Symbol("Intercepted Dispatch"),vte=class extends tVt{constructor(){super(),this[cw]=!1,this[ap]=null,this[q1]=!1,this[uw]=[]}get destroyed(){return this[cw]}get closed(){return this[q1]}get interceptors(){return this[MB]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[MB][r]!="function")throw new Aw("interceptor must be an function")}this[MB]=e}close(e){if(e===void 0)return new Promise((n,s)=>{this.close((i,o)=>i?s(i):n(o))});if(typeof e!="function")throw new Aw("invalid callback");if(this[cw]){queueMicrotask(()=>e(new Fte,null));return}if(this[q1]){this[uw]?this[uw].push(e):queueMicrotask(()=>e(null,null));return}this[q1]=!0,this[uw].push(e);let r=()=>{let n=this[uw];this[uw]=null;for(let s=0;s<n.length;s++)n[s](null,null)};this[sVt]().then(()=>this.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((s,i)=>{this.destroy(e,(o,a)=>o?i(o):s(a))});if(typeof r!="function")throw new Aw("invalid callback");if(this[cw]){this[ap]?this[ap].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new Fte),this[cw]=!0,this[ap]=this[ap]||[],this[ap].push(r);let n=()=>{let s=this[ap];this[ap]=null;for(let i=0;i<s.length;i++)s[i](null,null)};this[nVt](e).then(()=>{queueMicrotask(n)})}[dH](e,r){if(!this[MB]||this[MB].length===0)return this[dH]=this[Mte],this[Mte](e,r);let n=this[Mte].bind(this);for(let s=this[MB].length-1;s>=0;s--)n=this[MB][s](n);return this[dH]=n,n(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new Aw("handler must be an object");try{if(!e||typeof e!="object")throw new Aw("opts must be an object.");if(this[cw]||this[ap])throw new Fte;if(this[q1])throw new rVt;return this[dH](e,r)}catch(n){if(typeof r.onError!="function")throw new Aw("invalid onError method");return r.onError(n),!1}}};AOe.exports=vte});var Y1=f((UNn,lOe)=>{"use strict";var iVt=B("net"),cOe=B("assert"),uOe=qr(),{InvalidArgumentError:oVt,ConnectTimeoutError:aVt}=Un(),Lte,Ute;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?Ute=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(r=>{if(this._sessionCache.size<this._maxCachedSessions)return;let n=this._sessionCache.get(r);n!==void 0&&n.deref()===void 0&&this._sessionCache.delete(r)})}get(e){let r=this._sessionCache.get(e);return r?r.deref():null}set(e,r){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(r)),this._sessionRegistry.register(r,e))}}:Ute=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,r){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:n}=this._sessionCache.keys().next();this._sessionCache.delete(n)}this._sessionCache.set(e,r)}}};function AVt({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,...s}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new oVt("maxCachedSessions must be a positive integer or zero");let i={path:r,...s},o=new Ute(e??100);return n=n??1e4,t Line truncated
`,this[ROe]=A??3e5,this[SOe]=s??3e5,this[K1]=I??!0,this[PVt]=w,this[X1]=z,this[gE]=null,this[xOe]=W>-1?W:-1,this[Uh]="h1",this[kc]=null,this[IH]=oe?{openStreams:0,maxConcurrentStreams:Z??100}:null,this[TOe]=`${this[qo].hostname}${this[qo].port?`:${this[qo].port}`:""}`,this[rs]=[],this[ns]=0,this[Tc]=0}get pipelining(){return this[pE]}set pipelining(e){this[pE]=e,Fc(this,!0)}get[UB](){return this[rs].length-this[Tc]}get[Fs](){return this[Tc]-this[ns]}get[LB](){return this[rs].length-this[ns]}get[UVt](){return!!this[Ws]&&!this[dw]&&!this[Ws].destroyed}get[Jte](){let e=this[Ws];return e&&(e[Ja]||e[up]||e[gw])||this[LB]>=(this[pE]||1)||this[UB]>0}[LVt](e){vOe(this),this.once("connect",e)}[HVt](e,r){let n=e.origin||this[qo].origin,s=this[Uh]==="h2"?Yte[GVt](n,e,r):Yte[JVt](n,e,r);return this[rs].push(s),this[vB]||(ft.bodyLength(s.body)==null&&ft.isIterable(s.body)?(this[vB]=1,process.nextTick(Fc,this)):Fc(this,!0)),this[vB]&&this[fE]!==2&&this[Jte]&&(this[fE]=2),this[fE]<2}async[_Vt](){return new Promise(e=>{this[LB]?this[gE]=e:e(null)})}async[OVt](e){return new Promise(r=>{let n=this[rs].splice(this[Tc]);for(let i=0;i<n.length;i++){let o=n[i];Va(this,o,e)}let s=()=>{this[gE]&&(this[gE](),this[gE]=null),r()};this[kc]!=null&&(ft.destroy(this[kc],e),this[kc]=null,this[IH]=null),this[Ws]?ft.destroy(this[Ws].on("close",s),e):queueMicrotask(s),Fc(this)})}};function $Vt(t){Ve(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ws][Go]=t,bH(this[Lh],t)}function eWt(t,e,r){let n=new vh(`HTTP/2: "frameError" received - type ${t}, code ${e}`);r===0&&(this[Ws][Go]=n,bH(this[Lh],n))}function tWt(){ft.destroy(this,new hw("other side closed")),ft.destroy(this[Ws],new hw("other side closed"))}function rWt(t){let e=this[Lh],r=new vh(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[Ws]=null,e[kc]=null,e.destroyed){Ve(this[UB]===0);let n=e[rs].splice(e[ns]);for(let s=0;s<n.length;s++){let i=n[s];Va(this,i,r)}}else if(e[Fs]>0){let n=e[rs][e[ns]];e[rs][e[ns]++]=null,Va(e,n,r)}e[Tc]=e[ns],Ve(e[Fs]===0),e.emit("disconnect",e[qo],[e],r),Fc(e)}var kh=hOe(),nWt=fH(),sWt=Buffer.alloc(0);async function iWt(){let t=process.env.JEST_WORKER_ID?Hte():void 0,e;try{e=await WebAssembly.compile(Buffer.from(IOe(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||Hte(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-Mh+Fh.byteOffset;return Gi.onStatus(new pH(Fh.buffer,i,s))||0},wasm_on_message_begin:r=>(Ve.strictEqual(Gi.ptr,r),Gi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-Mh+Fh.byteOffset;return Gi.onHeaderField(new pH(Fh.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-Mh+Fh.byteOffset;return Gi.onHeaderValue(new pH(Fh.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ve.strictEqual(Gi.ptr,r),Gi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-Mh+Fh.byteOffset;return Gi.onBody(new pH(Fh.buffer,i,s))||0},wasm_on_message_complete:r=>(Ve.strictEqual(Gi.ptr,r),Gi.onMessageComplete()||0)}})}var Gte=null,zte=iWt();zte.catch();var Gi=null,Fh=null,mH=0,Mh=null,fw=1,CH=2,jte=3,Kte=class{constructor(e,r,{exports:n}){Ve(Number.isFinite(e[EH])&&e[EH]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(kh.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[EH],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[xOe]}setTimeout(e,r){this.timeoutType=r,e!==this.timeoutValue?(qte.clearTimeout(this.timeout),e?(this.timeout=qte.setTimeout(oWt,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(Ve(this.ptr!=null),Ve(Gi==null),this.llhttp.llhttp_resume(this.ptr),Ve(this.timeoutType===CH),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||sWt),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Ve(this.ptr!=null),Ve(Gi==null),Ve(!this.paused);let{socket:r,llhttp:n}=this;e.length>mH&&(Mh&&n.free(Mh),mH=Math.ceil(e.length/4096)*4096,Mh=n.malloc(mH)),new Uint8Array(n.memory.buffer,Mh,mH).set(e);try{let s;try{Fh=e,Gi=this,s=n.llhttp_execute(this.ptr,Mh,e.length)}catch(o){throw o}finally{Gi=null,Fh=null}let i=n.llhttp_get_error_pos(this.ptr)-Mh;if(s===kh.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(i));else if(s===kh.ERROR.PAUSED)this.paused=!0,r.unshift(e.slice(i));else if(s!==kh.ERROR.OK){let o=n.llhttp_get_error_reason(this.ptr),a="";if(o){let A=new Uint8Array(n.memory.buffer,o).indexOf(0);a="Response do Line truncated
`;return typeof i=="string"?g+=`host: ${i}\r
`:g+=t[bOe],o?g+=`connection: upgrade\r
upgrade: ${o}\r
`:t[pE]&&!h[Ja]?g+=`connection: keep-alive\r
`:t[GS]&&!h[ti]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,a&&(g+=a),Aa.sendHeaders.hasSubscribers&&Aa.sendHeaders.publish({request:e,headers:g,socket:h}),!r||l===0?(d===0?h.write(`${g}content-length: 0\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return qre.sendHeaders.hasSubscribers&&qre.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?Kre(f,null,t,e,h,u,g,l):Pe.isBuffer(c)?Kre(f,c,t,e,h,u,g,l):Pe.isBlobLike(c)?typeof c.stream=="function"?$re(f,c.stream(),t,e,h,u,g,l):QGe(f,c,t,e,h,u,g,l):Pe.isStream(c)?bGe(f,c,t,e,h,u,g,l):Pe.isIterable(c)?$re(f,c,t,e,h,u,g,l):Me(!1),!0}function bGe(t,e,r,n,s,i,o,a){Me(i!==0||r[cn]===0,"stream body cannot be pipelined");let c=!1,A=new VS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){Pe.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new Xre;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Me(s.destroyed||s[_l]&&r[cn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Pe.destroy(e,f):Pe.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 Kre(t,e,r,n,s,i,o,a){try{e?Pe.isBuffer(e)&&(Me(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"):(Ve(d===null,"no body must not have content length"),h.write(`${g}\r
`,"latin1")),e.onRequestSent()):ft.isBuffer(r)?(Ve(d===r.byteLength,"buffer body must have content length"),h.cork(),h.write(`${g}content-length: ${d}\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[ti]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"),h.write(r),h.uncork(),e.onBodySent(r),e.onRequestSent(),u||(h[Ja]=!0)):ft.isBlobLike(r)?typeof r.stream=="function"?QH({body:r.stream(),client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):POe({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):ft.isStream(r)?UOe({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):ft.isIterable(r)?QH({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):Ve(!1),!0}function cWt(t,e,r){let{body:n,method:s,path:i,host:o,upgrade:a,expectContinue:A,signal:c,headers:u}=r,l;if(typeof u=="string"?l=Yte[YVt](u.trim()):l=u,a)return Va(t,r,new Error("Upgrade not supported for H2")),!1;try{r.onConnect(I=>{r.aborted||r.completed||Va(t,r,I||new Zte)})}catch(I){Va(t,r,I)}if(r.aborted)return!1;let d,h=t[IH];if(l[VVt]=o||t[TOe],l[WVt]=s,s==="CONNECT")return e.ref(),d=e.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(r.onUpgrade(null,null,d),++h.openStreams):d.once("ready",()=>{r.onUpgrade(null,null,d),++h.openStreams}),d.once("close",()=>{h.openStreams-=1,h.openStreams===0&&e.unref()}),!0;l[zVt]=i,l[jVt]="https";let g=s==="PUT"||s==="POST"||s==="PATCH";n&&typeof n.read=="function"&&n.read(0);let p=ft.bodyLength(n);if(p==null&&(p=r.contentLength),(p===0||!g)&&(p=null),LOe(s)&&p>0&&r.contentLength!=null&&r.contentLength!==p){if(t[K1])return Va(t,r,new cp),!1;process.emitWarning(new cp)}p!=null&&(Ve(n,"no body must not have content length"),l[KVt]=`${p}`),e.ref();let C=s==="GET"||s==="HEAD";return A?(l[XVt]="100-continue",d=e.request(l,{endStream:C,signal:c}),d.once("continue",m)):(d=e.request(l,{endStream:C,signal:c}),m()),++h.openStreams,d.once("response",I=>{let{[ZVt]:y,...w}=I;r.onHeaders(Number(y),w,d.resume.bind(d),"")===!1&&d.pause()}),d.once("end",()=>{r.onComplete([])}),d.on("data",I=>{r.onData(I)===!1&&d.pause()}),d.once("close",()=>{h.openStreams-=1,h.openStreams===0&&e.unref()}),d.once("error",function(I){t[kc]&&!t[kc].destroyed&&!this.closed&&!this.destroyed&&(h.streams-=1,ft.destroy(d,I))}),d.once("frameError",(I,y)=>{let w=new vh(`HTTP/2: "frameError" received - type ${I}, code ${y}`);Va(t,r,w),t[kc]&&!t[kc].destroyed&&!this.closed&&!this.destroyed&&(h.streams-=1,ft.destroy(d,w))}),!0;function m(){n?ft.isBuffer(n)?(Ve(p===n.byteLength,"buffer body must have content length"),d.cork(),d.write(n),d.uncork(),d.end(),r.onBodySent(n),r.onRequestSent()):ft.isBlobLike(n)?typeof n.stream=="function"?QH({client:t,request:r,contentLength:p,h2stream:d,expectsPayload:g,body:n.stream(),socket:t[Ws],header:""}):POe({body:n,client:t,request:r,contentLength:p,expectsPayload:g,h2stream:d,header:"",socket:t[Ws]}):ft.isStream(n)?UOe({body:n,client:t,request:r,contentLength:p,expectsPayload:g,socket:t[Ws],h2stream:d,header:""}):ft.isIterable(n)?QH({body:n,client:t,request:r,contentLength:p,expectsPayload:g,header:"",h2stream:d,socket:t[Ws]}):Ve(!1):r.onRequestSent()}}function UOe({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){if(Ve(i!==0||r[Fs]===0,"stream body cannot be pipelined"),r[Uh]==="h2"){let p=function(C){n.onBodySent(C)},g=NVt(e,t,C=>{C?(ft.destroy(e,C),ft.destroy(t,C)):n.onRequestSent()});g.on("data",p),g.once("end",()=>{g.removeListener("data",p),ft.destroy(g)});return}let A=!1,c=new yH({socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){ft.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(A)return;let g=new Zte;queueMicrotask(()=>h(g))},h=function(g){if(!A){if(A=!0,Ve(s.destroyed||s[up]&&r[Fs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("error",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?ft.destroy(e,g):ft.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h)}async function POe({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){Ve(i===e.size,"blob body must have content length");let A=r[Uh]==="h2";try{if(i!=null&&i!==e.size)throw new cp;let c=Buffer.from(await e.arrayBuffer());A?(t.cork(),t.write(c),t.uncork()):(s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(Me(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[gu]()}catch(c){t(c)}}async function QGe(t,e,r,n,s,i,o,a){Me(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(c),s.uncork()),n.onBodySent(c),n.onRequestSent(),a||(s[Ja]=!0),Fc(r)}catch(c){ft.destroy(A?t:s,c)}}async function QH({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){Ve(i!==0||r[Fs]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ve(A===null),s[Go]?h(s[Go]):A=d});if(r[Uh]==="h2"){t.on("close",c).on("drain",c);try{for await(let d of e){if(s[Go])throw s[Go];let h=t.write(d);n.onBodySent(d),h||await u()}}catch(d){t.destroy(d)}finally{n.onRequestSent(),t.end(),t.off("close",c).off("drain",c)}return}s.on("close",c).on("drain",c);let l=new yH({socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Go])throw s[Go];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var yH=class{constructor({socket:e,request:r,contentLength:n,client:s,expectsPayload:i,header:o}){this.socket=e,this.request=r,this.contentLength=n,this.client=s,this.bytesWritten=0,this.expectsPayload=i,this.header=o,e[up]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Go])throw r[Go];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[K1])throw new cp;process.emitWarning(new cp)}r.cork(),o===0&&(a||(r[Ja]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[ti]=!0),r[gu]()}catch(c){t(c)}}async function $re(t,e,r,n,s,i,o,a){Me(i!==0||r[cn]===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)=>{Me(c===null),s[Ts]?h(s[Ts]):c=d});s.on("close",A).on("drain",A);let l=new VS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Ts])throw s[Ts];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var VS=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[_l]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Ts])throw r[Ts];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[kU])throw new Vh;process.emitWarning(new Vh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[ti]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Vs].timeout&&r[Vs].timeoutType===fw&&r[Vs].timeout.refresh&&r[Vs].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[up]=!1,e[Go])throw e[Go];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[lr].timeout&&r[lr].timeoutType===fm&&r[lr].timeout.refresh&&r[lr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[_l]=!1,e[Ts])throw e[Ts];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[K1])throw new cp;process.emitWarning(new cp)}e[Vs].timeout&&e[Vs].timeoutType===fw&&e[Vs].timeout.refresh&&e[Vs].timeout.refresh(),Fc(n)}}destroy(e){let{socket:r,client:n}=this;r[up]=!1,e&&(Ve(n[Fs]<=1,"pipeline should only contain this request"),ft.destroy(r,e))}};function Va(t,e,r){try{e.onError(r),Ve(e.aborted)}catch(n){t.emit("error",n)}}_Oe.exports=Wte});var HOe=f((VNn,OOe)=>{"use strict";var wH=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};OOe.exports=class{constructor(){this.head=this.tail=new wH}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new wH),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var GOe=f((WNn,qOe)=>{var{kFree:uWt,kConnected:lWt,kPending:dWt,kQueued:hWt,kRunning:gWt,kSize:fWt}=ts(),PB=Symbol("pool"),$te=class{constructor(e){this[PB]=e}get connected(){return this[PB][lWt]}get free(){return this[PB][uWt]}get pending(){return this[PB][dWt]}get queued(){return this[PB][hWt]}get running(){return this[PB][gWt]}get size(){return this[PB][fWt]}};qOe.exports=$te});var ire=f((zNn,$Oe)=>{"use strict";var pWt=G1(),mWt=HOe(),{kConnected:ere,kSize:YOe,kRunning:JOe,kPending:VOe,kQueued:$1,kBusy:EWt,kFree:CWt,kUrl:IWt,kClose:BWt,kDestroy:QWt,kDispatch:yWt}=ts(),bWt=GOe(),TA=Symbol("clients"),Wa=Symbol("needDrain"),ek=Symbol("queue"),tre=Symbol("closed resolve"),rre=Symbol("onDrain"),WOe=Symbol("onConnect"),zOe=Symbol("onDisconnect"),jOe=Symbol("onConnectionError"),nre=Symbol("get dispatcher"),XOe=Symbol("add client"),ZOe=Symbol("remove client"),KOe=Symbol("stats"),sre=class extends pWt{constructor(){super(),this[ek]=new mWt,this[TA]=[],this[$1]=0;let e=this;this[rre]=function(n,s){let i=e[ek],o=!1;for(;!o;){let a=i.shift();if(!a)break;e[$1]--,o=!this.dispatch(a.opts,a.handler)}this[Wa]=o,!this[Wa]&&e[Wa]&&(e[Wa]=!1,e.emit("drain",n,[e,...s])),e[tre]&&i.isEmpty()&&Promise.all(e[TA].map(a=>a.close())).then(e[tre])},this[WOe]=(r,n)=>{e.emit("connect",r,[e,...n])},this[zOe]=(r,n,s)=>{e.emit("disconnect",r,[e,...n],s)},this[jOe]=(r,n,s)=>{e.emit("connectionError",r,[e,...n],s)},this[KOe]=new bWt(this)}get[EWt](){return this[Wa]}get[ere](){return this[TA].filter(e=>e[ere]).length}get[CWt](){return this[TA].filter(e=>e[ere]&&!e[Wa]).length}get[VOe](){let e=this[$1];for(let{[VOe]:r}of this[TA])e+=r;return e}get[JOe](){let e=0;for(let{[JOe]:r}of this[TA])e+=r;return e}get[YOe](){let e=this[$1];for(let{[YOe]:r}of this[TA])e+=r;return e}get stats(){return this[KOe]}async[BWt](){return this[ek].isEmpty()?Promise.all(this[TA].map(e=>e.close())):new Promise(e=>{this[tre]=e})}async[QWt](e){for(;;){let r=this[ek].shift();if(!r)break;r.handler.onError(e)}return Promise.all(this[TA].map(r=>r.destroy(e)))}[yWt](e,r){let n=this[nre]();return n?n.dispatch(e,r)||(n[Wa]=!0,this[Wa]=!this[nre]()):(this[Wa]=!0,this[ek].push({opts:e,handler:r}),this[$1]++),!this[Wa]}[XOe](e){return e.on("drain",this[rre]).on("connect",this[WOe]).on("disconnect",this[zOe]).on("connectionError",this[jOe]),this[TA].push(e),this[Wa]&&process.nextTick(()=>{this[Wa]&&this[rre](e[IWt],[this,e])}),this}[ZOe](e){e.close(()=>{let r=this[TA].indexOf(e);r!==-1&&this[TA].splice(r,1)}),this[Wa]=this[TA].some(r=>!r[Wa]&&r.closed!==!0&&r.destroyed!==!0)}};$Oe.exports={PoolBase:sre,kClients:TA,kNeedDrain:Wa,kAddClient:XOe,kRemoveClient:ZOe,kGetDispatcher:nre}});var pw=f((jNn,rHe)=>{"use strict";var{PoolBase:wWt,kClients:NH,kNeedDrain:NWt,kAddClient:SWt,kGetDispatcher:RWt}=ire(),DWt=Z1(),{InvalidArgumentError:ore}=Un(),are=qr(),{kUrl:eHe,kInterceptors:xWt}=ts(),TWt=Y1(),Are=Symbol("options"),cre=Symbol("connections"),tHe=Symbol("factory");function kWt(t,e){return new DWt(t,e)}var ure=class extends wWt{constructor(e,{connections:r,factory:n=kWt,connect:s,connectTimeout:i,tls:o,maxCachedSessions:a,socketPath:A,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u,allowH2:l,...d}={}){if(super(),r!=null&&(!Number.isFinite(r)||r<0))throw new ore("invalid connections");if(typeof n!="function")throw new ore("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new ore("connect must be a function or an object");typeof s!="function"&&(s=TWt({...o,maxCachedSessions:a,allowH2:l,socketPath:A,timeout:i,...are.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u}:void 0,...s})),this[xWt]=d.interceptors&&d.interceptors.Pool&&Array.isArray(d.interceptors.Pool)?d.interceptors.Pool:[],this[cre]=r||null,this[eHe]=are.parseOrigin(e),this[Are]={...are.deepClone(d),connect:s,allowH2:l},this[Are].interceptors=d.interceptors?{...d.interceptors}:void 0,this[tHe]=n,this.on("con Line truncated
`,"latin1"),r!==null&&s!==r){if(n[kU])throw new Vh;process.emitWarning(new Vh)}e[lr].timeout&&e[lr].timeoutType===fm&&e[lr].timeout.refresh&&e[lr].timeout.refresh(),n[gu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[_l]=!1,e&&(Me(n[cn]<=1,"pipeline should only contain this request"),s(e))}};nne.exports=EGe});var dne=C((RJt,lne)=>{"use strict";var xo=Q("node:assert"),{pipeline:wGe}=Q("node:stream"),Et=dt(),{RequestContentLengthMismatchError:LU,RequestAbortedError:ine,SocketError:JI,InformationalError:UU}=_t(),{kUrl:WS,kReset:zS,kClient:gm,kRunning:jS,kPending:SGe,kQueue:Fl,kPendingIdx:PU,kRunningIdx:ka,kError:_a,kSocket:vn,kStrictContentLength:NGe,kOnError:OU,kMaxConcurrentStreams:une,kHTTP2Session:va,kResume:Ml,kSize:TGe,kHTTPContext:xGe}=br(),pu=Symbol("open streams"),one,ane=!1,JS;try{JS=Q("node:http2")}catch{JS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:RGe,HTTP2_HEADER_METHOD:DGe,HTTP2_HEADER_PATH:kGe,HTTP2_HEADER_SCHEME:vGe,HTTP2_HEADER_CONTENT_LENGTH:_Ge,HTTP2_HEADER_EXPECT:FGe,HTTP2_HEADER_STATUS:MGe}}=JS;function LGe(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 UGe(t,e){t[vn]=e,ane||(ane=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=JS.connect(t[WS],{createConnection:()=>e,peerMaxConcurrentStreams:t[une]});r[pu]=0,r[gm]=t,r[vn]=e,Et.addListener(r,"error",OGe),Et.addListener(r,"frameError",HGe),Et.addListener(r,"end",GGe),Et.addListener(r,"goaway",qGe),Et.addListener(r,"close",function(){let{[gm]:s}=this,{[vn]:i}=s,o=this[vn][_a]||this[_a]||new JI("closed",Et.getSocketInfo(i));if(s[va]=null,s.destroyed){xo(s[SGe]===0);let a=s[Fl].splice(s[ka]);for(let c=0;c<a.length;c++){let A=a[c];Et.errorRequest(s,A,o)}}}),r.unref(),t[va]=r,e[va]=r,Et.addListener(e,"error",function(s){xo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_a]=s,this[gm][OU](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new JI("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[_a]||new JI("closed",Et.getSocketInfo(this));t[vn]=null,this[va]!=null&&this[va].destroy(s),t[PU]=t[ka],xo(t[jS]===0),t.emit("disconnect",t[WS],[t],s),t[Ml]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return VGe(t,...s)},resume(){PGe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function PGe(t){let e=t[vn];e?.destroyed===!1&&(t[TGe]===0&&t[une]===0?(e.unref(),t[va].unref()):(e.ref(),t[va].ref()))}function OGe(t){xo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[vn][_a]=t,this[gm][OU](t)}function HGe(t,e,r){if(r===0){let n=new UU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[vn][_a]=n,this[gm][OU](n)}}function GGe(){let t=new JI("other side closed",Et.getSocketInfo(this[vn]));this.destroy(t),Et.destroy(this[vn],t)}function qGe(t){let e=this[_a]||new JI(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[gm];if(r[vn]=null,r[xGe]=null,this[va]!=null&&(this[va].destroy(e),this[va]=null),Et.destroy(this[vn],e),r[ka]<r[Fl].length){let n=r[Fl][r[ka]];r[Fl][r[ka]++]=null,Et.errorRequest(r,n,e),r[PU]=r[ka]}xo(r[jS]===0),r.emit("disconnect",r[WS],[r],e),r[Ml]()}function YGe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function VGe(t,e){let r=t[va],{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 B=0;B<A.length;B+=2){let M=A[B+0],V=A[B+1];if(Array.isArray(V))for(let k=0;k<V.length;k++)l[M]?l[M]+=`,${V[k]}`:l[M]=V[k];else l[M]=V}let d,{hostname:h,port:f}=t[WS];l[RGe]=i||`${h}${f?`:${f}`:""}`,l[DGe]=n;let g=B=>{e.aborted||e.completed||(B=B||new ine,Et.errorRequest(t,e,B),d!=null&&Et.destroy(d,B),Et.destroy(u,B),t[Fl][t[ka]++]=null,t[Ml]())};try{e.onConnect(g)}catch(B){Et.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[pu],t[Fl][t[ka]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[pu],t[Fl][t[ka]++]=null}),d.once("close",()=>{r[pu]-=1,r[pu]===0&&r.unref()}),!0;l[kGe]=s,l[vGe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Et.bodyLength(u);if(Et.isFormDataLike(u)){one??=lm().extractBody;let[B,M]=one(u);l["content-type"]=M,u=B.stream,m=B.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),YGe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[NGe])return Et.errorRequest(t,e,new LU),!1;process.emitWarning(new LU)}m!=null&&(xo(u,"no body must not have content length"),l[_Ge]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[FGe]="100-continue",d=r.request(l,{endStream:I,signal:c}),d.once("cont Line truncated
`,this[mqe]=c??3e5,this[pqe]=s??3e5,this[Eqe]=I??!0,this[Cqe]=B,this[YU]=V,this[Ul]=null,this[Qqe]=P>-1?P:-1,this[Sqe]=X??100,this[Xr]=null,this[Fa]=[],this[Eu]=0,this[Ma]=0,this[$I]=ue=>WU(this,ue),this[wqe]=ue=>Qne(this,ue)}get pipelining(){return this[ZS]}set pipelining(e){this[ZS]=e,this[$I](!0)}get[ey](){return this[Fa].length-this[Ma]}get[ZI](){return this[Ma]-this[Eu]}get[XI](){return this[Fa].length-this[Eu]}get[Aqe](){return!!this[Xr]&&!this[mm]&&!this[Xr].destroyed}get[qU](){return!!(this[Xr]?.busy(null)||this[XI]>=(bne(this)||1)||this[ey]>0)}[cqe](e){wne(this),this.once("connect",e)}[bqe](e,r){let n=e.origin||this[Dc].origin,s=new rqe(n,e,r);return this[Fa].push(s),this[Kh]||(jh.bodyLength(s.body)==null&&jh.isIterable(s.body)?(this[Kh]=1,queueMicrotask(()=>WU(this))):this[$I](!0)),this[Kh]&&this[Pl]!==2&&this[qU]&&(this[Pl]=2),this[Pl]<2}async[yqe](){return new Promise(e=>{this[XI]?this[Ul]=e:e(null)})}async[Bqe](e){return new Promise(r=>{let n=this[Fa].splice(this[Ma]);for(let i=0;i<n.length;i++){let o=n[i];jh.errorRequest(this,o,e)}let s=()=>{this[Ul]&&(this[Ul](),this[Ul]=null),r(null)};this[Xr]?(this[Xr].destroy(e,s),this[Xr]=null):queueMicrotask(s),this[$I]()})}},xqe=XS();function Qne(t,e){if(t[ZI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){mu(t[Ma]===t[Eu]);let r=t[Fa].splice(t[Eu]);for(let n=0;n<r.length;n++){let s=r[n];jh.errorRequest(t,s,e)}mu(t[XI]===0)}}async function wne(t){mu(!t[mm]),mu(!t[Xr]);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(Bne.isIP(o)),r=o}t[mm]=!0,pm.beforeConnect.hasSubscribers&&pm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ll],localAddress:t[KI]},connector:t[jI]});try{let i=await new Promise((o,a)=>{t[jI]({host:e,hostname:r,protocol:n,port:s,servername:t[Ll],localAddress:t[KI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){jh.destroy(i.on("error",Ine),new iqe);return}mu(i);try{t[Xr]=i.alpnProtocol==="h2"?await Tqe(t,i):await Nqe(t,i)}catch(o){throw i.destroy().on("error",Ine),o}t[mm]=!1,i[Iqe]=0,i[YU]=t[YU],i[aqe]=t,i[lqe]=null,pm.connected.hasSubscribers&&pm.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ll],localAddress:t[KI]},connector:t[jI],socket:i}),t.emit("connect",t[Dc],[t])}catch(i){if(t.destroyed)return;if(t[mm]=!1,pm.connectError.hasSubscribers&&pm.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ll],localAddress:t[KI]},connector:t[jI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(mu(t[ZI]===0);t[ey]>0&&t[Fa][t[Ma]].servername===t[Ll];){let o=t[Fa][t[Ma]++];jh.errorRequest(t,o,i)}else Qne(t,i);t.emit("connectionError",t[Dc],[t],i)}t[$I]()}function yne(t){t[Pl]=0,t.emit("drain",t[Dc],[t])}function WU(t,e){t[Kh]!==2&&(t[Kh]=2,Rqe(t,e),t[Kh]=0,t[Eu]>256&&(t[Fa].splice(0,t[Eu]),t[Ma]-=t[Eu],t[Eu]=0))}function Rqe(t,e){for(;;){if(t.destroyed){mu(t[ey]===0);return}if(t[Ul]&&!t[XI]){t[Ul](),t[Ul]=null;return}if(t[Xr]&&t[Xr].resume(),t[qU])t[Pl]=2;else if(t[Pl]===2){e?(t[Pl]=1,queueMicrotask(()=>yne(t))):yne(t);continue}if(t[ey]===0||t[ZI]>=(bne(t)||1))return;let r=t[Fa][t[Ma]];if(t[Dc].protocol==="https:"&&t[Ll]!==r.servername){if(t[ZI]>0)return;t[Ll]=r.servername,t[Xr]?.destroy(new sqe("servername changed"),()=>{t[Xr]=null,WU(t)})}if(t[mm])return;if(!t[Xr]){wne(t);return}if(t[Xr].destroyed||t[Xr].busy(r))return;!r.aborted&&t[Xr].write(r)?t[Ma]++:t[Fa].splice(t[Ma],1)}}Sne.exports=VU});var JU=C((FJt,Nne)=>{"use strict";var eN=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)}};Nne.exports=class{constructor(){this.head=this.tail=new eN}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new eN),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var xne=C((MJt,Tne)=>{var{kFree:Dqe,kConnected:kqe,kPending:vqe,kQueued:_qe,kRunning:Fqe,kSize:Mqe}=br(),$h=Symbol("pool"),zU=class{constructor(e){this[$h]=e}get connected(){return this[$h][kqe]}get free(){return this[$h][Dqe]}get pending(){return this[$h][vqe]}get queued(){return this[$h][_qe]}get running(){return this[$h][Fqe]}get size(){return this[$h][Mqe]}};Tne.exports=zU});var eP=C((LJt,Pne)=>{"use strict";var Lqe=rm(),Uqe=JU(),{kConnected:jU,kSize:Rne,kRunning:Dne,kPending:kne,kQueued:ty,kBusy:Pqe,kFree:Oqe,kUrl:Hqe,kClose:Gqe,kDestroy:qqe,kDispatch:Yqe}=br(),Vqe=xne(),ri=Symbol("clients"),xs=Symbol("needDrain"),ry=Symbol("queue"),KU=Symbol("closed resolve"),$U=Symbol("onDrain"),vne=Symbol("onConnect"),_ne=Symbol("onDisconnect"),Fne=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};Mqe.exports=zre});var Hqe=f((ISn,Oqe)=>{"use strict";var{kProxy:Fjt,kClose:Mjt,kDestroy:vjt,kInterceptors:Ljt}=ts(),{URL:Lqe}=B("url"),Uqe=rk(),Ujt=pw(),Pjt=G1(),{InvalidArgumentError:ak,RequestAbortedError:_jt}=Un(),Pqe=Y1(),ik=Symbol("proxy agent"),WH=Symbol("proxy client"),ok=Symbol("proxy headers"),jre=Symbol("request tls settings"),Ojt=Symbol("proxy tls settings"),_qe=Symbol("connect endpoint function");function Hjt(t){return t==="https:"?443:80}function qjt(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new ak("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}function Gjt(t,e){return new Ujt(t,e)}var Kre=class extends Pjt{constructor(e){if(super(e),this[Fjt]=qjt(e),this[ik]=new Uqe(e),this[Ljt]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new ak("Proxy opts.uri is mandatory");let{clientFactory:r=Gjt}=e;if(typeof r!="function")throw new ak("Proxy opts.clientFactory must be a function.");this[jre]=e.requestTls,this[Ojt]=e.proxyTls,this[ok]=e.headers||{};let n=new Lqe(e.uri),{origin:s,port:i,host:o,username:a,password:A}=n;if(e.auth&&e.token)throw new ak("opts.auth cannot be used in combination with opts.token");e.auth?this[ok]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[ok]["proxy-authorization"]=e.token:a&&A&&(this[ok]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(a)}:${decodeURIComponent(A)}`).toString("base64")}`);let c=Pqe({...e.proxyTls});this[_qe]=Pqe({...e.requestTls}),this[WH]=r(n,{connect:c}),this[ik]=new Uqe({...e,connect:async(u,l)=>{let d=u.host;u.port||(d+=`:${Hjt(u.protocol)}`);try{let{socket:h,statusCode:g}=await this[WH].connect({origin:s,port:i,path:d,signal:u.signal,headers:{...this[ok],host:o}});if(g!==200&&(h.on("error",()=>{}).destroy(),l(new _jt(`Proxy response (${g}) !== 200 when HTTP Tunneling`))),u.protocol!=="https:"){l(null,h);return}let p;this[jre]?p=this[jre].servername:p=u.servername,this[_qe]({...u,servername:p,httpSocket:h},l)}catch(h){l(h)}}})}dispatch(e,r){let{host:n}=new Lqe(e.origin),s=Yjt(e.headers);return Jjt(s),this[ik].dispatch({...e,headers:{...s,host:n}},r)}async[Mjt](){await this[ik].close(),await this[WH].close()}async[vjt](){await this[ik].destroy(),await this[WH].destroy()}};function Yjt(t){if(Array.isArray(t)){let e={};for(let r=0;r<t.length;r+=2)e[t[r]]=t[r+1];return e}return t}function Jjt(t){if(t&&Object.keys(t).find(r=>r.toLowerCase()==="proxy-authorization"))throw new ak("Proxy-Authorization should be sent in ProxyAgent constructor")}Oqe.exports=Kre});var Vqe=f((BSn,Jqe)=>{var YB=B("assert"),{kRetryHandlerDefaultRetry:qqe}=ts(),{RequestRetryError:zH}=Un(),{isDisturbed:Gqe,parseHeaders:Vjt,parseRangeHeader:Yqe}=qr();function Wjt(t){let e=Date.now();return new Date(t).getTime()-e}var Xre=class t{constructor(e,r){let{retryOptions:n,...s}=e,{retry:i,maxRetries:o,maxTimeout:a,minTimeout:A,timeoutFactor:c,methods:u,errorCodes:l,retryAfter:d,statusCodes:h}=n??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts=s,this.abort=null,this.aborted=!1,this.retryOpts={retry:i??t[qqe],retryAfter:d??!0,maxTimeout:a??30*1e3,timeout:A??500,timeoutFactor:c??2,maxRetries:o??5,methods:u??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:h??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(g=>{this.aborted=!0,this.abort?this.abort(g):this.reason=g})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[qqe](e,{state:r,opts:n},s){let{statusCode:i,code:o,headers:a}=e,{method:A,retryOptions:c}=n,{maxRetries:u,timeout:l,maxTimeout:d,timeoutFactor:h,statusCodes:g,errorCodes:p,methods:C}=c,{counter:m,currentTimeout:I}=r;if(I=I!=null&&I>0?I:l,o&&o!=="UND_ERR_REQ_RETRY"&&o!=="UND_ERR_SOCKET"&&!p.includes(o)){s(e);return}if(Array.isArray(C)&&!C.includes(A)){s(e);return}if(i!=null&&Array.isArray(g)&&!g.includes(i)){s(e);return}if(m>u){s(e);return}let y=a!=null&&a["retry-after"];y&&(y=Number(y),y=isNaN(y)?Wjt(y):y*1e3);let w=y>0?Math.min(y,d):Math.min(I*h**m,d);r.currentTimeout=w,setTimeout(()=>s(null),w)}onHeaders(e,r,n,s){let i=Vjt(r);if(this.retryCount+=1,e>=300)return this.abort(new zH("Request failed",e,{headers:i,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let a=Yqe(i["content-range"]);if(!a)return this.abort(new zH("Content-Range mismatch",e,{headers:i,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==i.etag)return this.abort(new zH("ETag mismatch",e,{headers:i,count:this.retryCount})),!1;let{start:A,size:c,en Line truncated
Error Code : ${o.statusCode}
Error Message: ${o.message}`)})).result)===null||r===void 0?void 0:r.value;if(!i)throw new Error("Response json body do not have ID Token field");return i})}static getIDToken(e){return t3e(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}(0,r3e.debug)(`ID token url is ${r}`);let n=yield t.getCall(r);return(0,r3e.setSecret)(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};Hw.OidcClient=One});var Yne=f(LA=>{"use strict";var Hne=LA&&LA.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(LA,"__esModule",{value:!0});LA.summary=LA.markdownSummary=LA.SUMMARY_DOCS_URL=LA.SUMMARY_ENV_VAR=void 0;var UZt=B("os"),qne=B("fs"),{access:PZt,appendFile:_Zt,writeFile:OZt}=qne.promises;LA.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";LA.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Gne=class{constructor(){this._buffer=""}filePath(){return Hne(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[LA.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${LA.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield PZt(e,qne.constants.R_OK|qne.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([i,o])=>` ${i}="${o}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return Hne(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?OZt:_Zt)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Hne(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(UZt.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(o=>this.wrap("li",o)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:A,colspan:c,rowspan:u}=o,l=a?"th":"td",d=Object.assign(Object.assign({},c&&{colspan:c}),u&&{rowspan:u});return this.wrap(l,A,d)}).join("");return this.wrap("tr",i)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:i}=n||{},o=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",i=this.wrap(s,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},s3e=new Gne;LA.markdownSummary=s3e;LA.summary=s3e});var i3e=f(UA=>{"use strict";var HZt=UA&&UA.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),qZt=UA&&UA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),GZt=UA&&UA.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&HZt(e,t,r);return qZt(e,t),e};Object.defineProperty(UA,"__esModule",{value:!0});UA.toPlatformPath=UA.toWin32Path=UA.toPosixPath=void 0;var YZt=GZt(B("path"));function JZt(t){return t.replace(/[\\]/g,"/")}UA.toPosixPath=JZt;function VZt(t){return t.replace(/[/]/g,"\\")}UA.toWin32Path=VZt;function WZt(t){return t.replace(/[/\\]/g,YZt.sep)}UA.toPlatformPath=WZt});var Vne=f(Ze=>{"use strict";var zZt=Ze&&Ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),tLine truncated
`);return{name:e,version:r}});Gr.platform=y3e.default.platform();Gr.arch=y3e.default.arch();Gr.isWindows=Gr.platform==="win32";Gr.isMacOS=Gr.platform==="darwin";Gr.isLinux=Gr.platform==="linux";function N$t(){return Yq(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield Gr.isWindows?y$t():Gr.isMacOS?b$t():w$t()),{platform:Gr.platform,arch:Gr.arch,isWindows:Gr.isWindows,isMacOS:Gr.isMacOS,isLinux:Gr.isLinux})})}Gr.getDetails=N$t});var Oc=f(We=>{"use strict";var S$t=We&&We.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),R$t=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Xne=We&&We.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&S$t(e,t,r);return R$t(e,t),e},w3e=We&&We.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(We,"__esModule",{value:!0});We.platform=We.toPlatformPath=We.toWin32Path=We.toPosixPath=We.markdownSummary=We.summary=We.getIDToken=We.getState=We.saveState=We.group=We.endGroup=We.startGroup=We.info=We.notice=We.warning=We.error=We.debug=We.isDebug=We.setFailed=We.setCommandEcho=We.setOutput=We.getBooleanInput=We.getMultilineInput=We.getInput=We.addPath=We.setSecret=We.exportVariable=We.ExitCode=void 0;var zu=uPe(),ZB=hPe(),Gw=GO(),N3e=Xne(B("os")),D$t=Xne(B("path")),x$t=n3e(),Kne;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Kne||(We.ExitCode=Kne={}));function T$t(t,e){let r=(0,Gw.toCommandValue)(e);if(process.env[t]=r,process.env.GITHUB_ENV||"")return(0,ZB.issueFileCommand)("ENV",(0,ZB.prepareKeyValueMessage)(t,e));(0,zu.issueCommand)("set-env",{name:t},r)}We.exportVariable=T$t;function k$t(t){(0,zu.issueCommand)("add-mask",{},t)}We.setSecret=k$t;function F$t(t){process.env.GITHUB_PATH||""?(0,ZB.issueFileCommand)("PATH",t):(0,zu.issueCommand)("add-path",{},t),process.env.PATH=`${t}${D$t.delimiter}${process.env.PATH}`}We.addPath=F$t;function Zne(t,e){let r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?r:r.trim()}We.getInput=Zne;function M$t(t,e){let r=Zne(t,e).split(`
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}We.getMultilineInput=M$t;function v$t(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],s=Zne(t,e);if(r.includes(s))return!0;if(n.includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}We.getBooleanInput=v$t;function L$t(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,ZB.issueFileCommand)("OUTPUT",(0,ZB.prepareKeyValueMessage)(t,e));process.stdout.write(N3e.EOL),(0,zu.issueCommand)("set-output",{name:t},(0,Gw.toCommandValue)(e))}We.setOutput=L$t;function U$t(t){(0,zu.issue)("echo",t?"on":"off")}We.setCommandEcho=U$t;function P$t(t){process.exitCode=Kne.Failure,S3e(t)}We.setFailed=P$t;function _$t(){return process.env.RUNNER_DEBUG==="1"}We.isDebug=_$t;function O$t(t){(0,zu.issueCommand)("debug",{},t)}We.debug=O$t;function S3e(t,e={}){(0,zu.issueCommand)("error",(0,Gw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.error=S3e;function H$t(t,e={}){(0,zu.issueCommand)("warning",(0,Gw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.warning=H$t;function q$t(t,e={}){(0,zu.issueCommand)("notice",(0,Gw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.notice=q$t;function G$t(t){process.stdout.write(t+N3e.EOL)}We.info=G$t;function R3e(t){(0,zu.issue)("group",t)}We.startGroup=R3e;function D3e(){(0,zu.issue)("endgroup")}We.endGroup=D3e;function Y$t(t,e){return w3e(this,void 0,void 0,function*(){R3e(t);let r;try{r=yield e()}finally{D3e()}return r})}We.group=Y$t;function J$t(t,e){if(process.env.GITHUB_STATE||"")return(0,ZB.issueFileCommand)("STATE",(0,ZB.prepareKeyValueMessage)(t,e));(0,zu.issueCommand)("save-state",{name:t},(0,Gw.toCommandValue)(e))}We.saveState=J$t;function V$t(t){return process.env[`STATE_${t}`]||""}We.getState=V$t;function W$t(t){return w3e(this,void 0,void 0,function*(){return yield x$t.OidcClient.getIDToken(t)})}We.getIDToken=W$t;var z$t=Yne();Object.defineProperty(We,"summary",{enumerable:!0,get:function(){return z$t.summary}});var j$t=Yne();Object.defineProperty(We,"markdownSummary",{enumerable:!0,get:function(){return j$t.markdownSummary}});var $ne=i3e();Object.defineProperty(We,"toPosixPath",{enumerable:!0,get:function(){return $ne.toPosixPath}});Object.defineProperty(We,"toWin32Path",{enumerable:!0,get:function(){return $ne.toWin32Path}});Object.defineProperty(We,"toPlatformPath",{enumerable:!0,get:function(){return $ne.toPlatformPath}});We.platform=Xne(b3e())});var x3e=f(Jh=>{"use strict";var K$t=Jh&&Jh.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),X$t=Jh&&Jh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Z$t=Jh&&Jh.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&K$t(e,t,r);return X$t(e,t),e};Object.defineProperty(Jh,"__esModule",{value:!0});Jh.getOptions=void 0;var ese=Z$t(Oc());function $$t(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,ese.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,ese.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,ese.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}Jh.getOptions=$$t});var Vq=f(js=>{"use strict";var eer=js&&js.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ter=js&&js.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rer=js&&js.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&eer(e,t,r);return ter(e,t),e},ner=js&&js.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(js,"__esModule",{value:!0});js.safeTrimTrailingSeparator=js.normalizeSeparators=js.hasRoot=js.hasAbsoluteRoot=js.ensureAbsoluteRoot=js.dirname=void 0;var Jq=rer(B("path")),$B=ner(B("assert")),bE=process.platform==="win32";function ser(t){if(t=rse(t),bE&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Jq.dirname(t);return bE&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=rse(e)),e}js.dirname=ser;function ier(t,e){if($B.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),$B.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),tse(e))return e;if(bE){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return $B.default(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsLine truncated
%s`,H,H,I,n);var z=I.type==="*"?ose:I.type==="?"?ise:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+z+"\\("+H}g(),i&&(n+="\\\\");var F=!1;switch(n.charAt(0)){case"[":case".":case"(":F=!0}for(var W=a.length-1;W>-1;W--){var U=a[W],ee=n.slice(0,U.reStart),oe=n.slice(U.reStart,U.reEnd-8),Z=n.slice(U.reEnd-8,U.reEnd),he=n.slice(U.reEnd);Z+=he;var Se=ee.split("(").length-1,Je=he;for(p=0;p<Se;p++)Je=Je.replace(/\)[+*?]?/,"");he=Je;var He="";he===""&&e!==jq&&(He="$");var $t=ee+oe+he+He+Z;n=$t}if(n!==""&&s&&(n="(?=.)"+n),F&&(n=d+n),e===jq)return[n,s];if(!s)return Mer(t);var en=r.nocase?"i":"";try{var er=new RegExp("^"+n+"$",en)}catch{return new RegExp("$.")}return er._glob=t,er._src=n,er}Hc.makeRe=function(t,e){return new Jo(t,e||{}).makeRe()};Jo.prototype.makeRe=Fer;function Fer(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?ose:e.dot?wer:Ner,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===ase?r:typeof o=="string"?ver(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Hc.match=function(t,e,r){r=r||{};var n=new Jo(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Jo.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;yk.sep!=="/"&&(e=e.split(yk.sep).join("/")),e=e.split(K3e),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],A=e;n.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};Jo.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,i=0,o=t.length,a=e.length;s<o&&i<a;s++,i++){this.debug("matchOne loop");var A=e[i],c=t[s];if(this.debug(e,A,c),A===!1)return!1;if(A===ase){this.debug("GLOBSTAR",[e,A,c]);var u=s,l=i+1;if(l===a){for(this.debug("** at the end");s<o;s++)if(t[s]==="."||t[s]===".."||!n.dot&&t[s].charAt(0)===".")return!1;return!0}for(;u<o;){var d=t[u];if(this.debug(`
globstar while`,t,u,e,l,d),this.matchOne(t.slice(u),e.slice(l),r))return this.debug("globstar found match!",u,o,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,u,e,l);break}this.debug("globstar swallow a segment, and continue"),u++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,u,e,l),u===o))}var h;if(typeof A=="string"?(h=c===A,this.debug("string match",A,c,h)):(h=c.match(A),this.debug("pattern match",A,c,h)),!h)return!1}if(s===o&&i===a)return!0;if(s===o)return r;if(i===a)return s===o-1&&t[s]==="";throw new Error("wtf?")};function Mer(t){return t.replace(/\\(.)/g,"$1")}function ver(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var e4e=f(ju=>{"use strict";var Ler=ju&&ju.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Uer=ju&&ju.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$3e=ju&&ju.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Ler(e,t,r);return Uer(e,t),e},Per=ju&&ju.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ju,"__esModule",{value:!0});ju.Path=void 0;var bk=$3e(B("path")),NE=$3e(Vq()),wk=Per(B("assert")),_er=process.platform==="win32",cse=class{constructor(e){if(this.segments=[],typeof e=="string")if(wk.default(e,"Parameter 'itemPath' must not be empty"),e=NE.safeTrimTrailingSeparator(e),!NE.hasRoot(e))this.segments=e.split(bk.sep);else{let r=e,n=NE.dirname(r);for(;n!==r;){let s=bk.basename(r);this.segments.unshift(s),r=n,n=NE.dirname(r)}this.segments.unshift(r)}else{wk.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];wk.default(n,"Parameter 'itemPath' must not contain any empty segments"),n=NE.normalizeSeparators(e[r]),r===0&&NE.hasRoot(n)?(n=NE.safeTrimTrailingSeparator(n),wk.default(n===NE.dirname(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(wk.default(!n.includes(bk.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(bk.sep)||_er&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=bk.sep,e+=this.segments[n];return e}};ju.Path=cse});var t4e=f(Ku=>{"use strict";var Oer=Ku&&Ku.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Her=Ku&&Ku.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dse=Ku&&Ku.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Oer(e,t,r);return Her(e,t),e},qer=Ku&&Ku.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ku,"__esModule",{value:!0});Ku.Pattern=void 0;var Ger=dse(B("os")),Nk=dse(B("path")),qA=dse(Vq()),e0=qer(B("assert")),Yer=Ase(),use=Wq(),Xq=e4e(),fp=process.platform==="win32",lse=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],e0.default(n.length,"Parameter 'segments' must not empty");let c=t.getLiteral(n[0]);e0.default(c&&qA.hasAbsoluteRoot(c),"Parameter 'segments' first element must be a root path"),i=new Xq.Path(n).toString().trim(),e&&(i=`!${i}`)}for(;i.startsWith("!");)this.negate=!this.negate,i=i.substr(1).trim();i=t.fixupPattern(i,s),this.segments=new Xq.Path(i).segments,this.trailingSeparator=qA.normalizeSeparators(i).endsWith(Nk.sep),i=qA.safeTrimTrailingSeparator(i);let o=!1,a=this.segments.map(c=>t.getLiteral(c)).filter(c=>!o&&!(o=c===""));this.searchPath=new Xq.Path(a).toString(),this.rootRegExp=new RegExp(t.regExpEscape(a[0]),fp?"i":""),this.isImplicitPattern=r;let A={dot:!0,nobrace:!0,nocase:fp,nocomment:!0,noext:!0,nonegate:!0};i=fp?i.replace(/\\/g,"/"):i,this.minimatch=new Yer.Minimatch(i,A)}match(e){return this.segments[this.segments.length-1]==="**"?(e=qA.normalizeSeparators(e),!e.endsWith(Nk.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Nk.sep}`)):e=qA.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?use.MatchKind.Directory:use.MatchKind.All:use.MatchKind.None}partialMatch(e){return e=qA.safeTrimTrailingSeparator(e),qA.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(fp?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(fp?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){e0.default(e,"pattern cannot be empty");let n=new Xq.Path(e).segments.map(s=>t.getLiteral(s));if(e0.default(n.every((s,i)=>(s!=="."||i===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),e0.default(!qA.hasRoot(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=qA.normalizeSeparators(e),e==="."||e.startsWith(`.${Nk.sep}`))e=t.globEscap Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new i4e.Pattern(i));return n.searchPaths.push(...$q.getSearchPaths(n.patterns)),n})}static stat(e,r,n){return gse(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Sk.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){fse.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Sk.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Sk.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){fse.debug(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};co.DefaultGlobber=pse});var A4e=f(Jw=>{"use strict";var Xer=Jw&&Jw.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(Jw,"__esModule",{value:!0});Jw.create=void 0;var Zer=a4e();function $er(t,e){return Xer(this,void 0,void 0,function*(){return yield Zer.DefaultGlobber.create(t,e)})}Jw.create=$er});var g4e=f((Ot,h4e)=>{Ot=h4e.exports=ur;var En;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?En=function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:En=function(){};Ot.SEMVER_SPEC_VERSION="2.0.0";var Dk=256,eG=Number.MAX_SAFE_INTEGER||9007199254740991,mse=16,etr=Dk-6,Vw=Ot.re=[],mn=Ot.safeRe=[],me=Ot.src=[],ie=Ot.tokens={},l4e=0;function Er(t){ie[t]=l4e++}var Cse="[a-zA-Z0-9-]",Ese=[["\\s",1],["\\d",Dk],[Cse,etr]];function Tk(t){for(var e=0;e<Ese.length;e++){var r=Ese[e][0],n=Ese[e][1];t=t.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}return t}Er("NUMERICIDENTIFIER");me[ie.NUMERICIDENTIFIER]="0|[1-9]\\d*";Er("NUMERICIDENTIFIERLOOSE");me[ie.NUMERICIDENTIFIERLOOSE]="\\d+";Er("NONNUMERICIDENTIFIER");me[ie.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+Cse+"*";Er("MAINVERSION");me[ie.MAINVERSION]="("+me[ie.NUMERICIDENTIFIER]+")\\.("+me[ie.NUMERICIDENTIFIER]+")\\.("+me[ie.NUMERICIDENTIFIER]+")";Er("MAINVERSIONLOOSE");me[ie.MAINVERSIONLOOSE]="("+me[ie.NUMERICIDENTIFIERLOOSE]+")\\.("+me[ie.NUMERICIDENTIFIERLOOSE]+")\\.("+me[ie.NUMERICIDENTIFIERLOOSE]+")";Er("PRERELEASEIDENTIFIER");me[ie.PRERELEASEIDENTIFIER]="(?:"+me[ie.NUMERICIDENTIFIER]+"|"+me[ie.NONNUMERICIDENTIFIER]+")";Er("PRERELEASEIDENTIFIERLOOSE");me[ie.PRERELEASEIDENTIFIERLOOSE]="(?:"+me[ie.NUMERICIDENTIFIERLOOSE]+"|"+me[ie.NONNUMERICIDENTIFIER]+")";Er("PRERELEASE");me[ie.PRERELEASE]="(?:-("+me[ie.PRERELEASEIDENTIFIER]+"(?:\\."+me[ie.PRERELEASEIDENTIFIER]+")*))";Er("PRERELEASELOOSE");me[ie.PRERELEASELOOSE]="(?:-?("+me[ie.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+me[ie.PRERELEASEIDENTIFIERLOOSE]+")*))";Er("BUILDIDENTIFIER");me[ie.BUILDIDENTIFIER]=Cse+"+";Er("BUILD");me[ie.BUILD]="(?:\\+("+me[ie.BUILDIDENTIFIER]+"(?:\\."+me[ie.BUILDIDENTIFIER]+")*))";Er("FULL");Er("FULLPLAIN");me[ie.FULLPLAIN]="v?"+me[ie.MAINVERSION]+me[ie.PRERELEASE]+"?"+me[ie.BUILD]+"?";me[ie.FULL]="^"+me[ie.FULLPLAIN]+"$";Er("LOOSEPLAIN");me[ie.LOOSEPLAIN]="[v=\\s]*"+me[ie.MAINVERSIONLOOSE]+me[ie.PRERELEASELOOSE]+"?"+me[ie.BUILD]+"?";Er("LOOSE");me[ie.LOOSE]="^"+me[ie.LOOSEPLAIN]+"$";Er("GTLT");me[ie.GTLT]="((?:<|>)?=?)";Er("XRANGEIDENTIFIERLOOSE");me[ie.XRANGEIDENTIFIERLOOSE]=me[ie.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";Er("XRANGEIDENTIFIER");me[ie.XRANGEIDENTIFIER]=me[ie.NUMERICIDENTIFIER]+"|x|X|\\*";Er("XRANGEPLAIN");me[ie.XRANGEPLAIN]="[v=\\s]*("+me[ie.XRANGEIDENTIFIER]+")(?:\\.("+me[ie.XRANGEIDENTIFIER]+")(?:\\.("+me[ie.XRANGEIDENTIFIER]+")(?:"+me[ie.PRERELEASE]+")?"+me[ie.BUILD]+"?)?)?";Er("XRANGEPLAINLOOSE");me[ie.XRANGEPLAINLOOSE]="[v=\\s]*("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:"+me[ie.PRERELEASELOOSE]+")?"+me[ie.BUILD]+"?)?)?";Er("XRANGE");me[ie.XRANGE]="^"+me[ie.GTLT]+"\\s*"+me[ie.XRANGEPLAIN]+"$";Er("XRANGELOOSE");me[ie.XRANGELOOSE]="^"+me[ie.GTLT]+"\\s*"+me[ie.XRANGEPLAINLOOSE]+"$";Er("COERCE");me[ie.COERCE]="(^|[^\\d])(\\d{1,"+mse+"})(?:\\.(\\d{1,"+mse+"}))?(?:\\.(\\d{1,"+mse+"}))?(?:$|[^\\d])";Er("COERCERTL");Vw[ie.COERCERTL]=new RegExp(me[ie.COERCE],"g");mn[ie.COERCERTL]=new RegExp(Tk(me[ie.COERCE]),"g");Er("LONETILDE");me[ie.LONETILDE]="(?:~>?)";Er("TILDETRIM");me[ie.TILDETRIM]="(\\s*)"+me[ie.LONETILDE]+"\\s+";Vw[ie.TILDETRIM]=new RegExp(me[ie.TILDETRIM],"g");mn[ie.TILDETRIM]=new RegExp(Tk(me[ie.TILDETRIM]),"g");var ttr="$1~";Er("TILDE");me[ie.TILDE]="^"+me[ie.LONETILDE]+me[ie.XRANGEPLAIN]+"$";Er("TILDELOOSE");me[ie.TILDELOOSE]="^"+me[ie.LONETILDE]+me[ie.XRANGEPLAINLOOSE]+"$";Er("LONECARET");me[ie.LONECARET]="(?:\\^)";Er("CARETTRIM" Line truncated
`),{implicitDescendants:!1});try{for(var c=!0,u=_tr(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let d=s,h=sG.relative(a,d).replace(new RegExp(`\\${sG.sep}`,"g"),"/");kk.debug(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}Zr.resolvePaths=Wtr;function ztr(t){return jw(this,void 0,void 0,function*(){return Gtr.promisify(bse.unlink)(t)})}Zr.unlinkFile=ztr;function I4e(t,e=[]){return jw(this,void 0,void 0,function*(){let r="";e.push("--version"),kk.debug(`Checking ${t} ${e.join(" ")}`);try{yield Otr.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>r+=n.toString(),stderr:n=>r+=n.toString()}})}catch(n){kk.debug(n.message)}return r=r.trim(),kk.debug(r),r})}function jtr(){return jw(this,void 0,void 0,function*(){let t=yield I4e("zstd",["--quiet"]),e=qtr.clean(t);return kk.debug(`zstd version: ${e}`),t===""?n0.CompressionMethod.Gzip:n0.CompressionMethod.ZstdWithoutLong})}Zr.getCompressionMethod=jtr;function Ktr(t){return t===n0.CompressionMethod.Gzip?n0.CacheFilename.Gzip:n0.CacheFilename.Zstd}Zr.getCacheFileName=Ktr;function Xtr(){return jw(this,void 0,void 0,function*(){return bse.existsSync(n0.GnuTarPathOnWindows)?n0.GnuTarPathOnWindows:(yield I4e("tar")).toLowerCase().includes("gnu tar")?E4e.which("tar"):""})}Zr.getGnuTarPathOnWindows=Xtr;function Ztr(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}Zr.assertDefined=Ztr;function $tr(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Ytr),C4e.createHash("sha256").update(n.join("|")).digest("hex")}Zr.getCacheVersion=$tr;function err(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}Zr.getRuntimeToken=err});var Vn={};xu(Vn,{__addDisposableResource:()=>J4e,__assign:()=>iG,__asyncDelegator:()=>U4e,__asyncGenerator:()=>L4e,__asyncValues:()=>P4e,__await:()=>Xw,__awaiter:()=>x4e,__classPrivateFieldGet:()=>q4e,__classPrivateFieldIn:()=>Y4e,__classPrivateFieldSet:()=>G4e,__createBinding:()=>aG,__decorate:()=>y4e,__disposeResources:()=>V4e,__esDecorate:()=>w4e,__exportStar:()=>k4e,__extends:()=>B4e,__generator:()=>T4e,__importDefault:()=>H4e,__importStar:()=>O4e,__makeTemplateObject:()=>_4e,__metadata:()=>D4e,__param:()=>b4e,__propKey:()=>S4e,__read:()=>Sse,__rest:()=>Q4e,__rewriteRelativeImportExtension:()=>W4e,__runInitializers:()=>N4e,__setFunctionName:()=>R4e,__spread:()=>F4e,__spreadArray:()=>v4e,__spreadArrays:()=>M4e,__values:()=>oG,default:()=>nrr});function B4e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");wse(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Q4e(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r}function y4e(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(i=(s<3?o(i):s>3?o(e,r,i):o(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i}function b4e(t,e){return function(r,n){e(r,n,t)}}function w4e(t,e,r,n,s,i){function o(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var a=n.kind,A=a==="getter"?"get":a==="setter"?"set":"value",c=!e&&t?n.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),l,d=!1,h=r.length-1;h>=0;h--){var g={};for(var p in n)g[p]=p==="access"?{}:n[p];for(var p in n.access)g.access[p]=n.access[p];g.addInitializer=function(m){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(m||null))};var C=(0,r[h])(a==="accessor"?{get:u.get,set:u.set}:u[A],g);if(a==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(l=o(C.get))&&(u.get=l),(l=o(C.set))&&(u.set=l),(l=o(C.init))&&s.unshift(l)}else(l=o(C))&&(a==="field"?s.unshift(l):u[A]=l)}c&&Object.defineProperty(c,n.name,u),d=!0}function N4e(t,e,r){for(var n=arguments.length>2,s=0;s<e.length;s++)r=n?e[s].call(t,r):e[s].call(t);return n?r:void 0}function S4e(t){return typeof t=="symbol"?t:"".concat(t)}function R4e(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function D4e(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function x4e(t,e,r,n){function s(i){re Line truncated
${Frr.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};Lk.RestError=mG;function Mrr(t){return t instanceof mG?!0:(0,xrr.isError)(t)&&t.name==="RestError"}});var s0=f(EG=>{"use strict";Object.defineProperty(EG,"__esModule",{value:!0});EG.uint8ArrayToString=vrr;EG.stringToUint8Array=Lrr;function vrr(t,e){return Buffer.from(t).toString(e)}function Lrr(t,e){return Buffer.from(t,e)}});var Uk=f(CG=>{"use strict";Object.defineProperty(CG,"__esModule",{value:!0});CG.logger=void 0;var Urr=lG();CG.logger=(0,Urr.createClientLogger)("ts-http-runtime")});var mYe=f(BG=>{"use strict";Object.defineProperty(BG,"__esModule",{value:!0});BG.getBodyLength=pYe;BG.createNodeHttpClient=Jrr;var $se=(Wn(),$n(Vn)),Kse=$se.__importDefault(B("node:http")),Xse=$se.__importDefault(B("node:https")),dYe=$se.__importDefault(B("node:zlib")),Prr=B("node:stream"),hYe=Fk(),_rr=DE(),_k=Zw(),$w=Uk(),Orr=vk(),Hrr={};function Pk(t){return t&&typeof t.pipe=="function"}function gYe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function fYe(t){return t&&typeof t.byteLength=="number"}var IG=class extends Prr.Transform{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},Zse=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new hYe.AbortError("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new Orr.Sanitizer;$w.logger.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=pYe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let g=e.onUploadProgress,p=new IG(g);p.on("error",C=>{$w.logger.error("Error in upload progress",C)}),Pk(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=qrr(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?Grr(c,u):c;let h=e.onDownloadProgress;if(h){let g=new IG(h);g.on("error",p=>{$w.logger.error("Error in download progress",p)}),A.pipe(g),A=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await Yrr(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();Pk(a)&&(c=gYe(a));let u=Promise.resolve();Pk(A)&&(u=gYe(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{$w.logger.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((A,c)=>{let u=i?Kse.default.request(a,A):Xse.default.request(a,A);u.once("error",l=>{c(new _k.RestError(l.message,{code:l.code??_k.RestError.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new hYe.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&Pk(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):fYe(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):($w.logger.error("Unrecognized body type",n),c(new _k.RestError("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?Kse.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Kse.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return Xse.default.globalAgent;let s=e.tlsSettings??Hrr,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||($w.logger.info("No cached TLS Agent exist, creating a new Agent"),i=new Xse.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function qrr(t){let e=(0,_rr.createHttpHeaders)();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}function Grr(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=dYe.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=dYe.default.createInflate Line truncated
`.trim())}};Wie.exports=eO});var EN=C((lzt,$ie)=>{"use strict";var zie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:m7e}=_t(),E7e=Im();Kie()===void 0&&jie(new E7e);function jie(t){if(!t||typeof t.dispatch!="function")throw new m7e("Argument agent must implement Agent");Object.defineProperty(globalThis,zie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Kie(){return globalThis[zie]}$ie.exports={setGlobalDispatcher:jie,getGlobalDispatcher:Kie}});var CN=C((hzt,Xie)=>{"use strict";Xie.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 eoe=C((fzt,Zie)=>{"use strict";var C7e=$S();Zie.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 C7e(r,o,s,i);return r(a,c)}}});var roe=C((gzt,toe)=>{"use strict";var I7e=cN();toe.exports=t=>e=>function(n,s){return e(n,new I7e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var soe=C((pzt,noe)=>{"use strict";var y7e=dt(),{InvalidArgumentError:B7e,RequestAbortedError:b7e}=_t(),Q7e=CN(),tO=class extends Q7e{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#c=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new B7e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#c=r}onConnect(e){this.#t=e,this.#c.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,s){let o=y7e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new b7e(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#c.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#s??e,this.#c.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#c.onError(this.#s):this.#c.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#c.onError(this.reason);return}this.#c.onComplete(e)}}};function w7e({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new tO({maxSize:i},s);return e(n,o)}}noe.exports=w7e});var aoe=C((mzt,ooe)=>{"use strict";var{isIP:S7e}=Q("node:net"),{lookup:N7e}=Q("node:dns"),T7e=CN(),{InvalidArgumentError:Dm,InformationalError:x7e}=_t(),ioe=Math.pow(2,31)-1,rO=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new x7e("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){N7e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===ioe?(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===ioe?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 nO(this,e,r)}},nO=class extends T7e{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Pce(i)&&(r[s]=i);break;case"id":Oce(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Pce(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Oce(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}}};Hce.exports={EventSourceStream:WO}});var Kce=C((zzt,jce)=>{"use strict";var{pipeline:Lje}=Q("node:stream"),{fetching:Uje}=fy(),{makeRequest:Pje}=_m(),{webidl:bu}=Xn(),{EventSourceStream:Oje}=Gce(),{parseMIMEType:Hje}=ei(),{createFastMessageEvent:Gje}=Om(),{isNetworkError:qce}=dy(),{delay:qje}=YO(),{kEnumerableProperty:hf}=dt(),{environmentSettingsObject:Yce}=vi(),Vce=!1,Wce=3e3,Ty=0,Jce=1,xy=2,Yje="anonymous",Vje="use-credentials",Vm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Ty;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),bu.util.markAsUncloneable(this);let n="EventSource constructor";bu.argumentLengthCheck(arguments,1,n),Vce||(Vce=!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.#c=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Wce};let s=Yce,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=Yje;r.withCredentials&&(o=Vje,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Yce.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=Pje(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===xy)return;this.#r=Ty;let e={request:this.#i,dispatcher:this.#c},r=n=>{qce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(qce(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?Hje(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=Jce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Oje({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Gje(c.type,c.options))}});Lje(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Uje(e)}async#A(){this.#r!==xy&&(this.#r=Ty,this.dispatchEvent(new Event("error")),await qje(this.#o.reconnectionTime),this.#r===Ty&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a()))}close(){bu.brandCheck(this,t),this.#r!==xy&&(this.#r=xy,this.#s.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}},zce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Ty,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Jce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:xy,writable:!1}};Object.defineProperties(Vm,zce);Object.defineProperties(Vm.prototype,zce);Object.defineProperties(Vm.prototype,{close:hf,onerror:hf,onmessage:hf,onopen:hf,readyState:hf,url:hf,withCredentials:hf});bu.converters.EventSourceInitDict=bu.dictionaryConverter([{key:"withCredentials",converter:bu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:bu.converters.any}]);jce.exports={EventSource:Vm,defaultReconnectionTime:Wce}});var aT=C((jzt,ze)=>{"use strict";var Wje=Em(),$ce=vI(),Jje=Cm(),zje=zne(),jje=Im(),Kje=hP(),$je=Ese(),Xje=wse(),Xce=_t(),oT=dt(),{InvalidArgumentError:iT}=Xce,Wm=lie(),Zje=FI(),eKe=zP(),tKe=Jie(),rKe=$P(),nKe=FP(),sKe=cN(),{getGlobalDispatcher:Zce,setGlobalDispatcher:iKe}=EN(),oKe=CN(),aKe=$S(),cKe=XS();Object.assign($ce.prototype,Wm);ze.exports.Dispatcher=$ce;ze.exports.Client=Wje;ze.exports.Pool=Jje;ze.exports.BalancedPool=zje;ze.exports.Agent=jje;ze.exports.ProxyAgent=Kje;ze.exports.EnvHttpProxyAgent=$je;ze.exports Line truncated
%s`,M,M,I,n);var V=I.type==="*"?v3:I.type==="?"?k3:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+V+"\\("+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 v=a[P],z=n.slice(0,v.reStart),X=n.slice(v.reStart,v.reEnd-8),te=n.slice(v.reEnd-8,v.reEnd),ce=n.slice(v.reEnd);te+=ce;var ue=z.split("(").length-1,Fe=ce;for(g=0;g<ue;g++)Fe=Fe.replace(/\)[+*?]?/,"");ce=Fe;var ke="";ce===""&&e!==RT&&(ke="$");var et=z+X+ce+ke+te;n=et}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===RT)return[n,s];if(!s)return PXe(t);var Ft=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Ft)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Vi.makeRe=function(t,e){return new ln(t,e||{}).makeRe()};ln.prototype.makeRe=UXe;function UXe(){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?v3:e.dot?RXe:DXe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===If?r:typeof o=="string"?OXe(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}Vi.match=function(t,e,r){r=r||{};var n=new ln(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};ln.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;qy.sep!=="/"&&(e=e.split(qy.sep).join("/")),e=e.split(Pue),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};ln.prototype.matchOne=function(t,e,r){return e.indexOf(If)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};ln.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===If){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===If){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var g=String(t[i]);if(f=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||f}for(var E=[[[],0]],m=E[0],I=0,y=[0],B=0;B<A.length;B++){var M=A[B];M===If?(y.push(I),m=[[],0],E.push(m)):(m[0].push(M),I++)}for(var V=E.length-1,k=t.length-d,P=0;P<E.length;P++)E[P][1]=k-(y[V--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!d)};ln.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};ln.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===If)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 PXe(t){return t.replace(/\\(.)/g,"$1")}function OXe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Zm=C((r$t,Wue)=>{"use strict";var zXe="2.0.0",jXe=Number.MAX_SAFE_INTEGER||9007199254740991,KXe=16,$Xe=250,XXe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Wue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:KXe,MAX_SAFE_BUILD_LENGTH:$Xe,MAX_SAFE_INTEGER:jXe,RELEASE_TYPES:XXe,SEMVER_SPEC_VERSION:zXe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Jy=C((n$t,Jue)=>{"use strict";var ZXe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Jue.exports=ZXe});var e0=C((Pc,zue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:F3,MAX_SAFE_BUILD_LENGTH:eZe,MAX_LENGTH:tZe}=Zm(),rZe=Jy();Pc=zue.exports={};var nZe=Pc.re=[],sZe=Pc.safeRe=[],me=Pc.src=[],iZe=Pc.safeSrc=[],Ee=Pc.t={},oZe=0,M3="[a-zA-Z0-9-]",aZe=[["\\s",1],["\\d",tZe],[M3,eZe]],cZe=t=>{for(let[e,r]of aZe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`).join(`
`+i),t.push(s+"m+"+TG.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=rsr()+e+" "+t[0]}function rsr(){return lo.inspectOpts.hideDate?"":new Date().toISOString()+" "}function nsr(...t){return process.stderr.write(xG.formatWithOptions(lo.inspectOpts,...t)+`
`)}function ssr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function isr(){return process.env.DEBUG}function osr(t){t.inspectOpts={};let e=Object.keys(lo.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=lo.inspectOpts[e[r]]}TG.exports=mie()(lo);var{formatters:OYe}=TG.exports;OYe.o=function(t){return this.inspectOpts.colors=this.useColors,xG.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};OYe.O=function(t){return this.inspectOpts.colors=this.useColors,xG.inspect(t,this.inspectOpts)}});var kG=f((ADn,Iie)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Iie.exports=MYe():Iie.exports=HYe()});var YYe=f(YA=>{"use strict";var asr=YA&&YA.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Asr=YA&&YA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),qYe=YA&&YA.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&asr(e,t,r);return Asr(e,t),e};Object.defineProperty(YA,"__esModule",{value:!0});YA.req=YA.json=YA.toBuffer=void 0;var csr=qYe(B("http")),usr=qYe(B("https"));async function GYe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}YA.toBuffer=GYe;async function lsr(t){let r=(await GYe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}YA.json=lsr;function dsr(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?usr:csr).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}YA.req=dsr});var Qie=f(qc=>{"use strict";var VYe=qc&&qc.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),hsr=qc&&qc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),WYe=qc&&qc.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&VYe(e,t,r);return hsr(e,t),e},gsr=qc&&qc.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&VYe(e,t,r)};Object.defineProperty(qc,"__esModule",{value:!0});qc.Agent=void 0;var fsr=WYe(B("net")),JYe=WYe(B("http")),psr=B("https");gsr(YYe(),qc);var Wh=Symbol("AgentBaseInternalState"),Bie=class extends JYe.Agent{constructor(e){super(e),this[Wh]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new fsr.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?psr.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof JYe.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[Wh].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Wh].currentSocket;if(this[Wh].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Wh].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Wh]&&(this[Wh].defaultPort=e)}get protocol(){return this[Wh].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Wh]&&(this[Wh].protocol=e)}};qc.Agent=Bie});var zYe=f(lN=>{"use strict";var msr=lN&&lN.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(lN,"__esModule",{value:!0});lN.parseProxyResponse=void 0;var Esr=msr(kG()),FG=(0,Esr.default)("https-proxy-agent:parse-proxy-response");function Csr(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),FG("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),FG("onerror %o",u),r(u)}function c(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+px.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=$rt()+e+" "+t[0]}function $rt(){return Fn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Xrt(...t){return process.stderr.write(gx.formatWithOptions(Fn.inspectOpts,...t)+`
`)}function Zrt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function ent(){return process.env.DEBUG}function tnt(t){t.inspectOpts={};let e=Object.keys(Fn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Fn.inspectOpts[e[r]]}px.exports=w8()(Fn);var{formatters:Bhe}=px.exports;Bhe.o=function(t){return this.inspectOpts.colors=this.useColors,gx.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Bhe.O=function(t){return this.inspectOpts.colors=this.useColors,gx.inspect(t,this.inspectOpts)}});var mx=C((vZt,T8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?T8.exports=phe():T8.exports=bhe()});var She=C(ui=>{"use strict";var rnt=ui&&ui.__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]})),nnt=ui&&ui.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Qhe=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)&&rnt(e,t,r);return nnt(e,t),e};Object.defineProperty(ui,"__esModule",{value:!0});ui.req=ui.json=ui.toBuffer=void 0;var snt=Qhe(Q("http")),int=Qhe(Q("https"));async function whe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ui.toBuffer=whe;async function ont(t){let r=(await whe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ui.json=ont;function ant(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?int:snt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ui.req=ant});var R8=C(zi=>{"use strict";var The=zi&&zi.__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]})),cnt=zi&&zi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xhe=zi&&zi.__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)&&The(e,t,r);return cnt(e,t),e},Ant=zi&&zi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&The(e,t,r)};Object.defineProperty(zi,"__esModule",{value:!0});zi.Agent=void 0;var unt=xhe(Q("net")),Nhe=xhe(Q("http")),lnt=Q("https");Ant(She(),zi);var Gc=Symbol("AgentBaseInternalState"),x8=class extends Nhe.Agent{constructor(e){super(e),this[Gc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new unt.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)?lnt.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 Nhe.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Gc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Gc].currentSocket;if(this[Gc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Gc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Gc]&&(this[Gc].defaultPort=e)}get protocol(){return this[Gc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Gc]&&(this[Gc].protocol=e)}};zi.Agent=x8});var Rhe=C(A0=>{"use strict";var dnt=A0&&A0.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(A0,"__esModule",{value:!0});A0.parseProxyResponse=void 0;var hnt=dnt(mx()),Ex=(0,hnt.default)("https-proxy-agent:parse-proxy-response");function fnt(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){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){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 g=f.split(" "),E=+g[1],m=g.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let B=y.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,B).toLowerCase(),V=y.slice(B+1).trimStart(),k=I[M];typeof k=="string"?I[M]=[k,V]:Array.isArray(k)?k.push(V):I[M]=V}Ex("got proxy server response: %o %o",f,I),o(),e({connect:{statusCode:E,statusText:m,headers:I},buffered:l})}t.on("error",c),t.on("end",a),i()})}A0.parseProxyResponse=fnt});var Mhe=C(Uo=>{"use strict";var gnt=Uo&&Uo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),pnt=Uo&&Uo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_he=Uo&&Uo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&gnt(e,t,r);return pnt(e,t),e},Fhe=Uo&&Uo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Uo,"__esModule",{value:!0});Uo.HttpsProxyAgent=void 0;var Cx=_he(Q("net")),Dhe=_he(Q("tls")),mnt=Fhe(Q("assert")),Ent=Fhe(mx()),Cnt=R8(),Int=Q("url"),ynt=Rhe(),cB=(0,Ent.default)("https-proxy-agent"),khe=t=>t.servername===void 0&&t.host&&!Cx.isIP(t.host)?{...t,servername:t.host}:t,Ix=class extends Cnt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Int.URL(e):e,this.proxyHeaders=r?.headers??{},cB("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?vhe(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(cB("Creating `tls.Socket`: %o",this.connectOpts),s=Dhe.connect(khe(this.connectOpts))):(cB("Creating `net.Socket`: %o",this.connectOpts),s=Cx.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=Cx.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,ynt.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",Bnt),r.secureEndpoint?(cB("Upgrading socket connection to TLS"),Dhe.connect({...vhe(khe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new Cx.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{cB("Replaying proxy buffer for failed request"),(0,mnt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};Ix.protocols=["http","https"];Uo.HttpsProxyAgent=Ix;function Bnt(t){t.resume()}function vhe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Phe=C(Po=>{"use strict";var bnt=Po&&Po.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Qnt=Po&&Po.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Uhe=Po&&Po.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&bnt(e,t,r);return Qnt(e,t),e},wnt=Po&&Po.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Po,"__esModule",{value:!0});Po.HttpProxyAgent=void 0;var Snt=Uhe(Q("net")),Nnt=Uhe(Q("tls")),Tnt=wnt(mx()),xnt=Q("events"),Rnt=R8(),Lhe=Q("url"),u0=(0,Tnt.default)("http-proxy-agent"),yx=class extends Rnt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Lhe.URL(e):e,this.proxyHeaders=r?.headers??{},u0("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?Dnt(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 Lhe.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;u0("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(u0("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),u0("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(u0("Creating `tls.Socket`: %o",this.connectOpts),i=Nnt.connect(this.connectOpts)):(u0("Creating `net.Socket`: %o",this.connectOpts),i=Snt.connect(this.connectOpts)),await(0,xnt.once)(i,"connect"),i}};yx.protocols=["http","https"];Po.HttpProxyAgent=yx;function Dnt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Afe=C(vx=>{"use strict";Object.defineProperty(vx,"__esModule",{value:!0});vx.state=void 0;vx.state={instrumenterImplementation:void 0}});var Sfe=C(Ux=>{"use strict";Object.defineProperty(Ux,"__esModule",{value:!0});Ux.state=void 0;Ux.state={operationRequestMap:new WeakMap}});var Ame=C((_pr,PAt)=>{PAt.exports={name:"@actions/cache",version:"6.2.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var lme=C((Fpr,ume)=>{var OAt=Ame();ume.exports={version:OAt.version}});var pD=C(_0=>{"use strict";Object.defineProperty(_0,"__esModule",{value:!0});_0.isJsonObject=_0.typeofJsonValue=void 0;function jAt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}_0.typeofJsonValue=jAt;function KAt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}_0.isJsonObject=KAt});var ED=C(F0=>{"use strict";Object.defineProperty(F0,"__esModule",{value:!0});F0.base64encode=F0.base64decode=void 0;var Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),mD=[];for(let t=0;t<Gu.length;t++)mD[Gu[t].charCodeAt(0)]=t;mD[45]=Gu.indexOf("+");mD[95]=Gu.indexOf("/");function $At(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=mD[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)}F0.base64decode=$At;function XAt(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}F0.base64encode=XAt});var pme=C(CD=>{"use strict";Object.defineProperty(CD,"__esModule",{value:!0});CD.utf8read=void 0;var B9=t=>String.fromCharCode.apply(String,t);function ZAt(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(B9(n)),s=0);return r.length?(s&&r.push(B9(n.slice(0,s))),r.join("")):B9(n.slice(0,s))}CD.utf8read=ZAt});var sb=C(hA=>{"use strict";Object.defineProperty(hA,"__esModule",{value:!0});hA.WireType=hA.mergeBinaryOptions=hA.UnknownFieldHandler=void 0;var eut;(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])})(eut=hA.UnknownFieldHandler||(hA.UnknownFieldHandler={}));function tut(t,e){return Object.assign(Object.assign({},t),e)}hA.mergeBinaryOptions=tut;var rut;(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"})(rut=hA.WireType||(hA.WireType={}))});var yD=C(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.varint32read=mi.varint32write=mi.int64toString=mi.int64fromString=mi.varint64write=mi.varint64read=void 0;function nut(){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")}mi.varint64read=nut;function sut(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)}}mi.varint64write=sut;var ID=65536*65536;function iut(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>=ID&&(s=s+(n/ID|0),n=n%ID)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}mi.int64fromString=iut;function out(t,e){if(e>>>0<=2097151)return""+(ID*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)}mi.int64toString=out;function aut(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)}}mi.varint32write=aut;function cut(){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}mi.varint32read=cut});var Id=C(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.PbLong=Cd.PbULong=Cd.detectBi=void 0;var ib=yD(),or;function mme(){let t=new DataView(new ArrayBuffer(8));or=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=mme;mme();function Eme(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Cme=/^-?[0-9]+$/,bD=4294967296,BD=2147483648,QD=c Line truncated
`)}};zD.RpcError=j9});var $9=C(KD=>{"use strict";Object.defineProperty(KD,"__esModule",{value:!0});KD.mergeRpcOptions=void 0;var jme=At();function Rlt(t,e){if(!e)return t;let r={};jD(t,r),jD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=jme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=jme.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},jD(t.meta,r.meta),jD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}KD.mergeRpcOptions=Rlt;function jD(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 Z9=C(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.Deferred=Xf.DeferredState=void 0;var pA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(pA=Xf.DeferredState||(Xf.DeferredState={}));var X9=class{constructor(e=!0){this._state=pA.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!==pA.PENDING)throw new Error(`cannot resolve ${pA[this.state].toLowerCase()}`);this._resolve(e),this._state=pA.RESOLVED}reject(e){if(this.state!==pA.PENDING)throw new Error(`cannot reject ${pA[this.state].toLowerCase()}`);this._reject(e),this._state=pA.REJECTED}resolvePending(e){this._state===pA.PENDING&&this.resolve(e)}rejectPending(e){this._state===pA.PENDING&&this.reject(e)}};Xf.Deferred=X9});var tG=C($D=>{"use strict";Object.defineProperty($D,"__esModule",{value:!0});$D.RpcOutputStreamController=void 0;var Kme=Z9(),Zf=At(),eG=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){Zf.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){Zf.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){Zf.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(){Zf.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;Zf.assert(e,"bad state"),Zf.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 Kme.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Zf.assert(n.state==Kme.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};$D.RpcOutputStreamController=eG});var nG=C(G0=>{"use strict";var Dlt=G0&&G0.__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(G0,"__esModule",{value:!0});G0.UnaryCall=void 0;var rG=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 Dlt(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}})}};G0.UnaryCall=rG});var iG=C(q0=>{"use strict";var klt=q0&&q0.__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(q0,"__esModule",{value:!0});q0.ServerStreamingCall=void 0;var sG=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 oye=C(iye=>{"use strict";var tV=el().Buffer;iye._dbcs=tl;var rs=-1,sye=-2,aa=-10,Hs=-1e3,yE=new Array(256),oQ=-1;for(Fk=0;Fk<256;Fk++)yE[Fk]=rs;var Fk;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]=yE.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(yE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(yE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Hs-o[n]],c=48;c<=57;c++){if(a[c]===rs)a[c]=Hs-s;else if(a[c]>Hs)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Hs-a[c]],u=129;u<=254;u++){if(A[u]===rs)A[u]=Hs-i;else{if(A[u]===Hs-i)continue;if(A[u]>Hs)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Hs-A[u]],d=48;d<=57;d++)l[d]===rs&&(l[d]=sye)}}}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 Dyt(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(pyt.has(s)){r=s;break}}return r}function kyt(t,e){let r=Dyt(e);r!==""&&(t.referrerPolicy=r)}function vyt(){return"allowed"}function _yt(){return"success"}function Fyt(){return"success"}function Myt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Lyt(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&&I7(t.origin)&&!I7(Tg(t))&&(e=null);break;case"same-origin":pQ(t,Tg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function SE(t,e){return t}function Uyt(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 Pyt(t){return SE(Iyt.now(),t)}function Oyt(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 Hyt(t){return{referrerPolicy:t.referrerPolicy}}function Gyt(t){let e=t.referrerPolicy;mQ(e);let r=null;if(t.referrer==="client"){let i=Rbe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Yd.is.URL(t.referrer)&&(r=t.referrer);let n=C7(r),s=C7(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??C7(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Tg(t);return Ng(n)&&!Ng(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Tg(t);return pQ(n,i)?n:Ng(n)&&!Ng(i)?"no-referrer":s}case"same-origin":return pQ(t,n)?n:"no-referrer";case"origin-when-cross-origin":return pQ(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Tg(t);return Ng(n)&&!Ng(i)?"no-referrer":n}}}function C7(t,e=!1){return mQ(Yd.is.URL(t)),t=new URL(t),Pbe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var qyt=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)$/),Yyt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function Mbe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),Yyt(t)):qyt(t)}function Vyt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||Mbe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Ng(t){return Yd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:Vyt(t.origin):!1}function Wyt(t){}function pQ(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Jyt(t){return t.controller.state==="aborted"}function zyt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function jyt(t){return Byt[t.toLowerCase()]??t}var Kyt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Lbe(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,Kyt),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 $yt(t,e,r,n=0,s=1){let i=Lbe(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=ua(a=>x7(a)&&a!==59,t,e);i=N7.decode(o)}return{name:n,value:i,extended:s}}function yBt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw wi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=ua(a=>a!==10&&a!==13&&a!==58,t,e);if(o=T7(o,!0,!0,a=>a===9||a===32),!hBt.test(o.toString()))throw wi("header name does not match the field-name token production");if(t[e.position]!==58)throw wi("expected :");switch(e.position++,ua(a=>a===32||a===9,t,e),dBt(o)){case"content-disposition":{r=n=null;let a=!1;if(ua(A=>x7(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw wi("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=IBt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw wi("name attribute is required in content-disposition header");break}case"content-type":{let a=ua(c=>c!==10&&c!==13,t,e);a=T7(a,!1,!0,c=>c===9||c===32),s=Vbe(a);break}case"content-transfer-encoding":{let a=ua(c=>c!==10&&c!==13,t,e);a=T7(a,!1,!0,c=>c===9||c===32),i=Vbe(a);break}default:ua(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw wi("expected CRLF");e.position+=2}}function ua(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 BBt(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}function wi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function bBt(t){return t<=31||t===127}function QBt(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 x7(t){return t<=127&&t!==32&&t!==9&&!bBt(t)&&!QBt(t)}Wbe.exports={multipartFormDataParser:CBt,validateBoundary:EBt}});var EQ=C((qbr,zbe)=>{"use strict";function wBt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}zbe.exports={createDeferredPromise:wBt}});var xE=C((Ybr,Zbe)=>{"use strict";var k7=Ze(),{ReadableStreamFrom:SBt,readableStreamClose:NBt,fullyReadBody:TBt,extractMimeType:xBt}=ao(),{FormData:jbe,setFormDataState:RBt}=ov(),{webidl:uc}=ns(),R7=Q("node:assert"),{isErrored:D7,isDisturbed:DBt}=Q("node:stream"),{isUint8Array:kBt}=Q("node:util/types"),{serializeAMimeType:vBt}=Aa(),{multipartFormDataParser:_Bt}=Jbe(),{createDeferredPromise:FBt}=EQ(),{parseJSONFromBytes:MBt}=sl(),{utf8DecodeBytes:LBt}=ev(),{runtimeFeatures:UBt}=il(),PBt=UBt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),av=new TextEncoder;function OBt(){}var HBt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!DBt(e)&&!D7(e)&&e.cancel("Response object has been garbage collected").catch(OBt)});function $be(t,e=!1){let r=null,n=null;uc.is.ReadableStream(t)?r=t:uc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),R7(uc.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(uc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(uc.is.BufferSource(t))i=uc.util.getCopyOfBytesHeldByBufferSource(t);else if(uc.is.FormData(t)){let A=`----formdata-undici-0${`${PBt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],g=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,I]of t)if(typeof I=="string"){let y=tV.encode(u+`; name="${l(d(m))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let g=!1;for(let[m,I]of t)if(typeof I=="string"){let y=av.encode(u+`; name="${l(d(m))}"\r
\r
${d(I)}\r
`);h.push(y),o+=y.byteLength}else{let y=tV.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
`);h.push(y),o+=y.byteLength}else{let y=av.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
\r
`);h.push(y,I,g),typeof I.size=="number"?o+=y.byteLength+I.size+g.byteLength:p=!0}let C=tV.encode(`--${c}--\r
`);h.push(C),o+=C.byteLength,p&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${c}`}else if(jd.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(zEe.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=jd.is.ReadableStream(t)?t:QYr(t)}return(typeof i=="string"||RYr(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(WEe(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!WEe(r)&&n.enqueue(typeof c=="string"?tV.encode(c):new Uint8Array(c));queueMicrotask(()=>yYr(n))})(),[{stream:r,source:i,length:o},a]}function PYr(t,e=!1){return jd.is.ReadableStream(t)&&(VEe(!zEe.isDisturbed(t),"The body has already been consumed."),VEe(!t.locked,"The stream is locked.")),Iht(t,e)}function _Yr(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function OYr(t,e){return{blob(){return yD(this,n=>{let s=Cht(e(this));return s===null?s="":s&&(s=DYr(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return yD(this,n=>new Uint8Array(n).buffer,t,e)},text(){return yD(this,FYr,t,e)},json(){return yD(this,kYr,t,e)},formData(){return yD(this,n=>{let s=Cht(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=xYr(n,s),o=new Eht;return NYr(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new Eht;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return yD(this,n=>new Uint8Array(n),t,e)}}}function HYr(t,e){Object.assign(t.prototype,OYr(t,e))}function yD(t,e,r,n){try{jd.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Bht(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=TYr(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(bYr(t.body,o,i),s.promise)}function Bht(t){let e=t.body;return e!=null&&(e.stream.locked||zEe.isDisturbed(e.stream))}function Cht(t){let e=t.headersList,r=wYr(e);return r==="failure"?null:r}Qht.exports={extractBody:Iht,safelyExtractBody:PYr,cloneBody:_Yr,mixinBody:HYr,streamRegistry:UYr,bodyUnusable:Bht}});var Fht=f((EGn,kht)=>{"use strict";var Lt=B("node:assert"),Pt=Wt(),{channels:yht}=YC(),jEe=Mme(),{RequestContentLengthMismatchError:DQ,ResponseContentLengthMismatchError:qYr,RequestAbortedError:Dht,HeadersTimeoutError:GYr,HeadersOverflowError:YYr,SocketError:fv,InformationalError:wD,BodyTimeoutError:JYr,HTTPParserError:VYr,ResponseExceededMaxSizeError:WYr}=or(),{kUrl:xht,kReset:dc,kClient:rCe,kParser:ai,kBlocking:pv,kRunning:Na,kPending:zYr,kSize:bht,kWriting:zC,kQueue:Kd,kNoRef:hv,kKeepAliveDefaultTimeout:jYr,kHostHeader:KYr,kPendingIdx:XYr,kRunningIdx:Pl,kError:_l,kPipelining:sV,kSocket:ND,kKeepAliveTimeoutValue:oV,kMaxHeadersSize:ZYr,kKeepAliveMaxTimeout:$Yr,kKeepAliveTimeoutThreshold:e5r,kHeadersTimeout:t5r,kBodyTimeout:r5r,kStrictContentLength:ZEe,kMaxRequests:wht,kCounter:n5r,kMaxResponseSize:s5r,kOnError:i5r,kResume:WC,kHTTPContext:Tht,kClosed:$Ee}=Mn(),Fg=Qdt(),o5r=Buffer.alloc(0),rV=Buffer[Symbol.species],a5r=Pt.removeAllListeners,KEe;function A5r(){let t=process.env.JEST_WORKER_ID?QEe():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(wdt())}catch{}return e||(e=new WebAssembly.Module(t||QEe())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-vg+Mg.byteOffset;return Ki.onStatus(new rV(Mg.buffer,o,i))},wasm_on_message_begin:n=>(Lt(Ki.ptr===n),Ki.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-vg+Mg.byteOffset;return Ki.onHeaderField(new rV(Mg.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-vg+Mg.byteOffset;return Ki.onHeaderValue(new rV(Mg.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Lt(Ki.ptr===n),Ki.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-vg+Mg.byteOffset;return Ki.onBody(new rV(Mg.buffer,o,i))},wasm_on_message_complete:n=>(Lt(Ki.ptr===n),Ki.onMessageComplete())}})}var XEe=null,Ki=null,Mg=null,nV=0,vg=null,c5r=0,gv=1,SD=2|gv,iV=4|gv,eCe=8|c5r,tCe=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Fg.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[ZYr],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxRespons Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[KYr],i?p+=`connection: upgrade\r
`);h.push(y,I,f),typeof I.size=="number"?o+=y.byteLength+I.size+f.byteLength:g=!0}let E=av.encode(`--${A}--\r
`);h.push(E),o+=E.byteLength,g&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${A}`}else if(uc.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(k7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=uc.is.ReadableStream(t)?t:SBt(t)}return(typeof i=="string"||kBt(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(D7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!D7(r)&&n.enqueue(typeof A=="string"?av.encode(A):new Uint8Array(A));queueMicrotask(()=>NBt(n))})(),[{stream:r,source:i,length:o},a]}function GBt(t,e=!1){return uc.is.ReadableStream(t)&&(R7(!k7.isDisturbed(t),"The body has already been consumed."),R7(!t.locked,"The stream is locked.")),$be(t,e)}function qBt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function YBt(t,e){return{blob(){return TE(this,n=>{let s=Kbe(e(this));return s===null?s="":s&&(s=vBt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return TE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return TE(this,LBt,t,e)},json(){return TE(this,MBt,t,e)},formData(){return TE(this,n=>{let s=Kbe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=_Bt(n,s),o=new jbe;return RBt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new jbe;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 TE(this,n=>new Uint8Array(n),t,e)}}}function VBt(t,e){Object.assign(t.prototype,YBt(t,e))}function TE(t,e,r,n){try{uc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Xbe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=FBt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(TBt(t.body,o,i),s.promise)}function Xbe(t){let e=t.body;return e!=null&&(e.stream.locked||k7.isDisturbed(e.stream))}function Kbe(t){let e=t.headersList,r=xBt(e);return r==="failure"?null:r}Zbe.exports={extractBody:$be,safelyExtractBody:GBt,cloneBody:qBt,mixinBody:VBt,streamRegistry:HBt,bodyUnusable:Xbe}});var fQe=C((Vbr,hQe)=>{"use strict";var He=Q("node:assert"),De=Ze(),{channels:eQe}=Gd(),v7=hV(),{RequestContentLengthMismatchError:xg,ResponseContentLengthMismatchError:tQe,RequestAbortedError:AQe,InvalidArgumentError:WBt,HeadersTimeoutError:JBt,HeadersOverflowError:zBt,SocketError:Rg,InformationalError:RE,BodyTimeoutError:jBt,HTTPParserError:KBt,ResponseExceededMaxSizeError:$Bt}=Xe(),{kUrl:uQe,kReset:Si,kClient:dv,kParser:pr,kBlocking:yQ,kRunning:fn,kPending:O7,kSize:rQe,kWriting:Vd,kQueue:lc,kNoRef:CQ,kKeepAliveDefaultTimeout:XBt,kHostHeader:ZBt,kPendingIdx:ebt,kRunningIdx:la,kError:Gs,kPipelining:uv,kSocket:kg,kKeepAliveTimeoutValue:hv,kMaxHeadersSize:tbt,kKeepAliveMaxTimeout:rbt,kKeepAliveTimeoutThreshold:nbt,kHeadersTimeout:sbt,kBodyTimeout:ibt,kStrictContentLength:M7,kMaxRequests:nQe,kCounter:obt,kMaxResponseSize:abt,kOnError:sQe,kResume:al,kHTTPContext:lQe,kClosed:L7}=Kt(),co=ZBe(),iQe=Buffer.alloc(0),cv=Buffer[Symbol.species],cbt=De.removeAllListeners,vg=Symbol("kIdleSocketValidation"),Dg=Symbol("kIdleSocketValidationTimeout"),H7=Symbol("kSocketUsed"),_7;function Abt(){let t=process.env.JEST_WORKER_ID?o7():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(rbe())}catch{}return e||(e=new WebAssembly.Module(t||o7())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onStatus(new cv(NA.buffer,o,i))},wasm_on_message_begin:n=>(He(zr.ptr===n),zr.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onHeaderField(new cv(NA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onHeaderValue(new cv(NA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(He(zr.ptr===n),zr.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onBody(new cv(NA.buffer,o,i))},wasm_on_message_complete:n=>(He(zr.ptr===n),zr.onMessageComplete())}})}var F7=null,zr=null,NA=null,Av=0,TA=null,ubt=0,IQ=1,DE=2|IQ,lv=4|IQ,U7=8|ubt,P7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(co.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[tbt],this.shouldKeepAliv Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[ZBt],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[sV]&&!h[dc]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return yht.sendHeaders.hasSubscribers&&yht.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Sht(g,null,t,e,h,u,p,l):Pt.isBuffer(A)?Sht(g,A,t,e,h,u,p,l):Pt.isBlobLike(A)?typeof A.stream=="function"?Rht(g,A.stream(),t,e,h,u,p,l):I5r(g,A,t,e,h,u,p,l):Pt.isStream(A)?C5r(g,A,t,e,h,u,p,l):Pt.isIterable(A)?Rht(g,A,t,e,h,u,p,l):Lt(!1),!0}function C5r(t,e,r,n,s,i,o,a){Lt(i!==0||r[Na]===0,"stream body cannot be pipelined");let A=!1,c=new aV({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Pt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new Dht;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,Lt(s.destroyed||s[zC]&&r[Na]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Pt.destroy(e,g):Pt.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function Sht(t,e,r,n,s,i,o,a){try{e?Pt.isBuffer(e)&&(Lt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[uv]&&!h[Si]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return eQe.sendHeaders.hasSubscribers&&eQe.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?aQe(f,null,t,e,h,u,g,l):De.isBuffer(c)?aQe(f,c,t,e,h,u,g,l):De.isBlobLike(c)?typeof c.stream=="function"?cQe(f,c.stream(),t,e,h,u,g,l):Bbt(f,c,t,e,h,u,g,l):De.isStream(c)?ybt(f,c,t,e,h,u,g,l):De.isIterable(c)?cQe(f,c,t,e,h,u,g,l):He(!1),!0}function ybt(t,e,r,n,s,i,o,a){He(i!==0||r[fn]===0,"stream body cannot be pipelined");let c=!1,A=new fv({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){De.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new AQe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,He(s.destroyed||s[Vd]&&r[fn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?De.destroy(e,f):De.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 aQe(t,e,r,n,s,i,o,a){try{e?De.isBuffer(e)&&(He(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[Si]=!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"):(He(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[al]()}catch(c){t(c)}}async function Bbt(t,e,r,n,s,i,o,a){He(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new xg;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[Si]=!0),r[al]()}catch(c){t(c)}}async function cQe(t,e,r,n,s,i,o,a){He(i!==0||r[fn]===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)=>{He(c===null),s[Gs]?h(s[Gs]):c=d});s.on("close",A).on("drain",A);let l=new fv({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Gs])throw s[Gs];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var fv=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[Gs])throw r[Gs];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[M7])throw new xg;process.emitWarning(new xg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Si]=!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[pr].timeout&&r[pr].timeoutType===DE&&r[pr].timeout.refresh&&r[pr].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[Gs])throw e[Gs];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[M7])throw new xg;process.emitWarning(new xg)}e[pr].timeout&&e[pr].timeoutType===DE&&e[pr].timeout.refresh&&e[pr].timeout.refresh(),n[al]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Vd]=!1,e&&(He(n[fn]<=1,"pipeline should only contain this request"),s(e))}};hQe.exports=lbt});var bQe=C((Wbr,BQe)=>{"use strict";var ha=Q("node:assert"),{pipeline:bbt}=Q("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:V7,RequestAbortedError:Qbt,SocketError:wQ,InformationalError:Wd,InvalidArgumentError:wbt}=Xe(),{kUrl:QQ,kReset:Ev,kClient:Ao,kRunning:SQ,kPending:Sbt,kQueue:Jd,kPendingIdx:J7,kRunningIdx:dc,kError:uo,kSocket:vr,kStrictContentLength:Nbt,kOnError:kE,kMaxConcurrentStreams:pv,kPingInterval:gQe,kHTTP2Session:cl,kHTTP2InitialWindowSize:Tbt,kHTTP2ConnectionWindowSize:xbt,kResume:xA,kSize:Rbt,kHTTPContext:z7,kClosed:W7,kBodyTimeout:Dbt,kEnableConnectProtocol:BQ,kRemoteSettings:bQ,kHTTP2Stream:gv,kHTTP2SessionState:j7}=Kt(),{channels:pQe}=Gd(),da=Symbol("open streams"),mQe,mv;try{mv=Q("node:http2")}catch{mv={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:kbt,HTTP2_HEADER_METHOD:EQe,HTTP2_HEADER_PATH:CQe,HTTP2_HEADER_SCHEME:G7,HTTP2_HEADER_CONTENT_LENGTH:vbt,HTTP2_HEADER_EXPECT:_bt,HTTP2_HEADER_STATUS:q7,HTTP2_HEADER_PROTOCOL:Fbt,NGHTTP2_REFUSED_STREAM:Mbt,NGHTTP2_CANCEL:Lbt}}=mv;function Y7(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 Ubt(t,e){t[vr]=e;let r=t[Tbt],n=t[xbt],s=mv.connect(t[QQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[pv],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[vr]=e,s[da]=0,s[Ao]=t,s[vr]=e,s[j7]={ping:{interval:t[gQe]===0?null:setInterval(Gbt,t[gQe],s).unref()}},s[BQ]=!1,s[bQ]=!1,n&&ut.addListener(s,"connect",Obt.bind(s,n)),ut.addListener(s,"error",qbt),ut.addListener(s,"frameError",Ybt),ut.addListener(s,"end",Vbt),ut.addListener(s,"goaway",Wbt),ut.addListener(s,"close",Jbt),ut.addListener(s,"remoteSettings",Hbt),s.unref(),t[cl]=s,e[cl]=s,ut.addListener(e,"error",jbt),ut.addListener(e,"end",Kbt),ut.addListener(e,"close",zbt),e[W7]=!1,e.on("close",$bt),{version:"h2",defaultPipelining:1/0,write(i){return Zbt(t,i)},resume(){Pbt(t)},destroy(i,o){e[W7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[SQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[bQ]===!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[bQ]===!1;return!1}}}function Pbt(t){let e=t[vr];e?.destroyed===!1&&(t[Rbt]===0||t[pv]===0?(e.unref(),t[cl].unref()):(e.ref(),t[cl].ref()))}function Obt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function Hbt(t){if(this[Ao][pv]=t.maxConcurrentStreams??this[Ao][pv],this[bQ]===!0&&this[BQ]===!0&&t.enableConnectProtocol===!1){let e=new Wd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[vr][uo]=e,this[Ao][kE](e);return}this[BQ]=t.enableConnectProtocol??this[BQ],this[bQ]=!0,this[Ao][xA]()}function Gbt(t){let e=t[j7];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[Ao],o=this[Ao];if(n!=null){let a=new Wd(`HTTP/2: "PING" errored - type ${n.message}`);o[uo]=a,i[kE](a)}else i.emit("ping",s)}}function qbt(t){ha(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[vr][uo]=t,this[Ao][kE](t)}function Ybt(t,e,r){if(r===0){let n=new Wd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[vr][uo]=n,this[Ao][kE](n)}}function Vbt(){let t=new wQ("other side closed",ut.getSocketInfo(this[vr]));this.destroy(t),ut.destroy(this[vr],t)}function Wbt(t){let e=this[uo]||new wQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[vr])),r=this[Ao];if(r[vr]=null,r[z7]=null,this.close(),this[cl]=null,ut.destroy(this[vr],e),r[dc]<r[Jd].length){let n=r[Jd][r[dc]];r[Jd][r[dc]++]=null,ut.errorRequest(r,n,e),r[J7]=r[dc]}ha(r[SQ]===0),r.emit("disconnect",r[QQ],[r],e),r.emit("connectionError",r[QQ],[r],e),r[xA]()}function Jbt(){let{[Ao]:t,[j7]:e}=this,{[vr]:r}=t,n=this[vr][uo]||this[uo]||new wQ("closed",ut.getSocketInfo(r));if(t[vr]=null,t[z7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ha(t[Sbt]===0);let s=t[Jd].splice(t[dc]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function zbt(){let t=this[uo]||new wQ("closed",ut.getSocketInfo(this)),e=this[cl][Ao];e[vr]=null,e[z7]=null,this[cl]!==null&&this[cl].destroy(t),e[J7]=e[dc],ha(e[SQ]===0),e.emit("disconnect",e[QQ],[e],t),e[xA]()}function jbt(t){ha(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[uo]=t,this[Ao][kE](t)}function Kbt(){ut.destroy(this,new wQ("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;pQe.sendHeaders.publish({request:e,headers:k,socket:n[vr]})}let B=s==="GET"||s==="HEAD"||d===null;c?(h[_bt]="100-continue",f=n.request(h,{endStream:B,signal:A}),f[gv]=!0,f.once("continue",V)):(f=n.request(h,{endStream:B,signal:A}),f[gv]=!0,V()),++n[da],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[q7]:P,...v}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),Y7(v),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[dc]++]=null,t[xA]()):(m(new Wd("HTTP/2: stream half-closed (remote)")),t[Jd][t[dc]++]=null,t[J7]=t[dc],t[xA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[da]-=1,n[da]===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[da]-=1,n[da]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function V(){!d||y===0?IQe(m,f,null,t,e,t[vr],y,I):ut.isBuffer(d)?IQe(m,f,d,t,e,t[vr],y,I):ut.isBlobLike(d)?typeof d.stream=="function"?yQe(m,f,d.stream(),t,e,t[vr],y,I):tQt(m,f,d,t,e,t[vr],y,I):ut.isStream(d)?eQt(m,t[vr],I,f,d,t,e,y):ut.isIterable(d)?yQe(m,f,d,t,e,t[vr],y,I):ha(!1)}}function IQe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(ha(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[Ev]=!0),s.onRequestSent(),n[xA]()}catch(c){t(c)}}function eQt(t,e,r,n,s,i,o,a){ha(a!==0||i[SQ]===0,"stream body cannot be pipelined");let c=bbt(s,n,u=>{u?(ut.destroy(c,u),t(u)):(ut.removeAllListeners(c),o.onRequestSent(),r||(e[Ev]=!0),i[xA]())});ut.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function tQt(t,e,r,n,s,i,o,a){ha(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new V7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[Ev]=!0),n[xA]()}catch(c){t(c)}}async function yQe(t,e,r,n,s,i,o,a){ha(o!==0||n[SQ]===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)=>{ha(c===null),i[uo]?d(i[uo]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[uo])throw i[uo];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[Ev]=!0),n[xA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}BQe.exports=Ubt});var $d=C((Jbr,DQe)=>{"use strict";var Al=Q("node:assert"),NQe=Q("node:net"),NQ=Q("node:http"),_g=Ze(),{ClientStats:rQt}=GV(),{channels:vE}=Gd(),nQt=HBe(),sQt=Qg(),{InvalidArgumentError:mr,InformationalError:iQt,ClientDestroyedError:oQt}=Xe(),aQt=wg(),{kUrl:RA,kServerName:Kd,kClient:cQt,kBusy:$7,kConnect:AQt,kResuming:Fg,kRunning:DQ,kPending:kQ,kSize:TQ,kQueue:hc,kConnected:uQt,kConnecting:_E,kNeedDrain:jd,kKeepAliveDefaultTimeout:QQe,kHostHeader:lQt,kPendingIdx:fc,kRunningIdx:ll,kError:dQt,kPipelining:Cv,kKeepAliveTimeoutValue:hQt,kMaxHeadersSize:fQt,kKeepAliveMaxTimeout:gQt,kKeepAliveTimeoutThreshold:pQt,kHeadersTimeout:mQt,kBodyTimeout:EQt,kStrictContentLength:CQt,kConnector:xQ,kMaxRequests:X7,kCounter:IQt,kClose:yQt,kDestroy:BQt,kDispatch:bQt,kLocalAddress:RQ,kMaxResponseSize:QQt,kOnError:wQt,kHTTPContext:on,kMaxConcurrentStreams:SQt,kHTTP2InitialWindowSize:NQt,kHTTP2ConnectionWindowSize:TQt,kResume:ul,kPingInterval:xQt}=Kt(),RQt=fQe(),DQt=bQe(),zd=Symbol("kClosedResolve"),kQt=NQ&&NQ.maxHeaderSize&&Number.isInteger(NQ.maxHeaderSize)&&NQ.maxHeaderSize>0?()=>NQ.maxHeaderSize:()=>{throw new mr("http module not available or http.maxHeaderSize invalid")},wQe=()=>{};function TQe(t){return t[Cv]??t[on]?.defaultPipelining??1}var Z7=class extends sQt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:g,tls:E,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:B,localAddress:M,maxResponseSize:V,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:v,allowH2:z,useH2c:X,initialWindowSize:te,connectionWindowSize:ce,pingInterval:ue,webSocket:Fe}={}){if(A!==void 0)throw new mr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new mr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new mr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new mr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw Line truncated
`,this[EQt]=a??3e5,this[mQt]=n??3e5,this[CQt]=m??!0,this[X7]=B,this[zd]=null,this[QQt]=V>-1?V:-1,this[on]=null,this[SQt]=v??100,this[NQt]=te??262144,this[TQt]=ce??524288,this[xQt]=ue??6e4,this[hc]=[],this[ll]=0,this[fc]=0,this[ul]=ke=>eW(this,ke),this[wQt]=ke=>xQe(this,ke)}get pipelining(){return this[Cv]}set pipelining(e){this[Cv]=e,this[ul](!0)}get stats(){return new rQt(this)}get[kQ](){return this[hc].length-this[fc]}get[DQ](){return this[fc]-this[ll]}get[TQ](){return this[hc].length-this[ll]}get[uQt](){return!!this[on]&&!this[_E]&&!this[on].destroyed}get[$7](){return!!(this[on]?.busy(null)||this[TQ]>=(TQe(this)||1)||this[kQ]>0)}[AQt](e){RQe(this),this.once("connect",e)}[bQt](e,r){let n=new nQt(this[RA].origin,e,r);return this[hc].push(n),this[Fg]||(_g.bodyLength(n.body)==null&&_g.isIterable(n.body)?(this[Fg]=1,queueMicrotask(()=>eW(this))):this[ul](!0)),this[Fg]&&this[jd]!==2&&this[$7]&&(this[jd]=2),this[jd]<2}[yQt](){return new Promise(e=>{this[TQ]?this[zd]=e:e(null)})}[BQt](e){return new Promise(r=>{let n=this[hc].splice(this[fc]);for(let i=0;i<n.length;i++){let o=n[i];_g.errorRequest(this,o,e)}let s=()=>{this[zd]&&(this[zd](),this[zd]=null),r(null)};this[on]?(this[on].destroy(e,s),this[on]=null):queueMicrotask(s),this[ul]()})}};function xQe(t,e){if(t[DQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Al(t[fc]===t[ll]);let r=t[hc].splice(t[ll]);for(let n=0;n<r.length;n++){let s=r[n];_g.errorRequest(t,s,e)}Al(t[TQ]===0)}}function RQe(t){Al(!t[_E]),Al(!t[on]);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(NQe.isIPv6(o)),r=o}t[_E]=!0,vE.beforeConnect.hasSubscribers&&vE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[on]?.version,servername:t[Kd],localAddress:t[RQ]},connector:t[xQ]});try{t[xQ]({host:e,hostname:r,protocol:n,port:s,servername:t[Kd],localAddress:t[RQ]},(i,o)=>{if(i){K7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[ul]();return}if(t.destroyed){_g.destroy(o.on("error",wQe),new oQt),t[ul]();return}Al(o);try{t[on]=o.alpnProtocol==="h2"?DQt(t,o):RQt(t,o)}catch(a){o.destroy().on("error",wQe),K7(t,a,{host:e,hostname:r,protocol:n,port:s}),t[ul]();return}t[_E]=!1,o[IQt]=0,o[X7]=t[X7],o[cQt]=t,o[dQt]=null,vE.connected.hasSubscribers&&vE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[on]?.version,servername:t[Kd],localAddress:t[RQ]},connector:t[xQ],socket:o}),t.emit("connect",t[RA],[t]),t[ul]()})}catch(i){K7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[ul]()}}function K7(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[_E]=!1,vE.connectError.hasSubscribers&&vE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[on]?.version,servername:t[Kd],localAddress:t[RQ]},connector:t[xQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Al(t[DQ]===0);t[kQ]>0&&t[hc][t[fc]].servername===t[Kd];){let o=t[hc][t[fc]++];_g.errorRequest(t,o,e)}else xQe(t,e);t.emit("connectionError",t[RA],[t],e)}}function SQe(t){t[jd]=0,t.emit("drain",t[RA],[t])}function eW(t,e){t[Fg]!==2&&(t[Fg]=2,vQt(t,e),t[Fg]=0,t[ll]>256&&(t[hc].splice(0,t[ll]),t[fc]-=t[ll],t[ll]=0))}function vQt(t,e){for(;;){if(t.destroyed){Al(t[kQ]===0);return}if(t[zd]&&!t[TQ]){t[zd](),t[zd]=null;return}if(t[on]&&t[on].resume(),t[$7])t[jd]=2;else if(t[jd]===2){e?(t[jd]=1,queueMicrotask(()=>SQe(t))):SQe(t);continue}if(t[kQ]===0||t[DQ]>=(TQe(t)||1))return;let r=t[hc][t[fc]];if(r===null)return;if(t[RA].protocol==="https:"&&t[Kd]!==r.servername){if(t[DQ]>0)return;t[Kd]=r.servername,t[on]?.destroy(new iQt("servername changed"),()=>{t[on]=null,eW(t)})}if(t[_E])return;if(!t[on]){RQe(t);return}if(t[on].destroyed||t[on].busy(r))return;!r.aborted&&t[on].write(r)?t[fc]++:t[hc].splice(t[fc],1)}}DQe.exports=Z7});var tW=C((jbr,kQe)=>{"use strict";var Iv=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)}};kQe.exports=class{constructor(){this.head=this.tail=new Iv}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Iv),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 yv=C((Kbr,HQe)=>{"use strict";var{PoolStats:_Qt}=GV(),FQt=Qg(),MQt=tW(),{kConnected:rW,kSize:vQe,kRunning:_Qe,kPending:FQe,kQueued:vQ,kBusy:LQt,kFree:UQt,kUrl:PQt,kClose:OQt,kDestroy:HQt,kDispatch:GQt}=Kt(),Jn=Symbol("clients"),qs=Symbol("needDrain"),_Q=Symbol("queue"),nW=Symbol("closed resolve"),sW=Symbol("onDrain"),MQe=Symbol("onConnect"),LQe=Symbol("onDisconnect"),UQe=Symbol("onConnectionError"),iW=Symbol("get dispatcher"),PQe=Symbol("add client"),OQe=Symbol("remove client"),oW=class extends FQt{[_Q]=new MQt;[vQ]=0;[Jn] 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())}};dSe.exports=QJ});var SJ=C((NQr,pSe)=>{"use strict";var{InvalidArgumentError:USt}=Xe(),{runtimeFeatures:PSt}=il();function OSt(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 hSe=PSt.has("crypto")?Q("node:crypto"):null,HSt=hSe?.hash?t=>hSe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function gSe(t){return Array.isArray(t)&&(t.length&1)===0}function GSt(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 qSt(t){let e={};if(!t)return e;if(gSe(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 fSe=["record","playback","update"];function YSt(t){if(!fSe.includes(t))throw new USt(`Invalid snapshot mode: ${t}. Must be one of: ${fSe.join(", ")}`)}pSe.exports={createHeaderFilters:OSt,hashId:HSt,isUndiciHeaders:gSe,normalizeHeaders:qSt,isUrlExcludedFactory:GSt,validateSnapshotMode:YSt}});var wSe=C((TQr,QSe)=>{"use strict";var{writeFile:VSt,readFile:WSt,mkdir:JSt}=Q("node:fs/promises"),{dirname:zSt,resolve:mSe}=Q("node:path"),{setTimeout:jSt,clearTimeout:ESe}=Q("node:timers"),{InvalidArgumentError:CSe,UndiciError:KSt}=Xe(),{hashId:$St,isUrlExcludedFactory:XSt,normalizeHeaders:ISe,createHeaderFilters:ySe}=SJ();function WQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||ISe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:BSe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function BSe(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 bSe(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 JQ(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 $St(r)}var NJ=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#c;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#c=ySe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=XSt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=WQ(e,this.#c,this.matchOptions),s=JQ(n),i=ISe(r.headers),o={statusCode:r.statusCode,headers:bSe(i,this.#c,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=WQ(e,this.#c,this.matchOptions),n=JQ(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 CSe("Snapshot path is required");try{let n=await WSt(mSe(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 KSt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new CSe("Snapshot path is required");let n=mSe(r);await JSt(zSt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await VSt(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${ho} (
-- 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${ho}_getValuesQuery ON cacheInterceptorV${ho}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ho}_deleteByUrlQuery ON cacheInterceptorV${ho}(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${ho}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${du} SET
`),this.#i=this.#n.prepare(`
UPDATE cacheInterceptorV${ho} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -316,8 +167,8 @@ ${e.format(r)}`.trim())}};ppt.exports=kIe});var MIe=f((XGn,Ipt)=>{"use strict";v
staleAt = ?
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${du} (
`),this.#s=this.#n.prepare(`
INSERT INTO cacheInterceptorV${ho} (
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${ho} WHERE url = ?`),this.#a=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ho}`),this.#c=this.#n.prepare(`DELETE FROM cacheInterceptorV${ho} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ho}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${du}
ORDER BY cachedAt DESC
FROM cacheInterceptorV${ho}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){nBe(e);let r=this.#g(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){nBe(e);let n=this.#h(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#g(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){nBe(e),hzr(r);let n=0,s=[],i=this;return new dzr({decodeStrings:!0,write(o,a,A){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#h(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#h(e){return`${e.origin}/${e.path}`}#g(e,r=!1){let n=this.#h(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!gzr(s[l],u[l])){c=!1;break}}if(c)return A}}};function gzr(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var HQ=f((I8n,Mmt)=>{"use strict";var{kConstruct:fzr}=Mn(),{kEnumerableProperty:JD}=Wt(),{iteratorMixin:pzr,isValidHeaderName:Vv,isValidHeaderValue:Dmt}=au(),{webidl:Pr}=Ko(),iBe=B("node:assert"),JV=B("node:util");function Rmt(t){return t===10||t===13||t===9||t===32}function xmt(t){let e=0,r=t.length;for(;r>e&&Rmt(t.charCodeAt(r-1));)--r;for(;r>e&&Rmt(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Tmt(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Pr.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});oBe(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)oBe(t,r[n],e[r[n]])}else throw Pr.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function oBe(t,e,r){if(r=xmt(r),Vv(e)){if(!Dmt(r))throw Pr.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Pr.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Fmt(t)==="immutable")throw new TypeError("immutable");return WV(t).append(e,r,!1)}function mzr(t){let e=WV(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let A=0;A<s.length;++A)r.push([o,s[A]]);else r.push([o,a])}return e.sortedMap=r}function kmt(t,e){return t[0]<e[0]?-1:1}var VV=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMa Line truncated
${i}`;break;case"retry":OCt(i)&&(r[s]=i);break;case"id":HCt(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&OCt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&HCt(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};qCt.exports={EventSourceStream:qBe}});var XCt=f((J8n,KCt)=>{"use strict";var{pipeline:FXr}=B("node:stream"),{fetching:MXr}=Xv(),{makeRequest:vXr}=WD(),{webidl:lA}=Ko(),{EventSourceStream:LXr}=GCt(),{parseMIMEType:UXr}=Ll(),{createFastMessageEvent:PXr}=EW(),{isNetworkError:YCt}=zv(),{kEnumerableProperty:jQ}=Wt(),{environmentSettingsObject:JCt}=au(),VCt=!1,WCt=3e3,nL=0,zCt=1,sL=2,_Xr="anonymous",OXr="use-credentials",nx=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=nL;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),lA.util.markAsUncloneable(this);let n="EventSource constructor";lA.argumentLengthCheck(arguments,1,n),VCt||(VCt=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=lA.converters.USVString(e),r=lA.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=JCt,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=_Xr;r.withCredentials===!0&&(o=OXr,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=JCt.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=vXr(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===sL)return;this.#r=nL;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!YCt(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(YCt(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?UXr(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=zCt,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new LXr({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(PXr(A.type,A.options))}});FXr(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=MXr(e)}#c(){this.#r!==sL&&(this.#r=nL,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===nL&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){lA.brandCheck(this,t),this.#r!==sL&&(this.#r=sL,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=lA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=lA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=lA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},jCt={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:nL,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:zCt,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:sL,writable:!1}};Object.defineProperties(nx,jCt);Object.defineProperties(nx.prototype,jCt);Object.defineProperties(nx.prototype,{close:jQ,onerror:jQ,onmessage:jQ,onopen:jQ,readyState:jQ,url:jQ,withCredentials:jQ});lA.converters.EventSourceInitDict=lA.dictionaryConverter([{key:"withCredentials",converter:lA.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:lA.converters.any},{key:"node",converter:lA.dictionaryConverter([{key:"reconnectionTime",converter:lA.converters["unsigned long"],defaultValue:()=>WCt},{key:"dispatcher",converter:lA.converters.any}]),defaultValue:()=>({})}]);KCt.exports={EventSource:nx,defaultReconnectionTime:WCt}});var nIt=f((V8n,Oe)=>{"use strict";var HXr=tI(),$Ct=sv(),qXr=TD(),GXr=fgt(),YXr=Cgt(),JXr=MQ(),VXr=UCe(),WXr=Ggt(),zXr=jgt(),jXr=Zgt(),eIt=or(),kW=Wt(),{InvalidArgumentError:TW}=eIt,sx=Fft(),KXr=ID(),XXr=BIe(),{MockCallHistory:ZXr,Mock Line truncated
`)}close(){this.#n.close()}get(e){tz(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){tz(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.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){tz(e),txt(r);let n=0,s=[],i=this;return new ext({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.#c.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.#a.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)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!rxt(s[l],u[l])){A=!1;break}}if(A)return c}}};function rxt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var Xg=C((KQr,JNe)=>{"use strict";var{kConstruct:nxt}=Kt(),{kEnumerableProperty:XE}=Ze(),{iteratorMixin:sxt,isValidHeaderName:ew,isValidHeaderValue:GNe}=ao(),{webidl:wt}=ns(),nz=Q("node:assert"),Xv=Q("node:util");function HNe(t){return t===10||t===13||t===9||t===32}function qNe(t){let e=0,r=t.length;for(;r>e&&HNe(t.charCodeAt(r-1));)--r;for(;r>e&&HNe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function YNe(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}.`});sz(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)sz(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 sz(t,e,r){if(r=qNe(r),ew(e)){if(!GNe(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(WNe(t)==="immutable")throw new TypeError("immutable");return e_(t).append(e,r,!1)}function ixt(t){let e=e_(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 VNe(t,e){return t[0]<e[0]?-1:1}var Zv=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.hea Line truncated
${i}`;break;case"retry":Xxe(i)&&(r[s]=i);break;case"id":Zxe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Xxe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Zxe(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}}};eRe.exports={EventSourceStream:Yz}});var ARe=C((ywr,cRe)=>{"use strict";var{pipeline:ykt}=Q("node:stream"),{fetching:Bkt}=iw(),{makeRequest:bkt}=eC(),{webidl:Vs}=ns(),{EventSourceStream:Qkt}=tRe(),{parseMIMEType:wkt}=Aa(),{createFastMessageEvent:Skt}=w_(),{isNetworkError:rRe}=rw(),{kEnumerableProperty:op}=Ze(),{environmentSettingsObject:nRe}=ao(),sRe=!1,iRe=3e3,dw=0,oRe=1,hw=2,Nkt="anonymous",Tkt="use-credentials",uC=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=dw;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),Vs.util.markAsUncloneable(this);let n="EventSource constructor";Vs.argumentLengthCheck(arguments,1,n),sRe||(sRe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Vs.converters.USVString(e),r=Vs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=nRe,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=Nkt;r.withCredentials===!0&&(o=Tkt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=nRe.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=bkt(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===hw)return;this.#r=dw;let e={request:this.#i,dispatcher:this.#c},r=n=>{if(!rRe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(rRe(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?wkt(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=oRe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Qkt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Skt(c.type,c.options))}});ykt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Bkt(e)}#A(){this.#r!==hw&&(this.#r=dw,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===dw&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a())},this.#o.reconnectionTime)?.unref())}close(){Vs.brandCheck(this,t),this.#r!==hw&&(this.#r=hw,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Vs.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=Vs.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=Vs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},aRe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:dw,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:oRe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:hw,writable:!1}};Object.defineProperties(uC,aRe);Object.defineProperties(uC.prototype,aRe);Object.defineProperties(uC.prototype,{close:op,onerror:op,onmessage:op,onopen:op,readyState:op,url:op,withCredentials:op});Vs.converters.EventSourceInitDict=Vs.dictionaryConverter([{key:"withCredentials",converter:Vs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Vs.converters.any},{key:"node",converter:Vs.dictionaryConverter([{key:"reconnectionTime",converter:Vs.converters["unsigned long"],defaultValue:()=>iRe},{key:"dispatcher",converter:Vs.converters.any}]),defaultValue:()=>({})}]);cRe.exports={EventSource:uC,defaultReconnectionTime:iRe}});var gRe=C((Bwr,pe)=>{"use strict";var xkt=$d(),lRe=lQ(),Rkt=Mg(),Dkt=jQe(),kkt=ZQe(),vkt=Pg(),_kt=TW(),Fkt=QW(),Mkt=Uwe(),Lkt=Vwe(),Ukt=zwe(),dRe=Xe(),U_=Ze(),{InvalidArgumentError:L_}=dRe,lC=x1e(),Pkt=wg(),Okt=hJ(),{MockCallHistory:Hk 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 Xkt(e,r).catch(n=>{throw uRe?fRe(n,uRe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=Xg().Headers;pe.exports.Response=rw().Response;pe.exports.Request=eC().Request;pe.exports.FormData=ov().FormData;var{setGlobalOrigin:Zkt,getGlobalOrigin:evt}=A7();pe.exports.setGlobalOrigin=Zkt;pe.exports.getGlobalOrigin=evt;var{CacheStorage:tvt}=KTe(),{kConstruct:rvt}=Kt();pe.exports.caches=new tvt(rvt);var{deleteCookie:nvt,getCookies:svt,getSetCookies:ivt,setCookie:ovt,parseCookie:avt}=cxe();pe.exports.deleteCookie=nvt;pe.exports.getCookies=svt;pe.exports.getSetCookies=ivt;pe.exports.setCookie=ovt;pe.exports.parseCookie=avt;var{parseMIMEType:cvt,serializeAMimeType:Avt}=Aa();pe.exports.parseMIMEType=cvt;pe.exports.serializeAMimeType=Avt;var{CloseEvent:uvt,ErrorEvent:lvt,MessageEvent:dvt}=w_(),{WebSocket:hvt,ping:fvt}=Hxe();pe.exports.WebSocket=hvt;pe.exports.CloseEvent=uvt;pe.exports.ErrorEvent=lvt;pe.exports.MessageEvent=dvt;pe.exports.ping=fvt;pe.exports.WebSocketStream=jxe().WebSocketStream;pe.exports.WebSocketError=Pz().WebSocketError;pe.exports.request=fw(lC.request);pe.exports.stream=fw(lC.stream);pe.exports.pipeline=fw(lC.pipeline);pe.exports.connect=fw(lC.connect);pe.exports.upgrade=fw(lC.upgrade);pe.exports.MockClient=Okt;pe.exports.MockCallHistory=Hkt;pe.exports.MockCallHistoryLog=Gkt;pe.exports.MockPool=Ykt;pe.exports.MockAgent=qkt;pe.exports.SnapshotAgent=Vkt;pe.exports.mockErrors=Wkt;var{EventSource:gvt}=ARe();pe.exports.EventSource=gvt;function pvt(){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=pvt});var gw=C(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 mRe=C((wwr,pRe)=>{"use strict";var{asciiLowercase:P_,solelyContainsHTTPTokenCodePoints:mvt,soleyContainsHTTPQuotedStringTokenCodePoints:Evt}=gw();pRe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=P_(String(e)),this._map.get(e)}has(e){return e=P_(String(e)),this._map.has(e)}set(e,r){if(e=P_(String(e)),r=String(r),!mvt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Evt(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=P_(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 IRe=C((Swr,CRe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:Cvt,removeTrailingHTTPWhitespace:ERe,isHTTPWhitespaceChar:Ivt,solelyContainsHTTPTokenCodePoints:Vz,soleyContainsHTTPQuotedStringTokenCodePoints:yvt,asciiLowercase:Wz,collectAnHTTPQuotedString:Bvt}=gw();CRe.exports=t=>{t=Cvt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!Vz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=ERe(n),n.length===0||!Vz(n))return null;let s={type:Wz(r),subtype:Wz(n),parameters:new Map};for(;e<t.length;){for(++e;Ivt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=Wz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Bvt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=ERe(o),o==="")continue}i.length>0&&Vz(i)&&yvt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var BRe=C((Nwr,yRe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:bvt}=gw();yRe.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+="=",(!bvt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var SRe=C((xwr,wRe)=>{"use strict";var Qvt=mRe(),wvt=IRe(),Svt=BRe(),{asciiLowercase:bRe,solelyContainsHTTPTokenCodePoints:QRe}=gw();wRe.exports=class{constructor(e){e=String(e);let r=wvt(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 Qvt(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=bRe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!QRe(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=bRe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!QRe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return Svt(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 KRe=C(Sn=>{"use strict";var tj=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),o_t=tj(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=Q("node:fs"),r=Q("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
%s`,k,k,f,s);let P=f.type==="*"?Vj:f.type==="?"?zj:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}B(),o&&(s+="\\\\");let M=X_t[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],v=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),X=s.slice(P.reEnd),te=s.slice(P.reEnd-8,P.reEnd)+X,ce=v.split(")").length,ue=v.split("(").length-ce,Fe=X;for(let et=0;et<ue;et++)Fe=Fe.replace(/\)[+*?]?/,"");X=Fe;let ke=X===""&&r!==Wj?"(?:$|\\/)":"";s=v+z+X+ke+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=I()+s),r===Wj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return eFt(e);let V=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",V),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?Vj:r.dot?K_t:$_t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?rFt(a):a===Ws?Ws:a._src).reduce((a,c)=>(a[a.length-1]===Ws&&c===Ws||a.push(c),a),[]),o.forEach((a,c)=>{a!==Ws||o[c-1]===Ws||(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]=Ws))}),o.filter(a=>a!==Ws).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;Jj.sep!=="/"&&(e=e.split(Jj.sep).join("/")),e=e.split(c2e),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=EC});var p2e=C((RSr,g2e)=>{g2e.exports=f2e;var $j=Q("fs"),{EventEmitter:sFt}=Q("events"),{Minimatch:Kj}=l2e(),{resolve:iFt}=Q("path");function oFt(t,e){return new Promise((r,n)=>{$j.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 d2e(t,e){return new Promise((r,n)=>{(e?$j.stat:$j.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?d2e(t,!1):null):r(null):r(o)})})}async function*h2e(t,e,r,n,s,i){let o=await oFt(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 d2e(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*h2e(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*aFt(t,e,r,n){yield*h2e("",t,e,r,n,!0)}function cFt(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 X_=class extends sFt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=cFt(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 Kj(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 Kj(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 Kj(i,{dot:!0}))}this.iterator=aFt(iFt(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
`,S);S=G===-1?w.length:G}else if(F!==-1&&w[S]==="/"&&w[S+1]==="*"){let G=w.indexOf("*/",S);G!==-1?(S=G+2,F=w.indexOf("*/",S)):(b+=w[S],S++)}else b+=w[S],S++;return b}function CI(w){let b=EI(w.toString()),S=b.match(aL);if(S||(S=b.match(cL)),!S)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]=S;return F.replace(/\s/g,"").split(O1).map(G=>G.replace(H1,"").trim())}function II(w,b){var S={};return Object.keys(w).forEach(F=>{var G=w[F],Y,J=h(G),j=!J&&G.length===1||J&&G.length===0;if(Array.isArray(G))Y=[...G],G=Y.pop(),S[F]=Y.concat(Y.length>0?re:G);else if(j)S[F]=G;else{if(Y=CI(G),G.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),S[F]=Y.concat(re)}function re(Se,Bt){var Lt=Y.map(St=>Se[St]);Lt.push(Bt),E(G)(...Lt)}}),mI(S,b)}class yI{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,S){S.prev=b,S.next=b.next,b.next?b.next.prev=S:this.tail=S,b.next=S,this.length+=1}insertBefore(b,S){S.prev=b.prev,S.next=b,b.prev?b.prev.next=S:this.head=S,b.prev=S,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):BI(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):BI(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 S=this.head;S;){var{next:F}=S;b(S)&&this.removeLink(S),S=F}return this}}function BI(w,b){w.length=1,w.head=w.tail=b}function Vp(w,b,S){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var F=E(w),G=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(qe,be){J[qe].push(be)}function re(qe,be){let Ye=(...Nt)=>{Se(qe,Ye),be(...Nt)};J[qe].push(Ye)}function Se(qe,be){if(!qe)return Object.keys(J).forEach(Ye=>J[Ye]=[]);if(!be)return J[qe]=[];J[qe]=J[qe].filter(Ye=>Ye!==be)}function Bt(qe,...be){J[qe].forEach(Ye=>Ye(...be))}var Lt=!1;function St(qe,be,Ye,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Ut.started=!0;var Br,Dn;function So(Oh,...xI){if(Oh)return Ye?Dn(Oh):Br();if(xI.length<=1)return Br(xI[0]);Br(xI)}var jp=Ut._createTaskItem(qe,Ye?So:Nt||So);if(be?Ut._tasks.unshift(jp):Ut._tasks.push(jp),Lt||(Lt=!0,A(()=>{Lt=!1,Ut.process()})),Ye||!Nt)return new Promise((Oh,xI)=>{Br=Oh,Dn=xI})}function wo(qe){return function(be,...Ye){G-=1;for(var Nt=0,Br=qe.length;Nt<Br;Nt++){var Dn=qe[Nt],So=Y.indexOf(Dn);So===0?Y.shift():So>0&&Y.splice(So,1),Dn.callback(be,...Ye),be!=null&&Bt("error",be,Dn.data)}G<=Ut.concurrency-Ut.buffer&&Bt("unsaturated"),Ut.idle()&&Bt("drain"),Ut.process()}}function zp(qe){return qe.length===0&&Ut.idle()?(A(()=>Bt("drain")),!0):!1}let Ph=qe=>be=>{if(!be)return new Promise((Ye,Nt)=>{re(qe,(Br,Dn)=>{if(Br)return Nt(Br);Ye(Dn)})});Se(qe),j(qe,be)};var TI=!1,Ut={_tasks:new yI,_createTaskItem(qe,be){return{data:qe,callback:be}},*[Symbol.iterator](){yield*Ut._tasks[Symbol.iterator]()},concurrency:b,payload:S,buffer:b/4,started:!1,paused:!1,push(qe,be){return Array.isArray(qe)?zp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!1,be)):St(qe,!1,!1,be)},pushAsync(qe,be){return Array.isArray(qe)?zp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!0,be)):St(qe,!1,!0,be)},kill(){Se(),Ut._tasks.empty()},unshift(qe,be){return Array.isArray(qe)?zp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!1,be)):St(qe,!0,!1,be)},unshiftAsync(qe,be){return Array.isArray(qe)?zp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!0,be)):St(qe,!0,!0,be)},remove(qe){Ut._tasks.remove(qe)},process(){if(!TI){for(TI=!0;!Ut.paused&&G<Ut.concurrency&&Ut._tasks.length;){var qe=[],be=[],Ye=Ut._tasks.length;Ut.payload&&(Ye=Math.min(Ye,Ut.payload));for(var Nt=0;Nt<Ye;Nt++){var Br=Ut._tasks.shift();qe.push(Br),Y.push(Br),be.push(Br.data)}G+=1,Ut._tasks.length===0&&Bt("empty"),G===Ut.concurrency&&Bt("saturated");var Dn=te(wo(qe));F(be,Dn)}TI=!1}},length(){return Ut._tasks.length},running(){return G},workersList(){return Y},idle(){return Ut._tasks.length+G===0},pause(){Ut.paused=!0},resume(){Ut.paused!==!1&&(Ut.paused=!1,A(Ut.process))}};return Object.defineProperties(Ut,{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")}}),Ut}function bI(w,b){return Vp(w,1,b)}function Wp(w,b,S){return Vp(w,b,S)}function Qo(w,b,S,F){F=V(F);var G=E(S);return Zs(w,(Y,J,j)=>{G(b,Y,(re,Se)=>{b=Se,j(re)})},Y=>F(Y,b))}var Ta=m(Qo,4);function Jp(...w){var b=w.map(E);return function(...S){var F=this,G=S[S.length-1];return typeof G=="function"?S.pop():G=cu(),Ta(b,S,(Y,J,j)=>{J.apply(F,Y.concat((re,...Se)=>{j(re,Se)}))},(Y,J)=>G(Y,...J)),G[au]}}function G1(...w){return Jp(...w.reverse())}function we(w,b,S,F){return y(ue(b),w,S,F)}var H=m(we,4);function T(w,b,S,F){var G=E(S);return H(w,b,(Y,J)=>{G(Y,(j,...re)=>j?J(j):J(j,re))},(Y,J)=>{for(var j=[],re=0;re<J.length;re++)J[re]&&(j=j.concat(...J[re]));return F(Y,j)})}var q=m(T,4);function K(w,b,S){return q(w,1/0,b,S)}var $=m(K,3);function oe(w,b,S){retur Line truncated
GFS4: `),console.error(t)});Fr[is]||(S2e=global[is]||[],T2e(Fr,S2e),Fr.close=(function(t){function e(r,n){return t.call(Fr,r,function(s){s||N2e(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,nF,{value:t}),e})(Fr.close),Fr.closeSync=(function(t){function e(r){t.apply(Fr,arguments),N2e()}return Object.defineProperty(e,nF,{value:t}),e})(Fr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){fp(Fr[is]),Q("assert").equal(Fr[is].length,0)}));var S2e;global[is]||T2e(global,Fr[is]);tK.exports=Zj(mFt(Fr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Fr.__patched&&(tK.exports=Zj(Fr),Fr.__patched=!0);function Zj(t){gFt(t),t.gracefulify=Zj,t.createReadStream=M,t.createWriteStream=V;var e=t.readFile;t.readFile=r;function r(v,z,X){return typeof z=="function"&&(X=z,z=null),te(v,z,X);function te(ce,ue,Fe,ke){return e(ce,ue,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?CC([te,[ce,ue,Fe],et,ke||Date.now(),Date.now()]):typeof Fe=="function"&&Fe.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(v,z,X,te){return typeof X=="function"&&(te=X,X=null),ce(v,z,X,te);function ce(ue,Fe,ke,et,Ft){return n(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?CC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(v,z,X,te){return typeof X=="function"&&(te=X,X=null),ce(v,z,X,te);function ce(ue,Fe,ke,et,Ft){return i(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?CC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(v,z,X,te){return typeof X=="function"&&(te=X,X=0),ce(v,z,X,te);function ce(ue,Fe,ke,et,Ft){return a(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?CC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(v,z,X){typeof z=="function"&&(X=z,z=null);var te=u.test(process.version)?function(Fe,ke,et,Ft){return A(Fe,ce(Fe,ke,et,Ft))}:function(Fe,ke,et,Ft){return A(Fe,ke,ce(Fe,ke,et,Ft))};return te(v,z,X);function ce(ue,Fe,ke,et){return function(Ft,vt){Ft&&(Ft.code==="EMFILE"||Ft.code==="ENFILE")?CC([te,[ue,Fe,ke],Ft,et||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof ke=="function"&&ke.call(this,Ft,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=pFt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(v){m=v},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(v){y=v},enumerable:!0,configurable:!0});var g=m;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(v){g=v},enumerable:!0,configurable:!0});var E=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(v){E=v},enumerable:!0,configurable:!0});function m(v,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var v=this;P(v.path,v.flags,v.mode,function(z,X){z?(v.autoClose&&v.destroy(),v.emit("error",z)):(v.fd=X,v.emit("open",X),v.read())})}function y(v,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function B(){var v=this;P(v.path,v.flags,v.mode,function(z,X){z?(v.destroy(),v.emit("error",z)):(v.fd=X,v.emit("open",X))})}function M(v,z){return new t.ReadStream(v,z)}function V(v,z){return new t.WriteStream(v,z)}var k=t.open;t.open=P;function P(v,z,X,te){return typeof X=="function"&&(te=X,X=null),ce(v,z,X,te);function ce(ue,Fe,ke,et,Ft){return k(ue,Fe,ke,function(vt,En){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?CC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}return t}function CC(t){fp("ENQUEUE",t[0].name,t[1]),Fr[is].push(t),eK()}var rF;function N2e(){for(var t=Date.now(),e=0;e<Fr[is].length;++e)Fr[is][e].length>2&&(Fr[is][e][3]=t,Fr[is][e][4]=t);eK()}function eK(){if(clearTimeout(rF),rF=void 0,Fr[is].length!==0){var t=Fr[is].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)fp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){fp("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?(fp("RETRY",e.name,r),e.apply(null,r.concat([s]))):Fr[is].push(t)}rF===void 0&&(rF=setTimeout(eK,0))}}});var sF=C((FSr,x2e)=>{"use strict";var JA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";JA.writable=t=>JA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";JA.readable=t=>JA(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};a_e.exports={AggregateError:LK,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 UK=C((VNr,c_e)=>{"use strict";c_e.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 bs=C((WNr,l_e)=>{"use strict";var{format:OPt,inspect:bF}=UK(),{AggregateError:HPt}=Rr(),GPt=globalThis.AggregateError||HPt,qPt=Symbol("kIsNodeError"),YPt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],VPt=/^([A-Z][a-z0-9]*)+$/,WPt="__node_internal_",QF={};function mp(t,e){if(!t)throw new QF.ERR_INTERNAL_ASSERTION(e)}function A_e(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 JPt(t,e,r){if(typeof e=="function")return mp(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 mp(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:OPt(e,...r)}function as(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(JPt(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[qPt]=!0,QF[t]=n}function u_e(t){let e=WPt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function zPt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new GPt([e,t],e.message);return r.code=e.code,r}return t||e}var PK=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new QF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};as("ERR_ASSERTION","%s",Error);as("ERR_INVALID_ARG_TYPE",(t,e,r)=>{mp(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)mp(typeof c=="string","All expected entries have to be of type string"),YPt.includes(c)?s.push(c.toLowerCase()):VPt.test(c)?i.push(c):(mp(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+=EZ(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=EZ(" "+s+"="+n[s]+`
`);return kt.from(r)};oI.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};oI.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&c7t,6),100),kt.write(r,Dh(e.uid,6),108),kt.write(r,Dh(e.gid,6),116),g7t(e.size,r,124),kt.write(r,Dh(e.mtime.getTime()/1e3|0,11),136),r[156]=XM+h7t(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(v3e,r,D1),kt.copy(i7t,r,CZ),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(F3e(r),6),148),r)};oI.decode=function(e,r,n){let s=e[156]===0?0:e[156]-XM,i=iI(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=d7t(s),d=e[157]===0?null:iI(e,157,100,r),h=iI(e,265,32),f=iI(e,297,32),g=Rh(e,329,8),E=Rh(e,337,8),m=F3e(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(A7t(e))e[345]&&(i=iI(e,345,155,r)+"/"+i);else if(!u7t(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:g,devminor:E,pax:null}};function A7t(t){return kt.equals(v3e,t.subarray(D1,D1+6))}function u7t(t){return kt.equals(o7t,t.subarray(D1,D1+6))&&kt.equals(a7t,t.subarray(CZ,CZ+2))}function l7t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function d7t(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 h7t(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 _3e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function F3e(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?s7t.slice(0,e)+" ":n7t.slice(0,e-t.length)+t+" "}function f7t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function g7t(t,e,r){t.toString(8).length>11?f7t(t,e,r):kt.write(e,Dh(t,11),r)}function p7t(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 p7t(t);{for(;e<t.length&&t[e]===32;)e++;let n=l7t(_3e(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 iI(t,e,r,n){return kt.toString(t.subarray(e,_3e(t,0,e,e+r)),n)}function EZ(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 O3e=C((ERr,P3e)=>{var{Writable:m7t,Readable:E7t,getStreamError:M3e}=mZ(),C7t=rZ(),L3e=eI(),aI=IZ(),I7t=L3e.alloc(0),BZ=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new C7t,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 I7t;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 L3e.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)}},bZ=class extends E7t{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(M3e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=U3e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},QZ=class extends m7t{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function CAe(t,e){if(process.env.GITHUB_OUTPUT||"")return RI("OUTPUT",lS(t,e));process.stdout.write(r3.EOL),Ra("set-output",{name:t},Qc(e))}function gf(t){process.exitCode=t3.Failure,Yi(t)}function Ha(){return process.env.RUNNER_DEBUG==="1"}function O(t){Ra("debug",{},t)}function Yi(t,e={}){Ra("error",cS(e),t instanceof Error?t.toString():t)}function je(t,e={}){Ra("warning",cS(e),t instanceof Error?t.toString():t)}function IAe(t,e={}){Ra("notice",cS(e),t instanceof Error?t.toString():t)}function Z(t){process.stdout.write(t+r3.EOL)}function yAe(t){EL("group",t)}function BAe(){EL("endgroup")}function pT(t,e){return zKe(this,void 0,void 0,function*(){yAe(t);let r;try{r=yield e()}finally{BAe()}return r})}function Uc(t,e){if(process.env.GITHUB_STATE||"")return RI("STATE",lS(t,e));Ra("save-state",{name:t},Qc(e))}function My(t){return process.env[`STATE_${t}`]||""}import*as $z from"fs";import*as Xz from"path";import*as G_ from"os";import{readFileSync as jKe,existsSync as KKe}from"fs";import{EOL as $Ke}from"os";var Jm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(KKe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(jKe(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${$Ke}`)}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 a3=ge(NAe(),1),TAe=ge(aT(),1),u$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 xAe(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 RAe(t){return new a3.HttpClient().getAgent(t)}function l$e(t){return new a3.HttpClient().getAgentDispatcher(t)}function DAe(t){let e=l$e(t);return(n,s)=>u$e(this,void 0,void 0,function*(){return(0,TAe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function kAe(){return process.env.GITHUB_API_URL||"https://api.github.com"}function c3(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 bT(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)=>bT.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 vAe(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 _Ae(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 FAe=Function.bind,MAe=FAe.bind(FAe);function LAe(t,e,r){let n=MAe(_Ae,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]=MAe(vAe,null). Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var Z$e=class extends Error{constructor(t,e,r){super(X$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},eXe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],tXe=["query","method","url"],cue=/\/api\/v3\/?$/;function rXe(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(tXe.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)=>eXe.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 cue.test(i)&&(s.url=i.replace(cue,"/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 Z$e(s,a,o.data)}return o.data.data})}function m3(t,e){let r=t.defaults(e);return Object.assign((s,i)=>rXe(r,s,i),{defaults:m3.bind(null,r),endpoint:r.endpoint})}var Zjt=m3(Py,{headers:{"user-agent":`octokit-graphql.js/${$$e} ${Zl()}`},method:"POST",url:"/graphql"});function Aue(t){return m3(t,{method:"POST",url:"/graphql"})}var E3="(?:[a-zA-Z0-9_-]+)",uue="\\.",lue=new RegExp(`^${E3}${uue}${E3}${uue}${E3}$`),nXe=lue.test.bind(lue);async function sXe(t){let e=nXe(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 iXe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function oXe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=iXe(t),e(s)}var due=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:oXe.bind(null,e)})};var C3="7.0.6";var hue=()=>{},aXe=console.warn.bind(console),cXe=console.error.bind(console);function AXe(t={}){return typeof t.debug!="function"&&(t.debug=hue),typeof t.info!="function"&&(t.info=hue),typeof t.warn!="function"&&(t.warn=aXe),typeof t.error!="function"&&(t.error=cXe),t}var fue=`octokit-core.js/${C3} ${Zl()}`,ST=class{static VERSION=C3;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 UAe.Collection,n={baseUrl:Py.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} ${fue}`:fue,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Py.defaults(n),this.graphql=Aue(this.request).defaults(n),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=due(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 I3="17.0.0";var uXe={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 Vy(i));return n.searchPaths.push(...T3(n.patterns)),n})}static stat(e,r,n){return _3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Xm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){O(`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 Xm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Xm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){O(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var WXe=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 Vue(t,e){return WXe(this,void 0,void 0,function*(){return yield kT.create(t,e)})}var Lde=ge(Xy(),1);import*as jT from"crypto";import*as r0 from"fs";import*as Qf from"path";import*as Ude from"util";var Zy;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Zy||(Zy={}));var vs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(vs||(vs={}));var Wi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Wi||(Wi={}));var WT=2,JT=5e3,t8=5e3,r8=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Mde=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,eB="cache.tar",n8="manifest.txt",J$t=10*Math.pow(1024,3),zT="cache read denied:";var t0=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())})},nrt=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)}},srt="1.0";function tB(){return t0(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=Qf.join(n,"actions","temp")}let r=Qf.join(e,jT.randomUUID());return yield ff(r),r})}function Oc(t){return r0.statSync(t).size}function s8(t){return t0(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 Vue(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=nrt(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Qf.relative(a,s).replace(new RegExp(`\\${Qf.sep}`,"g"),"/");O(`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 rB(t){return t0(this,void 0,void 0,function*(){return Ude.promisify(r0.unlink)(t)})}function Pde(t){return t0(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),O(`Checking ${e} ${r.join(" ")}`);try{yield Lc(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){O(s.message)}return n=n.trim(),O(n),n})}function nB(){return t0(this,void 0,void 0,function*(){let t=yield Pde("zstd",["--quiet"]),e=Lde.clean(t);return O(`zstd version: ${e}`),t===""?vs.Gzip:vs.ZstdWithoutLong})}function sd(t){return t===vs.Gzip?Zy.Gzip:Zy.Zstd}function Ode(){return t0(this,void 0,void 0,function*(){return r0.existsSync(r8)?r8:(yield Pde("tar")).toLowerCase().includes("gnu tar")?qi("tar"):""})}function i8(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function n0(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(srt),jT.createHash("sha256").update(n.join("|")).digest("hex")}function Hde(){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 v0 from"fs";import{URL as HAt}from"url";var Hc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as irt}from"node:os";import ort from"node:util";import art from"node:process";function Gde(t,...e){art.stderr.write(`${ort.format(t,...e)}${irt}`)}import sB from"node:process";function $T(t){return sB.env[t]}var qde=typeof sB.versions.deno=="string"&&sB.versions.deno.length>0,Yde=typeof sB.versions.bun=="string"&&sB.versions.bun.length>0,XT=!0;var Vde=$T("DEBUG"),Jde,o8=[],a8=[],ZT=[];Vde&&c8(Vde);var zde=Object.assign(t=>jde(t),{enable:c8,enabled:A8,disable:crt,log:Gde});function c8(t){Jde=t,o8=[],a8=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?a8.push(r.substring(1)):o8.push(r);for(let r of ZT)r.enabled=A8(r.namespace)}function A8(t){if(t.endsWith("*"))return!0;for(let e of a8)if(Wde(t,e))return!1;for(let e of o8)if(Wde(t,e))return!0;return!1}function Wde(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 crt(){let t=Jde||"";return c8(""),t}function jde(t){let e=Object.assign(r,{enabled:A8(t),destroy:Art,log:zde.log,namespace:t,extend:urt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return ZT.push(e),e}function Art(){let t=ZT.indexOf(this);return t>=0?(ZT.splice(t,1),!0):!1}function urt(t){let e=jde(`${this.namespace}:${t}`);return e.log=this.log,e}var s0=zde;var u8=["verbose","info","warning","error"],Kde={verbose:400,info:300,warning:200,error:100};function $de(t,e){e.log=(...r)=>{t.log(...r)}}function Xde(t){return u8.includes(t)}function ex(t){let e=new Set,r=$T(t.logLevelEnvVarName),n,s=s0(t.namespace);s.log=(...u)=>{s0.log(...u)};function i(u){if(u&&!Xde(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${u8.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);s0.enable(l.join(","))}r&&(Xde(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${u8.join(", ")}.`));function o(u){return!!(n&&Kde[u.level]<=Kde[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if($de(u,d),o(d)){let h=s0.disable();s0.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return $de(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 Zde=ex({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),lrt=Zde.logger;function iB(t){return Zde.createClientLogger(t)}function tx(t){return t.toLowerCase()}function drt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*hrt(t){for(let e of t.values())yield[e.name,e.value]}var l8=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(tx(e),{name:e,value:drt(r)})}get(e){return this._headersMap.get(tx(e))?.value}has(e){return this._ Line truncated
${mrt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function i0(t){return t instanceof _s?!0:Sf(t)&&t.name==="RestError"}function ai(t,e){return Buffer.from(t,e)}import g8 from"node:http";import p8 from"node:https";import rhe from"node:zlib";import{Transform as Ert}from"node:stream";var ci=iB("ts-http-runtime");var Crt={};function oB(t){return t&&typeof t.pipe=="function"}function nhe(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 she(t){return t&&typeof t.byteLength=="number"}var sx=class extends Ert{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}},m8=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Hc("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new Wa;ci.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=brt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,g=new sx(f);g.on("error",E=>{ci.error("Error in upload progress",E)}),oB(a)?a.pipe(g):g.end(a),a=g}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Irt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?yrt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new sx(h);f.on("error",g=>{ci.error("Error in download progress",g)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await Brt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();oB(a)&&(A=nhe(a));let u=Promise.resolve();oB(c)&&(u=nhe(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{ci.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?g8.request(a,c):p8.request(a,c);u.once("error",l=>{A(new _s(l.message,{code:l.code??_s.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Hc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&oB(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):she(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(ci.error("Unrecognized body type",n),A(new _s("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?g8.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new g8.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return p8.globalAgent;let s=e.tlsSettings??Crt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(ci.info("No cached TLS Agent exist, creating a new Agent"),i=new p8.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Irt(t){let e=Ji();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 yrt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=rhe.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=rhe.createInflate();return t.pipe(n),n}return t}function Brt(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 _s(`Error reading response as text: ${s.message}`,{code:_s.PARSE_ERROR}))})})}function brt(t){return t?Buffer.isBuffer(t)?t.length:oB(t)?null:she(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function ihe(){return new m8}function ix(){return ihe()}var E8="logPolicy";function ox(t={}){let e=t.logger??ci.info,r=new Wa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:E8,asy Line truncated
`;return e}function Ynt(t){return t instanceof Uint8Array?t.byteLength:AB(t)?t.size===-1?void 0:t.size:void 0}function Vnt(t){let e=0;for(let r of t){let n=Ynt(r);if(n===void 0)return;e+=n}return e}async function Wnt(t,e,r){let n=[ai(`--${r}`,"utf-8"),...e.flatMap(i=>[ai(`\r
`,"utf-8"),ai(qnt(i.headers),"utf-8"),ai(`\r
`,"utf-8"),i.body,ai(`\r
--${r}`,"utf-8")]),ai(`--\r
\r
`,"utf-8")],s=Vnt(n);s&&t.headers.set("Content-Length",s),t.body=await $he(n)}var uB="multipartPolicy",Jnt=70,znt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function jnt(t){if(t.length>Jnt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!znt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Tx(){return{name:uB,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?jnt(r):r=Gnt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Wnt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function xx(){return nx()}var Xhe=ex({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),jtr=Xhe.logger;function Oo(t){return Xhe.createClientLogger(t)}var qc=Oo("core-rest-pipeline");function M8(t={}){return ox({logger:qc.info,...t})}var L8=Sx;function U8(t={}){return Nx(t)}import P8 from"node:os";import ad from"node:process";function Zhe(){return"User-Agent"}async function efe(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 Rx="1.24.0";function nst(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function tfe(){return Zhe()}async function Dx(t){let e=new Map;e.set("core-rest-pipeline",Rx),await efe(e);let r=nst(e);return t?`${t} ${r}`:r}var rfe=tfe(),nfe="userAgentPolicy";function O8(t={}){let e=Dx(t.userAgentPrefix);return{name:nfe,async sendRequest(r,n){return r.headers.has(rfe)||r.headers.set(rfe,await e),n(r)}}}var sfe=Symbol("rawContent");function H8(t){return typeof t[sfe]=="function"}function ife(t){return H8(t)?t[sfe]():t}var kx=uB;function G8(){let t=Tx();return{name:kx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)H8(n.body)&&(n.body=ife(n.body));return t.sendRequest(e,r)}}}var q8=Qx;function Y8(){return wx()}function V8(t={}){return Ax(t)}function W8(){return ux()}var lB=class extends Error{constructor(e){super(e),this.name="AbortError"}};function J8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new lB(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 dst="The delay was aborted.";function l0(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return J8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??dst})}function cd(t){if(Sf(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 ofe(t){return Sf(t)}function d0(){return wf()}var Jt=XT;function Ad(t){return k8(t)}function j8(t,e){return bx(t,e)}var afe="setClientRequestIdPolicy";function K8(t="x-ms-client-request-id"){return{name:afe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function $8(t){return lx(t)}function X8(t){return dx(t)}var h0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function cfe(t={}){let e=new Z8(t.parentContext);return t.span&&(e=e.setValue(h0.span,t.span)),t.namespace&&(e=e.setValue(h0.namespace,t.namespace)),e}var Z8=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 ufe=ge(Afe(),1),_x=ufe.state;function hst(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function fst(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:hst(),tracingContext:cfe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function dB(){return _x.instrumenterImplementation||(_x.instrumenterImplementation=fst()),_x.instrumenterImplementation}function hB(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=dB().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--),!Mit(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",tn("InvalidTag",l,Fs(t,i))}let A=Dit(t,i);if(A===!1)return tn("InvalidAttr","Attributes for '"+c+"' have open quote.",Fs(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=Vfe(u,e);if(d===!0)n=!0;else return tn(d.err.code,d.err.msg,Fs(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return tn("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Fs(t,o));if(r.length===0)return tn("InvalidTag","Closing tag '"+c+"' has not been opened.",Fs(t,o));{let l=r.pop();if(c!==l.tagName){let d=Fs(t,l.tagStartPos);return tn("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Fs(t,o))}r.length==0&&(s=!0)}}else return tn("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Fs(t,i));else{let l=Vfe(u,e);if(l!==!0)return tn(l.err.code,l.err.msg,Fs(t,i-u.length+l.err.line));if(s===!0)return tn("InvalidXml","Multiple possible root nodes found.",Fs(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=Yfe(t,i);continue}else if(t[i+1]==="?"){if(i=qfe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=_it(t,i);if(l==-1)return tn("InvalidChar","char '&' is not expected.",Fs(t,i));i=l}else if(s===!0&&!Gfe(t[i]))return tn("InvalidXml","Extra text at the end",Fs(t,i));t[i]==="<"&&i--}}else{if(Gfe(t[i]))continue;return tn("InvalidChar","char '"+t[i]+"' is not expected.",Fs(t,i))}if(n){if(r.length==1)return tn("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Fs(t,r[0].tagStartPos));if(r.length>0)return tn("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return tn("InvalidXml","Start tag expected.",1);return!0}function Gfe(t){return t===" "||t===" "||t===`
`||t==="\r"}function qfe(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 tn("InvalidXml","XML declaration allowed only at the start of the document.",Fs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Yfe(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 xit='"',Rit="'";function Dit(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===xit||t[e]===Rit)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 kit=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Vfe(t,e){let r=qx(t,kit),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return tn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",bB(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return tn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",bB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return tn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",bB(r[s]));let i=r[s][2];if(!Fit(i))return tn("InvalidAttr","Attribute '"+i+"' is an invalid name.",bB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return tn("InvalidAttr","Attribute '"+i+"' is repeated.",bB(r[s]))}return!0}function vit(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 _it(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,vit(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 tn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Fit(t){return m4(t)}function Mit(t){return m4(t)}function Fs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function bB(t){return t.startIndex+t[1].length}var Wfe={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"},Jfe={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"},zfe={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 di("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new SB(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=C0(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=w4(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=S4(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 di(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=C0(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=C0(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=S4(t,a,s.removeNSPrefix);if(!u){let V=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${V}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,g=u.closeIndex;if({tagName:l,tagExp:h}=w4(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let I=null,y={},B;B=cot(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,l),I&&(y=aot(I,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let V="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,g+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,V=P.tagContent}let k=new di(l);I&&(k[":@"]=I),k.add(s.textNodeName,V),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=w4(s.transformTagName,l,h,s));let V=new di(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let V=new di(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let V=new di(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),r=V}n="",a=g}}}else n+=t[a];return e.child};function fot(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 got(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 pot(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 mot(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Eot(t,e,r=">"){Line truncated
`;function Sot(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(k4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function Ige(t,e,r,n,s){return!r.sanitizeName||vf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function D4(t,e){let r="";e.format&&(r=wot);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 $i(a)):a instanceof $i&&n.push(a)}let s=Sot(t,e),i=new Wc;return yge(t,e,r,i,n,s)}function yge(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=R4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=k4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:Ige(u,!1,e,n,i),h=Not(A[":@"],e);n.push(d,h);let f=xot(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=R4(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],B=eR(y);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],B=Zx(y);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Cge(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let E=Cge(A[":@"],e,f,n,i),m=r+`<${d}${E}`,I;f?I=Bge(A[u],e):I=yge(A[u],e,g,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!I||I.length===0)&&e.suppressEmptyNode?o+=m+"/>":I&&I.endsWith(">")?o+=m+`>${I}${r}</${d}>`:(o+=m+">",I&&r!==""&&(I.includes("/>")||I.includes("</"))?o+=r+e.indentBy+I+r:o+=I,o+=`</${d}>`),a=!0,n.pop()}return o}function Not(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 Bge(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=k4(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=Tot(s[":@"],e),a=Bge(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Tot(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 k4(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 Cge(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:Ige(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=R4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${dd(A)}"`}return i}function xot(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 R4(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 v4(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 Rot={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function fi(t){if(this.options=Object.assign({},Rot,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 $i(r)):r instanceof $i&&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 Dot(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 _4(t,e,r,n,s){return!r.sanitizeName||vf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}fi.prototype.build=function(t){if(this.options.preserveOrder)return D4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Wc,r=Dot(t,this.options);return this.j2x(t,0,e,r).val}};fi.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let 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:_4(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=_4(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 g=t[c][f];if(!(typeof g>"u"))if(g===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(u);let E=this.j2x(g,e+1,r,n);r.pop(),d+=E.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(h+=E.attrStr)}else d+=this.processTextOrObjNode(g,u,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,g);E=this.replaceEntitiesValue(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let m=""+g;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(g,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=_4(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}};fi.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 kot(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)}fi.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=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};fi.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isA Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set($e.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===$e.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith($e.PREFIX_FOR_STORAGE));r.sort((s,i)=>lR(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=cR(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=AR(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 Or=class extends Mf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new DB(e,r,this)}computeHMACSHA256(e){return Yot("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Lf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var yn=Oo("storage-common");var Ho;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ho||(Ho={}));var fd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ho.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Vot=new Lf("The operation was aborted."),kB=class extends Jc{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=aR(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(yn.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(yn.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 yn.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 yn.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 yn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return yn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get($e.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')?(yn.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 Ho.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ho.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return yn.info(`RetryPolicy: Delay for ${s}ms`),uR(s,n,Vot)}};var vB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new kB(e,r,this.retryOptions)}};var Wot="storageBrowserPolicy";function Nge(){return{name:Wot,async sendRequest(t,e){return Jt||((t.method==="GET"||t.method==="HEAD")&&(t.url=hd(t.url,vu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete($e.COOKIE),t.headers.delete($e.CONTENT_LENGTH)),e(t)}}}var Jot="StorageCorrectContentLengthPolicy";function Tge(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set($e.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Jot,async sendRequest(e,r){return t(e),r(e)}}}var zot="storageRetryPolicy",y0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ho.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},jot=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Kot=new Lf("The operation was aborted.");function xge(t={}){let e=t.retryPolicyType??y0.retryPolicyType,r=t.maxTries??y0.maxTries,n=t.retryDelayInMs??y0.retryDelayInMs,s=t.maxRetryDelayInMs??y0.maxRetryDelayInMs,i=t.secondaryHost??y0.secondaryHost,o=t.tryTimeoutInMs??y0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return yn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of jot)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=$ot("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set($e.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===$e.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith($e.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>lR(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=cR(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=AR(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:Xot,async sendRequest(i,o){return e(i),o(i)}}}var Zot="storageRequestFailureDetailsParserPolicy";function Rge(){return{name:Zot,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 eat}from"node:crypto";var dR=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return eat("sha256",this.key).update(e,"utf8").digest("base64")}};var hR="12.31.0",fR="2026-02-06";var gR="https://storage.azure.com/.default",_u={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ja="",O4="*",tat=1*1024*1024;var rat=4*tat;var Dge="AES256",kge="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",vge=["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"],_ge=["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"],Fge="BlobUsesCustomerSpecifiedEncryption",Mge="BlobDoesNotUseCustomerSpecifiedEncryption",Lge=["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 _B=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function rn(t,e={}){t||(t=new Nr);let r=new _B([],e);return r._credential=t,r}function nat(t){let e=[sat,Uge,iat,oat,aat,cat,uat];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Aat(s));return{wrappedPolicies:g4(r),afterRetry:n}}}}function H4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?p4(e):U4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${hR}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=pB({...r,loggingOptions:{additionalAllowedHeaderNames:vge,additionalAllowedQueryParameters:_ge,logger:rR.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:tR,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:M4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:q8}),s.addPolicy(Tge()),s.addPolicy(xge(r.retryOptions),{phase:"Retry"}),s.addPolicy(Rge()),s.addPolicy(Nge());let a=nat(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=G4(t);ji(c)?s.addPolicy(f0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Xa(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 sAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?$a(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 Xa(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 iAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?$a(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 Xa(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 oAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?$a(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 Xa(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 aAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?$a(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 Xa(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 cAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?$a(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 Xa(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 AAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?$a(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 Xa(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 Vf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Wf(t){let e=t.version?t.version:fR;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 WB=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=d0()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ja||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ja||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=>_e(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!==Ja||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ja||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=_e(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!==Ja||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ja||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=>_e(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!==Ja||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ja||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"}};D0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var jf=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"}};jf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var eb=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var kAt=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())})},g9=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 $pe(t,e,r){return kAt(this,void 0,void 0,function*(){var n;let s=new Za(t),i=s.getBlockBlobClient(),o=new g9((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(),O(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new AD(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw je(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as Zpe from"buffer";import*as dA from"fs";import*as eme from"stream";import*as tme from"util";var uD=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 lD(t){return t?t>=200&&t<300:!1}function vAt(t){return t?t>=500:!0}function _At(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function FAt(t){return uD(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Xpe(t,e,r){return uD(this,arguments,void 0,function*(n,s,i,o=WT,a=JT,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),!vAt(d)))return l;if(d&&(h=_At(d),A=`Cache service responded with ${d}`),O(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){O(`${n} - Error is not retryable`);break}yield FAt(a),u++}throw Error(`${n} failed: ${A}`)})}function tb(t,e){return uD(this,arguments,void 0,function*(r,n,s=WT,i=JT){return yield Xpe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof Fc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function k0(t,e){return uD(this,arguments,void 0,function*(r,n,s=WT,i=JT){return yield Xpe(r,n,o=>o.message.statusCode,s,i)})}var Wo=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 Wo(this,void 0,void 0,function*(){yield tme.promisify(eme.pipeline)(t.message,e)})}var dD=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,O(`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||[])O(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function I9(t,e,r){return pi(this,void 0,void 0,function*(){let n=new HAt(t),s=ime(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield nme(t,e,s):s.concurrentBlobDownloads?yield rme(t,e,s):yield hD(t,e):yield hD(t,e)})}function gme(t,e,r){return pi(this,void 0,void 0,function*(){let n=C9(),s=n0(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield tb("reserveCache",()=>pi(this,void 0,void 0,function*(){return n.postJson(nb("caches"),i)}))})}function hme(t,e){return`bytes ${t}-${e}/*`}function VAt(t,e,r,n,s){return pi(this,void 0,void 0,function*(){O(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${hme(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":hme(n,s)},o=yield k0(`uploadChunk (start: ${n}, end: ${s})`,()=>pi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!lD(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function WAt(t,e,r,n){return pi(this,void 0,void 0,function*(){let s=Oc(r),i=nb(`caches/${e.toString()}`),o=v0.openSync(r,"r"),a=p9(n),c=i8("uploadConcurrency",a.uploadConcurrency),A=i8("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];O("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>pi(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 VAt(t,i,()=>v0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),h,f)}})))}finally{v0.closeSync(o)}})}function JAt(t,e,r){return pi(this,void 0,void 0,function*(){let n={size:r};return yield tb("commitCache",()=>pi(this,void 0,void 0,function*(){return t.postJson(nb(`caches/${e.toString()}`),n)}))})}function y9(t,e,r,n){return pi(this,void 0,void 0,function*(){if(p9(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield $pe(r,e,n)}else{let i=C9();O("Upload cache"),yield WAt(i,t,e,n),O("Commiting cache");let o=Oc(e);Z(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield JAt(i,t,o);if(!lD(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Z("Cache saved successfully")}})}var c0e=ge(dG(),1),sn=ge(At(),1),eo=ge(At(),1),eg=ge(At(),1),tg=ge(At(),1),rg=ge(At(),1);var pG=ge(At(),1),mG=ge(At(),1),i0e=ge(At(),1),o0e=ge(At(),1),a0e=ge(At(),1);var hG=ge(At(),1),fG=ge(At(),1),r0e=ge(At(),1),n0e=ge(At(),1),s0e=ge(At(),1),gG=class extends s0e.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,n0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,r0e.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?fG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,hG.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,hG.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?fG.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},e2=new gG;var EG=class extends a0e.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:()=>e2}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,o0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,i0e.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(e2.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?mG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,pG.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)e2.internalBinaryWrite(e.scope[i],r.tag(2,pG.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?mG.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield vG(r,"create");yield _G(n,t)})}var j0=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())})},ro=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Yu=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},LG="cache write denied:",n2=class t extends Yu{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},d0e=zT,s2=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},i2=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function h0e(t){if(!t||t.length===0)throw new ro("Path Validation Error: At least one directory or file path is required")}function UG(t){if(t.length>512)throw new ro(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ro(`Key Validation Error: ${t} cannot contain commas.`)}function f0e(){return rb()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function o2(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=rb();O(`Cache service version: ${A}`),h0e(s);let u=E9();if(!ame(u)){Z(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),O(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield udt(s,i,o,a,c):yield Adt(s,i,o,a,c)})}function Adt(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)UG(h);let l=yield nB(),d="";try{let h;try{h=yield fme(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(d0e)?new s2(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return Z("Lookup only - skipping download"),h.cacheKey;d=Cb.join(yield tB(),sd(l)),O(`Archive Path: ${d}`),yield I9(h.archiveLocation,d,a),Ha()&&(yield Eb(d,l));let f=Oc(d);return Z(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield FG(d,l),Z("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===ro.name)throw h;f instanceof Fc&&typeof f.statusCode=="number"&&f.statusCode>=500?Yi(`Failed to restore: ${h.message}`):je(`Failed to restore: ${h.message}`)}finally{try{yield rB(d)}catch(h){O(`Failed to delete archive: ${h}`)}}})}function udt(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)UG(d);let l="";try{let d=kG(),h=yield nB(),f={key:i,restoreKeys:o,version:n0(s,h,c)},g;try{g=yield d.GetCacheEntryDownloadURL(f)}catch(I){let y=(A=I?.message)!==null&&A!==void 0?A:"";throw y.includes(d0e)?new s2(y):I}if(!g.ok){O(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?Z(`Cache hit for restore-key: ${g.matchedKey}`):Z(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return Z("Lookup only - skipping download"),g.matchedKey;l=Cb.join(yield tB(),sd(h)),O(`Archive path: ${l}`),O(`Starting download of archive to: ${l}`),yield I9(g.signedDownloadUrl,l,a);let m=Oc(l);return Z(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Ha()&&(yield Eb(l,h)),yield FG(l,h),Z("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===ro.name)throw d;h instanceof Fc&&typeof h.statusCode=="number"&&h.statusCode>=500?Yi(`Failed to restore: ${d.message}`):je(`Failed to restore: ${d.message}`)}finally{try{l&&(yield rB(l))}catch(d){O(`Failed to delete archive: ${d}`)}}})}function a2(t,e,r){return j0(this,arguments,void 0,function*(n,s,i,o=!1){let a=rb();O(`Cache service version: ${a}`),h0e(n),UG(s);let c=E9();return cme(c)?a==="v2"?yield ddt(n,s,i,o):yield ldt(n,s,i,o):(Z(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),O(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function ldt(t,e,r){return j0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield nB(),f=-1,g=yield s8(n);if(O("Cache Paths:"),O(`${JSON.stringify(g)}`),g.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield tB(),m=Cb.join(E,sd(h));O(`Archive Path: ${m}`);try{yield MG(E,g,h),Ha()&&(yield Eb(m,h));let I=10*1024*1024*1024,y=Oc(m);if( Line truncated
See ${r.getDocumentationLink()}`;g0e.push(n),gf(n)}function p0e(){Uc("deprecation-collector_deprecations",JSON.stringify(OG)),Uc("deprecation-collector_errors",JSON.stringify(g0e))}import*as l2 from"path";var m0e="GRADLE_ACTION_ID";var g2=".setup-gradle",Bb=class t{getDependencyGraphOption(){let e=hr("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 EA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=hr("artifact-retention-days");return gdt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(oi.workflow,oi.job,E0e())}getReportDirectory(){let e=hr("dependency-graph-report-dir");return l2.resolve(bd(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return ng("dependency-graph-exclude-projects")}getIncludeProjects(){return ng("dependency-graph-include-projects")}getExcludeConfigurations(){return ng("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return ng("dependency-graph-include-configurations")}getPluginRepository(){return new d2}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){O(`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 K0=class{isCacheDisabled(){return f0e()?EA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&EA("cache-read-only")}isCacheWriteOnly(){return EA("cache-write-only")}isCacheOverwriteExisting(){return EA("cache-overwrite-existing")}isCacheStrictMatch(){return EA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=yb("gradle-home-cache-cleanup");if(e!==void 0)return A2("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=hr("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 hr("cache-encryption-key")}getCacheIncludes(){return n3("gradle-home-cache-includes")}getCacheExcludes(){return n3("gradle-home-cache-excludes")}getCacheProvider(){let e=hr("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 rc=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return EA("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return hr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return hr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return hr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return hr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return yb("develocity-injection-enabled")}getDevelocityUrl(){return hr("develocity-url")}getDevelocityAllowUntrustedServer(){return yb("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return yb("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return yb("develocity-enforce-url")}getDevelocityPluginVersion(){return hr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return hr("develocity-ccud-plugin-version")}getPluginRepository(){return new d2}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(je("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},d2=class{getUrl(){return ng("gradle-plugin-repository-url")}getUsername(){return ng("gradle-plugin-repository-username")}getPassword(){return ng("gradle-plugin-repository-password")}},h2=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 xb(i));return n.searchPaths.push(...YG(n.patterns)),n})}static stat(e,r,n){return XG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Z0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){O(`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 Z0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Z0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){O(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as ZG from"crypto";import*as B2 from"fs";import*as W0e from"stream";import*as J0e from"util";import*as z0e from"path";var vht=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())})},_ht=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 j0e(t,e){return vht(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?Z:O,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=ZG.createHash("sha256"),f=0;try{for(var g=!0,E=_ht(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;g=!0){c=m.value,g=!1;let I=c;if(u(I),!I.startsWith(`${d}${z0e.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(B2.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=ZG.createHash("sha256");yield J0e.promisify(W0e.pipeline)(B2.createReadStream(I),y),h.write(y.digest()),f++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!g&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var K0e=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 eq(t,e){return K0e(this,void 0,void 0,function*(){return yield I2.create(t,e)})}function $0e(t){return K0e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield eq(e,{followSymbolicLinks:i});return j0e(o,r,s)})}import*as tq from"path";var Fht="Gradle User Home",Z0e="BASIC_CACHE_PRIMARY_KEY",eEe="BASIC_CACHE_RESTORED_KEY",Mht="setup-java",tEe=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],b2=class{async restore(e,r){let n=rEe(e),s=await Lht();Uc(Z0e,s);try{let i=await o2(n,s);i?(Uc(eEe,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){je(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=My(Z0e),i=My(eEe);if(n.readOnly)return{status:"read-only",entries:[Db({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:[Db({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=rEe(e);try{return await a2(o,s)===-1?(je(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(Z(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return je(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry reLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${tEe}], make sure you have checked out the target repository`);return`${Mht}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Pht="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.",Oht="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.",nq=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function iEe(t){return t.isCacheDisabled()?(rq("Cache is disabled: will not restore state from previous builds."),new nq):t.getCacheProvider()==="basic"?(rq(Oht),new b2):(rq(Pht),Hht())}async function Hht(){let t=Ght();return await import(Uht(t).href)}function Ght(){let t=import.meta.dirname,e=sEe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(nEe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function rq(t){console.info(t)}import Q2 from"fs";import oEe from"path";var w2=class{constructor(e){this.cacheFile=oEe.resolve(e,g2,"valid-wrappers.json")}load(){if(Q2.existsSync(this.cacheFile))try{return JSON.parse(Q2.readFileSync(this.cacheFile,"utf-8"))}catch(e){je(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];Q2.mkdirSync(oEe.dirname(this.cacheFile),{recursive:!0}),Q2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var dEe=ge(uEe(),1);import*as lEe from"util";import*as S2 from"path";import*as N2 from"fs";var zht=lEe.promisify(N2.readdir);async function hEe(t){return(await fEe(t)).filter(r=>(0,dEe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>S2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function fEe(t){let e=await zht(t),r=await Promise.all(e.map(async n=>{let s=S2.resolve(t,n),i=N2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?fEe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var Kht={_useHtmlParser2:!1};function eE(t,e){if(!t)return e??Kht;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 Nq={};xa(Nq,{contains:()=>G2,extract:()=>Yft,html:()=>Oft,merge:()=>LEe,parseHTML:()=>Gft,root:()=>qft,text:()=>fg,xml:()=>Hft});var kd={};xa(kd,{DocumentPosition:()=>Zo,append:()=>Bft,appendChild:()=>yft,compareDocumentPosition:()=>vEe,existsOne:()=>DEe,filter:()=>iE,find:()=>U2,findAll:()=>Sft,findOne:()=>P2,findOneChild:()=>wft,getAttributeValue:()=>mft,getChildren:()=>sE,getElementById:()=>Rft,getElements:()=>xft,getElementsByClassName:()=>Dft,getElementsByTagName:()=>hg,getElementsByTagType:()=>kft,getFeed:()=>Sq,getInnerHTML:()=>pft,getName:()=>Cft,getOuterHTML:()=>xEe,getParent:()=>REe,getSiblings:()=>Qq,getText:()=>F2,hasAttrib:()=>Eft,hasChildren:()=>rr,innerText:()=>Mb,isCDATA:()=>tE,isComment:()=>dg,isDocument:()=>Xo,isTag:()=>Qe,isText:()=>Ii,nextElementSibling:()=>M2,prepend:()=>Qft,prependChild:()=>bft,prevElementSibling:()=>L2,removeElement:()=>Ku,removeSubsets:()=>vft,replaceElement:()=>Ift,testElement:()=>Tft,textContent:()=>ju,uniqueSort:()=>Rd});var $o={};xa($o,{CDATA:()=>dq,Comment:()=>cq,Directive:()=>aq,Doctype:()=>hq,ElementType:()=>bt,Root:()=>iq,Script:()=>Aq,Style:()=>uq,Tag:()=>lq,Text:()=>oq,isTag:()=>sq});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 sq(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var iq=bt.Root,oq=bt.Text,aq=bt.Directive,cq=bt.Comment,Aq=bt.Script,uq=bt.Style,lq=bt.Tag,dq=bt.CDATA,hq=bt.Doctype;var T2=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 rE(this,e)}},kb=class extends T2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},IA=class extends kb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Ag=class extends kb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},ug=class extends kb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},vb=class extends T2{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
`:F2(t.children):tE(t)?F2(t.children):Ii(t)?t.data:""}function ju(t){return Array.isArray(t)?t.map(ju).join(""):rr(t)&&!dg(t)?ju(t.children):Ii(t)?t.data:""}function Mb(t){return Array.isArray(t)?t.map(Mb).join(""):rr(t)&&(t.type===bt.Tag||tE(t))?Mb(t.children):Ii(t)?t.data:""}function sE(t){return rr(t)?t.children:[]}function REe(t){return t.parent||null}function Qq(t){let e=REe(t);if(e!=null)return sE(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 mft(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function Eft(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Cft(t){return t.name}function M2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function L2(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 Ift(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 yft(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 Bft(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 bft(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 Qft(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 iE(t,e,r=!0,n=1/0){return U2(t,Array.isArray(e)?e:[e],r,n)}function U2(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&&rr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function wft(t,e){return e.find(t)}function P2(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&&rr(i)&&i.children.length>0){let o=P2(t,i.children,!0);if(o)return o}}return null}function DEe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&DEe(t,r.children))}function Sft(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),rr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var O2={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=>Ii(e)&&t(e.data):e=>Ii(e)&&e.data===t}};function wq(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Nft(t,e){return r=>t(r)||e(r)}function kEe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(O2,r)?O2[r](n):wq(r,n)});return e.length===0?null:e.reduce(Nft)}function Tft(t,e){let r=kEe(t);return r?r(e):!0}function xft(t,e,r,n=1/0){let s=kEe(t);return s?iE(s,e,r,n):[]}function Rft(t,e,r=!0){return Array.isArray(e)||(e=[e]),P2(wq("id",t),e,r)}function hg(t,e,r=!0,n=1/0){return iE(O2.tag_name(t),e,r,n)}function Dft(t,e,r=!0,n=1/0){return iE(wq("class",t),e,r,n)}function kft(t,e,r=!0,n=1/0){return iE(O2.tag_type(t),e,r,n)}function vft(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 Zo;(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"})(Zo||(Zo={}));function vEe(t,e){let r=[],n=[];if(t===e)return 0;let s=rr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=rr(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 Zo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Zo.FOLLOWING|Zo.CONTAINED_BY:Zo.FOLLOWING:a===t?Zo.PRECEDING|Zo.CONTAINS:Zo.PRECEDING}function Rd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=vEe(e,r);return n&Zo.PRECEDING?-1:n&Zo.FOLLOWING?1:0}),t}function Sq(t){let e=H2(Uft,t);return e?e.name==="feed"?_ft(e):Fft(e):null}function _ft(t){var e;let r=t.children,n={type:"atom",items:hg("entry",r).map(o=>{var a;let{children:c}=o,A={media:_Ee(c)};yi(A,"id","id",c),yi(A,"title","title",c);let u=(a=H2("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 ra=ge(vd(),1);var qq={};function Yq(t,e){return t===ra.default.falseFunc?ra.default.falseFunc:r=>e.isTag(r)&&t(r)}function Vq(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 Gq(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 Hq=(t,e,r,n,s)=>{let i=s(e,Gq(r),n);return i===ra.default.trueFunc?t:i===ra.default.falseFunc?ra.default.falseFunc:o=>i(o)&&t(o)},ek={is:Hq,matches:Hq,where:Hq,not(t,e,r,n,s){let i=s(e,Gq(r),n);return i===ra.default.falseFunc?t:i===ra.default.trueFunc?ra.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=Gq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(qb))?[qq]:void 0,c=s(e,o,a);if(c===ra.default.falseFunc)return ra.default.falseFunc;let A=Yq(c,i);if(a&&c!==ra.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,...Vq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function BCe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in ek))throw new Error(`Unknown pseudo-class :${o}(${a})`);return ek[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:Z2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,yCe.parse)(A);return ek.is(t,u,r,n,s)}if(typeof c=="function")return Oq(c,o,a,1),u=>c(u,a)&&t(u);if(o in fE)return fE[o](t,a,r,n);if(o in Vb){let u=Vb[o];return Oq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var na=ge(dE(),1);function Wq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function bCe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case na.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case na.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case na.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()),mCe[e.action](t,e,r)}case na.SelectorType.Pseudo:return BCe(t,e,r,n,s);case na.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 na.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=Wq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=Wq(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=Wq(A,i));return!1};case na.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case na.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case na.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 na.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 na.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function QCe(t,e,r){let n=tk(t,e,r);return Yq(n,e.adapter)}function tk(t,e,r){let n=typeof t=="string"?(0,oc.parse)(t):t;return rk(n,e,r)}function wCe(t){return t.type===oc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(wCe)))}var xgt={type:oc.SelectorType.Descendant},Rgt={type:"_flexibleDescendant"},Dgt={type:oc.SelectorType.Pseudo,name:"scope",data:null};function kgt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===qq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(HCe,`\r
`)}}).toArray()}var cY={};xa(cY,{extract:()=>Jpt});function Wpt(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 Jpt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Wpt(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,Fq,sY,iY,oY,aY,cY);function GCe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=eE(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&&ea(u))return u;let f=eE(h,o),g=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=ea(g)?g:new c(g,null,f);if(E._root=E,!u)return new c(void 0,E,f);let m=typeof u=="string"&&Lb(u)?t(u,f,!1,null).children:zpt(u)?[u]:Array.isArray(u)?u:void 0,I=new c(m,E,f);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,B=l?typeof l=="string"?Lb(l)?new c([t(l,f,!1,null)],E,f):(y=`${l} ${y}`,E):ea(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(y):I}return Object.assign(A,Nq,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function zpt(t){return!!t.name||t.type===$o.Root||t.type===$o.Text||t.type===$o.Comment}var jpt=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",N;(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"})(N||(N={}));var Os={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function ck(t){return t>=55296&&t<=57343}function qCe(t){return t>=56320&&t<=57343}function YCe(t,e){return(t-55296)*1024+9216+e}function Ak(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function uk(t){return t>=64976&&t<=65007||jpt.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(`
`)}`}},H_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var ap=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function _Re(t){if(t instanceof AggregateError){gf("Multiple errors returned");for(let e of t.errors)Yi(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&Z(e.stack)}else t instanceof ap?(gf(String(t)),t.stack&&Z(t.stack)):(gf(String(t)),t instanceof Error&&t.stack&&Z(t.stack))}async function FRe(t,e,r){if(!t.doValidateWrappers())return;let n=new w2(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await vRe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await pT("All Gradle Wrapper jars are valid",async()=>{O(`Loaded previously validated checksums from cache: ${i.join(", ")}`),Z(o.toDisplayString())});else throw Z(o.toDisplayString()),new ap(`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 mo from"fs";import cp from"path";function MRe(t,e,r){let n=cp.resolve(e,g2);mo.mkdirSync(n,{recursive:!0}),Pvt(e),Ovt(t),Ha()&&Hvt(e),r&&Zn("GRADLE_ENCRYPTION_KEY",r)}function Pvt(t){let e=cp.resolve(t,"init.d");mo.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=Gvt("init-scripts",n),i=cp.resolve(e,n);mo.writeFileSync(i,s)}}function Ovt(t){let e=qvt();if(e==null)return;let r=cp.resolve(t,".m2"),n=cp.resolve(r,"toolchains.xml");if(!mo.existsSync(n))mo.mkdirSync(r,{recursive:!0}),mo.writeFileSync(n,e),Z(`Wrote default JDK locations to ${n}`);else{let s=mo.readFileSync(n,"utf8"),i=Yvt(s,e);mo.writeFileSync(n,i),Z(`Merged default JDK locations into ${n}`)}}function Hvt(t){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=cp.resolve(t,"gradle.properties");if(mo.existsSync(r)){Z(`Merged --info and --stacktrace into existing ${r} file`);let n=mo.readFileSync(r,"utf-8");mo.writeFileSync(r,`${e}
${n}`)}else Z(`Created a new ${r} with --info and --stacktrace`),mo.writeFileSync(r,e)}function Gvt(...t){let e=import.meta.dirname,r=cp.resolve(e,"..","..","..","sources","src","resources",...t);return mo.readFileSync(r,"utf8")}function qvt(){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 Yvt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var Kz="GRADLE_BUILD_ACTION_SETUP_COMPLETED",Vvt="GRADLE_USER_HOME",Wvt="DEVELOCITY_CACHE_TOKEN";async function LRe(t,e,r){let n=await URe(),s=await zvt();if(process.env[Kz])return Z("Gradle setup only performed on first gradle/actions step in workflow."),!1;Zn(Kz,!0),Uc(Kz,!0),Uc(Vvt,s),MRe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await B0e(e);return Uc(Wvt,o??""),await(await iEe(t)).restore(s,Jvt(t,i,o)),await FRe(r,bd(),s),I0e(e),!0}function Jvt(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 zvt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=bd();return Xz.resolve(r,t)}let e=Xz.resolve(await URe(),".gradle");if($z.existsSync(e))return Z(`Gradle User Home already exists at ${e}`),Zn("GRADLE_USER_HOME",e),e;if(G_.platform()==="win32"&&e.startsWith("C:\\")&&$z.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return Z(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Zn("GRADLE_USER_HOME",r),r}return Zn("GRADLE_USER_HOME",e),e}async function URe(){let t=await Fy("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()."),G_.homedir();let n=r[1];return O(`Determined user.home from java -version output: '${n}'`),n}import*as dC from"fs";import*as EDe from"os";import*as dh from"path";import*as ej from"crypto";import*as up from"fs";var Kvt=ge(Xy(),1);import*as pw from"path";var V_=ge(Xy(),1);import*as ORe from"stream";import*as HRe from"util";import{ok as Xvt}from"assert";var PRe=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 PRe(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 PRe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Ap=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())})},Y_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},Zvt=process.platform==="win32",C1r=process.platform==="darwin",e_t="actions/tool-cache";function GRe(t,e,r,n){return Ap(this,void 0,void 0,function*(){e=e||pw.join(YRe(),ej.randomUUID()),yield ff(pw.dirname(e)),O(`Downloading ${t}`),O(`Destination ${e}`);let s=3,i=Zz("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=Zz("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new q_(s,i,o).execute(()=>Ap(this,void 0,void 0,function*(){return yield t_t(t,e||"",r,n)}),c=>!(c instanceof Y_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function t_t(t,e,r,n){return Ap(this,void 0,void 0,function*(){if(up.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Pr(e_t,[],{allowRetries:!1});r&&(O("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new Y_(i.message.statusCode);throw O(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=HRe.promisify(ORe.pipeline),c=Zz("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,up.createWriteStream(e)),O("download complete"),A=!0,e}finally{if(!A){O("download failed");try{yield AAe(e)}catch(u){O(`Failed to delete '${e}'. ${u.message}`)}}}})}function qRe(t,e){return Ap(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yie Line truncated
`," Line feed \\n"]]),vDe=new Map([...Pj,["\\"," Backslash \\"],["/"," Forward slash /"]]);function _De(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of vDe)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(vDe.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 Oj(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of Pj)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(Pj.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 UDe=ge(LDe(),1);function YA(){return`@actions/artifact-${UDe.version}`}var pC=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"}},El=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},Cl=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"}},Il=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"}};Il.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var dp=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"}};dp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var hp=class extends Error{};hp.prototype.name="InvalidTokenError";function M_t(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function L_t(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return M_t(e)}catch{return atob(e)}}function PDe(t,e){if(typeof t!="string")throw new hp("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 hp(`Invalid token specified: missing part #${r+1}`);let s;try{s=L_t(n)}catch(i){throw new hp(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new hp(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var j_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function VA(){let t=J_(),e=PDe(t);if(!e.scp)throw j_;let r=e.scp.split(" ");if(r.length===0)throw j_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw j_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return O(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),O(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw j_}function ODe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(vo(r),vo(encodeURIComponent(r)))}catch(e){O(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function HDe(t){if(typeof t!="object"||t===null){O("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&ODe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&ODe(t.signed_url)}var K_=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())})},Hj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=J_();this.baseUrl=BDe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Pr(e,[new wu(i)])}request(e,r,n,s){return K_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;O(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>K_(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 K_(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(),O(`[Response] - ${a.message.statusCode}`),O(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(HDe(A),O(`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(dp.isUsageErrorMessage(A.msg))throw new dp;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&O(`Raw Body: ${s}`),a instanceof dp)throw a;if(Il.isNetworkErrorCode(a?.code))throw new Il(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?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return K_(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 WA(t){let e=new Hj(YA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new z_(e)}import*as mC from"fs";import{normalize as GDe,resolve as qDe}from"path";function YDe(t){if(!mC.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&&je("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);Z(`Redirecting to blob download url: ${t4e(u)}`);try{Z(`Starting download of artifact to: ${r}`);let l=yield r4e(u,r,e?.skipDecompress);Z("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,O(`Computed digest: ${l.sha256Digest}`),O(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function i4e(){return lI(this,arguments,void 0,function*(t=bDe()){return(yield IWt(t))?O(`Artifact destination folder already exists: ${t}`):(O(`Artifact destination folder does not exist, creating: ${t}`),yield K8e.mkdir(t,{recursive:!0})),t})}var BWt=5,bWt=[400,401,403,404,422];function dI(t,e=BWt,r=bWt){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 O(`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 o4e="6.0.0";function Gp(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})})}Gp.VERSION=o4e;var A4e=ge(a4e(),1);var nL=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 QWt="0.0.0-development";async function c4e(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 wWt(t,e,r,n){let s=new A4e.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(SWt.bind(null,t,e,r),n)}async function SWt(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 nL(s.data.errors[0].message,500,{request:n,response:s});return c4e(t,e,i,n)}return s}function qp(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",c4e.bind(null,r,t)),t.hook.wrap("request",wWt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}qp.VERSION=QWt;var u4e=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 sL(t,e,r,n,s){return u4e(this,void 0,void 0,function*(){var i;let[o,a]=dI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},u=yield Ga(s,c,qp,Gp).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 El(`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 Cl(`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],O(`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 l4e(t){return u4e(this,void 0,void 0,function*(){var e;let r=WA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=VA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:pn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new Cl(`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],O(`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?Eo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var d4e=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 h4e(t,e,r,n,s){return d4e(this,void 0,void 0,function*(){var i;let[o,a]=dI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},A=Ga(s,c,qp,Gp),u=yield sL(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 El(`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 f4e(t){return d4e(this,void 0,void 0,function*(){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:pn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new Cl(`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],O(`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 g4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{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())})},iL=SDe(),oL=100,NWt=Math.ceil(iL/oL);function p4e(t,e,r,n){return g4e(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]=dI(Ef),d={log:void 0,userAgent:YA(),previews:void 0,retry:u,request:l},h=Ga(a,d,qp,Gp),f=1,{data:g}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:oL,page:f}),E=Math.ceil(g.total_count/oL),m=g.total_count;m>iL&&(je(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${iL}. Results will be incomplete as only the first ${iL} artifacts will be returned`),E=NWt);for(let I of g.artifacts)A.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(f++,f;f<=E;f++){O(`Fetching page ${f} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:oL,page:f});for(let y of I.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=E4e(A)),Z(`Found ${A.length} artifact(s)`),{artifacts:A}})}function m4e(){return g4e(this,arguments,void 0,function*(t=!1){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),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?Eo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=E4e(o)),Z(`Found ${o.length} artifact(s)`),{artifacts:o}})}function E4e(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 U1=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())})},TWt=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},hI=class{uploadArtifact(e,r,n,s){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;return g8e(e,r,n,s)}catch(i){throw je(`Artifact upload failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return EP(this,void 0,void 0,function*(){try{if(ix())throw new lI;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=syn(r,["findBy"]);return BFt(e,n,s,i,o)}return QFt(e,r)}catch(n){throw tr(`Download Artifact failed with error: ${n}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=TWt(r,["findBy"]);return n4e(e,n,s,i,o)}return s4e(e,r)}catch(n){throw je(`Download Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return EP(this,void 0,void 0,function*(){try{if(ix())throw new lI;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return vFt(r,n,s,i,e?.latest)}return LFt(e?.latest)}catch(r){throw tr(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return p4e(r,n,s,i,e?.latest)}return m4e(e?.latest)}catch(r){throw je(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return EP(this,void 0,void 0,function*(){try{if(ix())throw new lI;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return HK(e,n,s,i,o)}return xFt(e)}catch(n){throw tr(`Get Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return sL(e,n,s,i,o)}return l4e(e)}catch(n){throw je(`Get Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return EP(this,void 0,void 0,function*(){try{if(ix())throw new lI;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return kFt(e,i,n,s,o)}return FFt(e)}catch(n){throw tr(`Delete Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return h4e(e,i,n,s,o)}return f4e(e)}catch(n){throw je(`Delete Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var MAs=new QT;import*as Fxe from"path";import Mxe from"fs";var iyn="dependency-graph_";async function PFt(t){let e=t.getDependencyGraphOption();if(e==="disabled"){qi("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){IA("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await oyn(t);return}pe("Enabling dependency graph generation"),qi("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),IA("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),IA("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),IA("GITHUB_DEPENDENCY_GRAPH_JOB_ID",Qo.runId.toString()),IA("GITHUB_DEPENDENCY_GRAPH_REF",Qo.ref),IA("GITHUB_DEPENDENCY_GRAPH_SHA",myn()),IA("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",bC()),IA("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),IA("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),IA("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),IA("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),IA("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),IA("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),IA("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),IA("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function IA(t,e){process.env[t]||e!==void 0&&qi(t,e)}async function oyn(t){if(Eyn()){pe("Dependency graph not supported in the ACT environment.");return}try{await cyn(await ayn(t))}catch(e){fyn(t,"download-and-submit",e)}}async function ayn(t){let e=Qo.payload.workflow_run?{token:O6(),workflowRunId:Qo.payload.workflow_run.id,repositoryName:Qo.repo.repo,repositoryOwner:Qo.repo.owner}:void 0,r=new QT,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(iyn)),s=t.getDownloadArtifactName();s&&(pe(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});pe(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return Ayn()}async function Ayn(){let r=(await(await iC(`${dyn()}/**/*.json`)).glob()).filter(n=>!hyn(n));return r.forEach(gyn),pe(`Found dependency graph files: ${r.join(", ")}`),r}async function cyn(t){if(t.length===0){pe("No dependency graph files found to submit.");return}for(let e of t)try{await lyn(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=uyn(e,r)),r}}function uyn(t,e){let n=`Dependency submission failed for ${_Ft(t)}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var E2r=new hI;import*as UZ from"path";import PZ from"fs";var xWt="dependency-graph_";async function C4e(t){let e=t.getDependencyGraphOption();if(e==="disabled"){Zn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){Xs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await RWt(t);return}Z("Enabling dependency graph generation"),Zn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),Xs("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),Xs("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),Xs("GITHUB_DEPENDENCY_GRAPH_JOB_ID",oi.runId.toString()),Xs("GITHUB_DEPENDENCY_GRAPH_REF",oi.ref),Xs("GITHUB_DEPENDENCY_GRAPH_SHA",HWt()),Xs("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",bd()),Xs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),Xs("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),Xs("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),Xs("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),Xs("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),Xs("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),Xs("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),Xs("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function Xs(t,e){process.env[t]||e!==void 0&&Zn(t,e)}async function RWt(t){if(GWt()){Z("Dependency graph not supported in the ACT environment.");return}try{await vWt(await DWt(t))}catch(e){PWt(t,"download-and-submit",e)}}async function DWt(t){let e=oi.payload.workflow_run?{token:p2(),workflowRunId:oi.payload.workflow_run.id,repositoryName:oi.repo.repo,repositoryOwner:oi.repo.owner}:void 0,r=new hI,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(xWt)),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 kWt()}async function kWt(){let r=(await(await eq(`${MWt()}/**/*.json`)).glob()).filter(n=>!LWt(n));return r.forEach(UWt),Z(`Found dependency graph files: ${r.join(", ")}`),r}async function vWt(t){if(t.length===0){Z("No dependency graph files found to submit.");return}for(let e of t)try{await FWt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=_Wt(e,r)),r}}function _Wt(t,e){let n=`Dependency submission failed for ${I4e(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 FWt(t){let e=OWt(),r=PZ.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=oi.repo.owner,n.repo=oi.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=I4e(t);IAe(`Submitted ${i}: ${s.data.message}`)}function MWt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function LWt(t){let e=`${t}.processed`;return PZ.existsSync(e)}function UWt(t){let e=`${t}.processed`;PZ.writeFileSync(e,"")}function PWt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new ap(r);je(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function OWt(){return Ga(p2())}function I4e(t){let e=bd();return UZ.relative(e,t)}function HWt(){let t=oi;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 GWt(){return process.env.ACT!==void 0}function YWt(t=process.platform){return t==="win32"?50:0}async function y4e(t=process.platform){let e=YWt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function VWt(){try{Ib()==="gradle/gradle-build-action"&&u2("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),C0e("gradle/actions/setup-gradle"),await LRe(new K0,new rc,new f2),await C4e(new Bb);let t=new h2;t.verifyNoArguments(),await nj(t.getGradleVersion()),p0e()}catch(t){_Re(t)}await y4e()}VWt();export{VWt 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": ";u3BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,IAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+222 -381
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 L8e=Object.create;var FM=Object.defineProperty;var U8e=Object.getOwnPropertyDescriptor;var P8e=Object.getOwnPropertyNames;var O8e=Object.getPrototypeOf,H8e=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var C=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Qa=(t,e)=>{for(var r in e)FM(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&&FM(t,s,{get:()=>e[s],enumerable:!(n=U8e(e,s))||n.enumerable});return t};var pe=(t,e,r)=>(r=t!=null?L8e(O8e(t)):{},G8e(e||!t||!t.__esModule?FM(r,"default",{value:t,enumerable:!0}):r,t));var VZ=C(Lp=>{"use strict";var l7t=Q("net"),z8e=Q("tls"),PM=Q("http"),GZ=Q("https"),j8e=Q("events"),d7t=Q("assert"),K8e=Q("util");Lp.httpOverHttp=$8e;Lp.httpsOverHttp=X8e;Lp.httpOverHttps=Z8e;Lp.httpsOverHttps=e4e;function $8e(t){var e=new $A(t);return e.request=PM.request,e}function X8e(t){var e=new $A(t);return e.request=PM.request,e.createSocket=qZ,e.defaultPort=443,e}function Z8e(t){var e=new $A(t);return e.request=GZ.request,e}function e4e(t){var e=new $A(t);return e.request=GZ.request,e.createSocket=qZ,e.defaultPort=443,e}function $A(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||PM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=YZ(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($A,j8e.EventEmitter);$A.prototype.addRequest=function(e,r,n,s){var i=this,o=OM({request:e},i.options,YZ(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)}})};$A.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=OM({},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")),Ql("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){Ql("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){Ql("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 Ql("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Ql(`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)}};$A.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 qZ(t,e){var r=this;$A.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=OM({},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 YZ(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function OM(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 Ql;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ql=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)}:Ql=function(){};Lp.debug=Ql});var HM=C((f7t,WZ)=>{WZ.exports=VZ()});var Br=C((g7t,JZ)=>{JZ.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 _t=C((p7t,Eee)=>{"use strict";var zZ=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[zZ]===!0}[zZ]=!0},jZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),GM=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[jZ]===!0}[jZ]=!0},KZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),qM=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[KZ]===!0}[KZ]=!0},$Z=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),YM=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[$Z]===!0}[$Z]=!0},XZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),VM=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[XZ]===!0}[XZ]=!0},ZZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),WM=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&&LL(t.origin)&&!LL(NI(t))&&(e=null);break;case"same-origin":pS(t,NI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Jp(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:Jp(t.domainLookupStartTime,r),domainLookupEndTime:Jp(t.domainLookupEndTime,r),connectionStartTime:Jp(t.connectionStartTime,r),connectionEndTime:Jp(t.connectionEndTime,r),secureConnectionStartTime:Jp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function b5e(t){return Jp(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 kte(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function w5e(t){return{referrerPolicy:t.referrerPolicy}}function S5e(t){let e=t.referrerPolicy;_h(e);let r=null;if(t.referrer==="client"){let a=Ste();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=ML(r),s=ML(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??ML(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 ML(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 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(gS===void 0)return!0;let r=vte(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=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)),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 vte(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();Tte.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 pS(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 _h(typeof e=="string"),e}var U5e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function _te(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){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,dHe,i)||i.position===t.length-4&&CS(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)),ES(Wte(c)),ES(typeof h=="string"&&Wte(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=jp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=YL(o,!0,!0,a=>a===9||a===32),!oHe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,jp(a=>a===32||a===9,t,e),sHe(o)){case"content-disposition":{if(r=n=null,!CS(t,lHe,e)||(e.position+=17,r=jte(t,e),r===null))return"failure";if(CS(t,zte,e)){let a=e.position+zte.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=jte(t,e),n===null))return"failure"}break}case"content-type":{let a=jp(c=>c!==10&&c!==13,t,e);a=YL(a,!1,!0,c=>c===9||c===32),s=Jte(a);break}case"content-transfer-encoding":{let a=jp(c=>c!==10&&c!==13,t,e);a=YL(a,!1,!0,c=>c===9||c===32),i=Jte(a);break}default:jp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function jte(t,e){ES(t[e.position-1]===34);let r=jp(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 jp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function YL(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}Kte.exports={multipartFormDataParser:pHe,validateBoundary:gHe}});var Xp=C((H7t,are)=>{"use strict";var RI=lt(),{ReadableStreamFrom:EHe,isBlobLike:Xte,isReadableStreamLike:CHe,readableStreamClose:IHe,createDeferredPromise:yHe,fullyReadBody:BHe,extractMimeType:bHe,utf8DecodeBytes:tre}=Ri(),{FormData:Zte}=xI(),{kState:$p}=wl(),{webidl:QHe}=Kn(),{Blob:wHe}=Q("node:buffer"),VL=Q("node:assert"),{isErrored:rre,isDisturbed:SHe}=Q("node:stream"),{isArrayBuffer:NHe}=Q("node:util/types"),{serializeAMimeType:THe}=$s(),{multipartFormDataParser:xHe}=$te(),WL;try{let t=Q("node:crypto");WL=e=>t.randomInt(0,e)}catch{WL=t=>Math.floor(Math.random(t))}var IS=new TextEncoder;function RHe(){}var nre=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,sre;nre&&(sre=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!SHe(e)&&!rre(e)&&e.cancel("Response object has been garbage collected").catch(RHe)}));function ire(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Xte(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(()=>IHe(c))},start(){},type:"bytes"}),VL(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${`${WL(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=E=>E.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,m]of t)if(typeof m=="string"){let I=IS.encode(A+`; name="${u(l(E))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=i_.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(I),i+=I.byteLength}else{let I=IS.encode(`${A}; name="${u(l(E))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=i_.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${A}`}else if(ske(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(vT.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:RUt(t)}if((typeof s=="string"||vT.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!Ake(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function HUt(t,e=!1){return t instanceof ReadableStream&&(GX(!vT.isDisturbed(t),"The body has already been consumed."),GX(!t.locked,"The stream is locked.")),lke(t,e)}function qUt(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function GUt(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function YUt(t){return{blob(){return ib(this,r=>{let n=oke(this);return n===null?n="":n&&(n=PUt(n)),new vUt([r],{type:n})},t)},arrayBuffer(){return ib(this,r=>new Uint8Array(r).buffer,t)},text(){return ib(this,ake,t)},json(){return ib(this,VUt,t)},formData(){return ib(this,r=>{let n=oke(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=_Ut(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new ike;return i[ob]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new ike;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return ib(this,r=>new Uint8Array(r),t)}}}function JUt(t){Object.assign(t.prototype,YUt(t))}async function ib(t,e,r){if(MUt.brandCheck(t,r),dke(t))throw new TypeError("Body is unusable: Body has already been read");GUt(t[ob]);let n=TUt(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[ob].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await kUt(t[ob].body,i,s),n.promise)}function dke(t){let e=t[ob].body;return e!=null&&(e.stream.locked||vT.isDisturbed(e.stream))}function VUt(t){return JSON.parse(ake(t))}function oke(t){let e=t[ob].headersList,r=FUt(e);return r==="failure"?null:r}hke.exports={extractBody:lke,safelyExtractBody:HUt,cloneBody:qUt,mixinBody:JUt,streamRegistry:uke,hasFinalizationRegistry:cke,bodyUnusable:dke}});var bke=f((Hyn,yke)=>{"use strict";var xt=B("node:assert"),Yt=mr(),{channels:gke}=zy(),JX=NX(),{RequestContentLengthMismatchError:tB,ResponseContentLengthMismatchError:WUt,RequestAbortedError:Ike,HeadersTimeoutError:zUt,HeadersOverflowError:jUt,SocketError:l_,InformationalError:Ab,BodyTimeoutError:KUt,HTTPParserError:XUt,ResponseExceededMaxSizeError:ZUt}=tn(),{kUrl:Bke,kReset:IA,kClient:jX,kParser:Ys,kBlocking:PT,kRunning:ra,kPending:$Ut,kSize:fke,kWriting:_m,kQueue:ad,kNoRef:LT,kKeepAliveDefaultTimeout:ePt,kHostHeader:tPt,kPendingIdx:rPt,kRunningIdx:Du,kError:xu,kPipelining:c_,kSocket:cb,kKeepAliveTimeoutValue:d_,kMaxHeadersSize:VX,kKeepAliveMaxTimeout:nPt,kKeepAliveTimeoutThreshold:sPt,kHeadersTimeout:iPt,kBodyTimeout:oPt,kStrictContentLength:KX,kMaxRequests:pke,kCounter:aPt,kMaxResponseSize:APt,kOnError:cPt,kResume:Pm,kHTTPContext:Qke}=ps(),mh=u1e(),uPt=Buffer.alloc(0),o_=Buffer[Symbol.species],a_=Yt.addListener,lPt=Yt.removeAllListeners,WX;async function dPt(){let t=process.env.JEST_WORKER_ID?DX():void 0,e;try{e=await WebAssembly.compile(h1e())}catch{e=await WebAssembly.compile(t||DX())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{xt(Hi.ptr===r);let i=n-Ch+Eh.byteOffset;return Hi.onStatus(new o_(Eh.buffer,i,s))||0},wasm_on_message_begin:r=>(xt(Hi.ptr===r),Hi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{xt(Hi.ptr===r);let i=n-Ch+Eh.byteOffset;return Hi.onHeaderField(new o_(Eh.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{xt(Hi.ptr===r);let i=n-Ch+Eh.byteOffset;return Hi.onHeaderValue(new o_(Eh.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(xt(Hi.ptr===r),Hi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{xt(Hi.ptr===r);let i=n-Ch+Eh.byteOffset;return Hi.onBody(new o_(Eh.buffer,i,s))||0},wasm_on_message_complete:r=>(xt(Hi.ptr===r),Hi.onMessageComplete()||0)}})}var zX=null,XX=dPt();XX.catch();var Hi=null,Eh=null,A_=0,Ch=null,hPt=0,UT=1,ub=2|UT,u_=4|UT,ZX=8|hPt,$X=class{constructor(e,r,{exports:n}){xt(Number.isFinite(e[VX])&&e[VX]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(mh.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[tPt],i?p+=`connection: upgrade\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:f=!0}let g=IS.encode(`--${c}--\r
`);d.push(g),i+=g.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(Xte(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(!rre(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&&(VL(!RI.isDisturbed(t),"The body has already been consumed."),VL(!t.locked,"The stream is locked.")),ire(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 Kp(this,r=>{let n=ere(this);return n===null?n="":n&&(n=THe(n)),new wHe([r],{type:n})},t)},arrayBuffer(){return Kp(this,r=>new Uint8Array(r).buffer,t)},text(){return Kp(this,tre,t)},json(){return Kp(this,MHe,t)},formData(){return Kp(this,r=>{let n=ere(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 Zte;return i[$p]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Zte;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 Kp(this,r=>new Uint8Array(r),t)}}}function FHe(t){Object.assign(t.prototype,_He(t))}async function Kp(t,e,r){if(QHe.brandCheck(t,r),ore(t))throw new TypeError("Body is unusable: Body has already been read");vHe(t[$p]);let n=yHe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[$p].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await BHe(t[$p].body,i,s),n.promise)}function ore(t){let e=t[$p].body;return e!=null&&(e.stream.locked||RI.isDisturbed(e.stream))}function MHe(t){return JSON.parse(tre(t))}function ere(t){let e=t[$p].headersList,r=bHe(e);return r==="failure"?null:r}are.exports={extractBody:ire,safelyExtractBody:DHe,cloneBody:kHe,mixinBody:FHe,streamRegistry:sre,hasFinalizationRegistry:nre,bodyUnusable:ore}});var bre=C((G7t,Bre)=>{"use strict";var Me=Q("node:assert"),Pe=lt(),{channels:cre}=Pp(),JL=TL(),{RequestContentLengthMismatchError:Fh,ResponseContentLengthMismatchError:Are,RequestAbortedError:mre,InvalidArgumentError:LHe,HeadersTimeoutError:UHe,HeadersOverflowError:PHe,SocketError:Zp,InformationalError:em,BodyTimeoutError:OHe,HTTPParserError:HHe,ResponseExceededMaxSizeError:GHe}=_t(),{kUrl:Ere,kReset:Xs,kClient:QS,kParser:lr,kBlocking:vI,kRunning:an,kPending:Cre,kSize:ure,kWriting:Sl,kQueue:wa,kNoRef:DI,kKeepAliveDefaultTimeout:qHe,kHostHeader:YHe,kPendingIdx:VHe,kRunningIdx:Bo,kError:Ss,kPipelining:wS,kSocket:Lh,kKeepAliveTimeoutValue:NS,kMaxHeadersSize:zL,kKeepAliveMaxTimeout:WHe,kKeepAliveTimeoutThreshold:JHe,kHeadersTimeout:zHe,kBodyTimeout:jHe,kStrictContentLength:$L,kMaxRequests:lre,kCounter:KHe,kMaxResponseSize:$He,kOnError:dre,kResume:nu,kHTTPContext:Ire}=Br(),Di=ste(),hre=Buffer.alloc(0),yS=Buffer[Symbol.species],BS=Pe.addListener,XHe=Pe.removeAllListeners,Uh=Symbol("kIdleSocketValidation"),Mh=Symbol("kIdleSocketValidationTimeout"),tU=Symbol("kSocketUsed"),jL;async function ZHe(){let t=process.env.JEST_WORKER_ID?DL():void 0,e;try{e=await WebAssembly.compile(ate())}catch{e=await WebAssembly.compile(t||DL())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Me(Lr.ptr===r);let i=n-Cc+Ec.byteOffset;return Lr.onStatus(new yS(Ec.buffer,i,s))||0},wasm_on_message_begin:r=>(Me(Lr.ptr===r),Lr.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Me(Lr.ptr===r);let i=n-Cc+Ec.byteOffset;return Lr.onHeaderField(new yS(Ec.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Me(Lr.ptr===r);let i=n-Cc+Ec.byteOffset;return Lr.onHeaderValue(new yS(Ec.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Me(Lr.ptr===r),Lr.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Me(Lr.ptr===r);let i=n-Cc+Ec.byteOffset;return Lr.onBody(new yS(Ec.buffer,i,s))||0},wasm_on_message_complete:r=>(Me(Lr.ptr===r),Lr.onMessageComplete()||0)}})}var KL=null,XL=ZHe();XL.catch();var Lr=null,Ec=null,bS=0,Cc=null,e9e=0,kI=1,tm=2|kI,SS=4|kI,ZL=8|e9e,eU=class{constructor(e,r,{exports:n}){Me(Number.isFinite(e[zL])&&e[zL]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Di.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[YHe],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[c_]&&!h[IA]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return gke.sendHeaders.hasSubscribers&&gke.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Eke(g,null,t,e,h,u,p,l):Yt.isBuffer(A)?Eke(g,A,t,e,h,u,p,l):Yt.isBlobLike(A)?typeof A.stream=="function"?Cke(g,A.stream(),t,e,h,u,p,l):CPt(g,A,t,e,h,u,p,l):Yt.isStream(A)?EPt(g,A,t,e,h,u,p,l):Yt.isIterable(A)?Cke(g,A,t,e,h,u,p,l):xt(!1),!0}function EPt(t,e,r,n,s,i,o,a){xt(i!==0||r[ra]===0,"stream body cannot be pipelined");let A=!1,c=new h_({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Yt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new Ike;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,xt(s.destroyed||s[_m]&&r[ra]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Yt.destroy(e,g):Yt.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function Eke(t,e,r,n,s,i,o,a){try{e?Yt.isBuffer(e)&&(xt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[IA]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(xt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Pm]()}catch(A){t(A)}}async function CPt(t,e,r,n,s,i,o,a){xt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new tB;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[IA]=!0),r[Pm]()}catch(A){t(A)}}async function Cke(t,e,r,n,s,i,o,a){xt(i!==0||r[ra]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{xt(A===null),s[xu]?h(s[xu]):A=d});s.on("close",c).on("drain",c);let l=new h_({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[xu])throw s[xu];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var h_=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[_m]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[xu])throw r[xu];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[KX])throw new tB;process.emitWarning(new tB)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[IA]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Ys].timeout&&r[Ys].timeoutType===ub&&r[Ys].timeout.refresh&&r[Ys].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[_m]=!1,e[xu])throw e[xu];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[KX])throw new tB;process.emitWarning(new tB)}e[Ys].timeout&&e[Ys].timeoutType===ub&&e[Ys].timeout.refresh&&e[Ys].timeout.refresh(),n[Pm]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[_m]=!1,e&&(xt(n[ra]<=1,"pipeline should only contain this request"),s(e))}};yke.exports=gPt});var kke=f((qyn,Tke)=>{"use strict";var Tu=B("node:assert"),{pipeline:IPt}=B("node:stream"),wr=mr(),{RequestContentLengthMismatchError:eZ,RequestAbortedError:wke,SocketError:_T,InformationalError:tZ}=tn(),{kUrl:g_,kReset:p_,kClient:lb,kRunning:m_,kPending:BPt,kQueue:Om,kPendingIdx:rZ,kRunningIdx:Ad,kError:ud,kSocket:io,kStrictContentLength:QPt,kOnError:nZ,kMaxConcurrentStreams:xke,kHTTP2Session:cd,kResume:Hm,kSize:yPt,kHTTPContext:bPt}=ps(),Of=Symbol("open streams"),Nke,Ske=!1,f_;try{f_=B("node:http2")}catch{f_={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:wPt,HTTP2_HEADER_METHOD:NPt,HTTP2_HEADER_PATH:SPt,HTTP2_HEADER_SCHEME:RPt,HTTP2_HEADER_CONTENT_LENGTH:DPt,HTTP2_HEADER_EXPECT:xPt,HTTP2_HEADER_STATUS:TPt}}=f_;function kPt(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function FPt(t,e){t[io]=e,Ske||(Ske=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=f_.connect(t[g_],{createConnection:()=>e,peerMaxConcurrentStreams:t[xke]});r[Of]=0,r[lb]=t,r[io]=e,wr.addListener(r,"error",vPt),wr.addListener(r,"frameError",LPt),wr.addListener(r,"end",UPt),wr.addListener(r,"goaway",PPt),wr.addListener(r,"close",function(){let{[lb]:s}=this,{[io]:i}=s,o=this[io][ud]||this[ud]||new _T("closed",wr.getSocketInfo(i));if(s[cd]=null,s.destroyed){Tu(s[BPt]===0);let a=s[Om].splice(s[Ad]);for(let A=0;A<a.length;A++){let c=a[A];wr.errorRequest(s,c,o)}}}),r.unref(),t[cd]=r,e[cd]=r,wr.addListener(e,"error",function(s){Tu(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ud]=s,this[lb][nZ](s)}),wr.addListener(e,"end",function(){wr.destroy(this,new _T("other side closed",wr.getSocketInfo(this)))}),wr.addListener(e,"close",function(){let s=this[ud]||new _T("closed",wr.getSocketInfo(this));t[io]=null,this[cd]!=null&&this[cd].destroy(s),t[rZ]=t[Ad],Tu(t[m_]===0),t.emit("disconnect",t[g_],[t],s),t[Hm]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return OPt(t,...s)},resume(){MPt(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function MPt(t){let e=t[io];e?.destroyed===!1&&(t[yPt]===0&&t[xke]===0?(e.unref(),t[cd].unref()):(e.ref(),t[cd].ref()))}function vPt(t){Tu(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[io][ud]=t,this[lb][nZ](t)}function LPt(t,e,r){if(r===0){let n=new tZ(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[io][ud]=n,this[lb][nZ](n)}}function UPt(){let t=new _T("other side closed",wr.getSocketInfo(this[io]));this.destroy(t),wr.destroy(this[io],t)}function PPt(t){let e=this[ud]||new _T(`HTTP/2: "GOAWAY" frame received with code ${t}`,wr.getSocketInfo(this)),r=this[lb];if(r[io]=null,r[bPt]=null,this[cd]!=null&&(this[cd].destroy(e),this[cd]=null),wr.destroy(this[io],e),r[Ad]<r[Om].length){let n=r[Om][r[Ad]];r[Om][r[Ad]++]=null,wr.errorRequest(r,n,e),r[rZ]=r[Ad]}Tu(r[m_]===0),r.emit("disconnect",r[g_],[r],e),r[Hm]()}function _Pt(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function OPt(t,e){let r=t[cd],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return wr.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let w=0;w<c.length;w+=2){let H=c[w+0],z=c[w+1];if(Array.isArray(z))for(let F=0;F<z.length;F++)l[H]?l[H]+=`,${z[F]}`:l[H]=z[F];else l[H]=z}let d,{hostname:h,port:g}=t[g_];l[wPt]=i||`${h}${g?`:${g}`:""}`,l[NPt]=n;let p=w=>{e.aborted||e.completed||(w=w||new wke,wr.errorRequest(t,e,w),d!=null&&wr.destroy(d,w),wr.destroy(u,w),t[Om][t[Ad]++]=null,t[Hm]())};try{e.onConnect(p)}catch(w){wr.errorRequest(t,e,w)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Of],t[Om][t[Ad]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Of],t[Om][t[Ad]++]=null}),d.once("close",()=>{r[Of]-=1,r[Of]===0&&r.unref()}),!0;l[SPt]=s,l[RPt]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=wr.bodyLength(u);if(wr.isFormDataLike(u)){Nke??=ab().extractBody;let[w,H]=Nke(u);l["content-type"]=H,u=w.stream,m=w.length}if(m==null&&(m=e.contentLength),(m===0||!C)&&(m=null),_Pt(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[QPt])return wr.errorRequest(t,e,new eZ),!1;process.emitWarning(new eZ)}m!=null&&(Tu(u,"no body must not have content length"),l[DPt]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[xPt]="100-continue",d=r.request(l,{endStream:I,signal:A}),d.once("cont Line truncated
`,this[d_t]=A??3e5,this[l_t]=s??3e5,this[h_t]=I??!0,this[g_t]=w,this[aZ]=z,this[Gm]=null,this[C_t]=W>-1?W:-1,this[B_t]=oe??100,this[gi]=null,this[ld]=[],this[qf]=0,this[dd]=0,this[GT]=he=>cZ(this,he),this[I_t]=he=>Yke(this,he)}get pipelining(){return this[B_]}set pipelining(e){this[B_]=e,this[GT](!0)}get[VT](){return this[ld].length-this[dd]}get[JT](){return this[dd]-this[qf]}get[YT](){return this[ld].length-this[qf]}get[s_t](){return!!this[gi]&&!this[hb]&&!this[gi].destroyed}get[oZ](){return!!(this[gi]?.busy(null)||this[YT]>=(Gke(this)||1)||this[VT]>0)}[n_t](e){Jke(this),this.once("connect",e)}[E_t](e,r){let n=e.origin||this[Bh].origin,s=new XPt(n,e,r);return this[ld].push(s),this[nB]||(rB.bodyLength(s.body)==null&&rB.isIterable(s.body)?(this[nB]=1,queueMicrotask(()=>cZ(this))):this[GT](!0)),this[nB]&&this[Ym]!==2&&this[oZ]&&(this[Ym]=2),this[Ym]<2}async[p_t](){return new Promise(e=>{this[YT]?this[Gm]=e:e(null)})}async[m_t](e){return new Promise(r=>{let n=this[ld].splice(this[dd]);for(let i=0;i<n.length;i++){let o=n[i];rB.errorRequest(this,o,e)}let s=()=>{this[Gm]&&(this[Gm](),this[Gm]=null),r(null)};this[gi]?(this[gi].destroy(e,s),this[gi]=null):queueMicrotask(s),this[GT]()})}},b_t=I_();function Yke(t,e){if(t[JT]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Hf(t[dd]===t[qf]);let r=t[ld].splice(t[qf]);for(let n=0;n<r.length;n++){let s=r[n];rB.errorRequest(t,s,e)}Hf(t[YT]===0)}}async function Jke(t){Hf(!t[hb]),Hf(!t[gi]);let{host:e,hostname:r,protocol:n,port:s}=t[Bh];if(r[0]==="["){let i=r.indexOf("]");Hf(i!==-1);let o=r.substring(1,i);Hf(qke.isIP(o)),r=o}t[hb]=!0,db.beforeConnect.hasSubscribers&&db.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[gi]?.version,servername:t[qm],localAddress:t[qT]},connector:t[HT]});try{let i=await new Promise((o,a)=>{t[HT]({host:e,hostname:r,protocol:n,port:s,servername:t[qm],localAddress:t[qT]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){rB.destroy(i.on("error",Oke),new e_t);return}Hf(i);try{t[gi]=i.alpnProtocol==="h2"?await y_t(t,i):await Q_t(t,i)}catch(o){throw i.destroy().on("error",Oke),o}t[hb]=!1,i[f_t]=0,i[aZ]=t[aZ],i[r_t]=t,i[o_t]=null,db.connected.hasSubscribers&&db.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[gi]?.version,servername:t[qm],localAddress:t[qT]},connector:t[HT],socket:i}),t.emit("connect",t[Bh],[t])}catch(i){if(t.destroyed)return;if(t[hb]=!1,db.connectError.hasSubscribers&&db.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[gi]?.version,servername:t[qm],localAddress:t[qT]},connector:t[HT],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Hf(t[JT]===0);t[VT]>0&&t[ld][t[dd]].servername===t[qm];){let o=t[ld][t[dd]++];rB.errorRequest(t,o,i)}else Yke(t,i);t.emit("connectionError",t[Bh],[t],i)}t[GT]()}function Hke(t){t[Ym]=0,t.emit("drain",t[Bh],[t])}function cZ(t,e){t[nB]!==2&&(t[nB]=2,w_t(t,e),t[nB]=0,t[qf]>256&&(t[ld].splice(0,t[qf]),t[dd]-=t[qf],t[qf]=0))}function w_t(t,e){for(;;){if(t.destroyed){Hf(t[VT]===0);return}if(t[Gm]&&!t[YT]){t[Gm](),t[Gm]=null;return}if(t[gi]&&t[gi].resume(),t[oZ])t[Ym]=2;else if(t[Ym]===2){e?(t[Ym]=1,queueMicrotask(()=>Hke(t))):Hke(t);continue}if(t[VT]===0||t[JT]>=(Gke(t)||1))return;let r=t[ld][t[dd]];if(t[Bh].protocol==="https:"&&t[qm]!==r.servername){if(t[JT]>0)return;t[qm]=r.servername,t[gi]?.destroy(new $Pt("servername changed"),()=>{t[gi]=null,cZ(t)})}if(t[hb])return;if(!t[gi]){Jke(t);return}if(t[gi].destroyed||t[gi].busy(r))return;!r.aborted&&t[gi].write(r)?t[dd]++:t[ld].splice(t[dd],1)}}Vke.exports=AZ});var uZ=f((Wyn,Wke)=>{"use strict";var Q_=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Wke.exports=class{constructor(){this.head=this.tail=new Q_}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Q_),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var jke=f((zyn,zke)=>{var{kFree:N_t,kConnected:S_t,kPending:R_t,kQueued:D_t,kRunning:x_t,kSize:T_t}=ps(),sB=Symbol("pool"),lZ=class{constructor(e){this[sB]=e}get connected(){return this[sB][S_t]}get free(){return this[sB][N_t]}get pending(){return this[sB][R_t]}get queued(){return this[sB][D_t]}get running(){return this[sB][x_t]}get size(){return this[sB][T_t]}};zke.exports=lZ});var mZ=f((jyn,i2e)=>{"use strict";var k_t=Zy(),F_t=uZ(),{kConnected:dZ,kSize:Kke,kRunning:Xke,kPending:Zke,kQueued:WT,kBusy:M_t,kFree:v_t,kUrl:L_t,kClose:U_t,kDestroy:P_t,kDispatch:__t}=ps(),O_t=jke(),BA=Symbol("clients"),_a=Symbol("needDrain"),zT=Symbol("queue"),hZ=Symbol("closed resolve"),gZ=Symbol("onDrain"),$ke=Symbol("onConnect"),e2e=Symbol("onDisconnect"),t2e=Symbol("onC Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};lMe.exports=m$});var O_=f((ybn,pMe)=>{"use strict";var hMe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:dqt}=tn(),hqt=pb();fMe()===void 0&&gMe(new hqt);function gMe(t){if(!t||typeof t.dispatch!="function")throw new dqt("Argument agent must implement Agent");Object.defineProperty(globalThis,hMe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function fMe(){return globalThis[hMe]}pMe.exports={setGlobalDispatcher:gMe,getGlobalDispatcher:fMe}});var H_=f((wbn,mMe)=>{"use strict";mMe.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var CMe=f((Nbn,EMe)=>{"use strict";var gqt=C_();EMe.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new gqt(r,o,s,i);return r(a,A)}}});var BMe=f((Sbn,IMe)=>{"use strict";var fqt=x_();IMe.exports=t=>e=>function(n,s){return e(n,new fqt({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var yMe=f((Rbn,QMe)=>{"use strict";var pqt=mr(),{InvalidArgumentError:mqt,RequestAbortedError:Eqt}=tn(),Cqt=H_(),E$=class extends Cqt{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new mqt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=pqt.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Eqt(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Iqt({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new E$({maxSize:i},s);return e(n,o)}}QMe.exports=Iqt});var NMe=f((Dbn,wMe)=>{"use strict";var{isIP:Bqt}=B("node:net"),{lookup:Qqt}=B("node:dns"),yqt=H_(),{InvalidArgumentError:Nb,InformationalError:bqt}=tn(),bMe=Math.pow(2,31)-1,C$=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new bqt("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){Qqt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===bMe?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===bMe?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new I$(this,e,r)}},I$=class extends yqt{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":iUe(i)&&(r[s]=i);break;case"id":oUe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&iUe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&oUe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};aUe.exports={EventSourceStream:iee}});var pUe=f((own,fUe)=>{"use strict";var{pipeline:k4t}=B("node:stream"),{fetching:F4t}=a1(),{makeRequest:M4t}=Db(),{webidl:Wf}=Po(),{EventSourceStream:v4t}=AUe(),{parseMIMEType:L4t}=CA(),{createFastMessageEvent:U4t}=vb(),{isNetworkError:cUe}=i1(),{delay:P4t}=nee(),{kEnumerableProperty:CB}=mr(),{environmentSettingsObject:uUe}=Cc(),lUe=!1,dUe=3e3,C1=0,hUe=1,I1=2,_4t="anonymous",O4t="use-credentials",Ob=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=C1;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Wf.util.markAsUncloneable(this);let n="EventSource constructor";Wf.argumentLengthCheck(arguments,1,n),lUe||(lUe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Wf.converters.USVString(e,n,"url"),r=Wf.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:dUe};let s=uUe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=_4t;r.withCredentials&&(o=O4t,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=uUe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=M4t(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===I1)return;this.#r=C1;let e={request:this.#s,dispatcher:this.#a},r=n=>{cUe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(cUe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?L4t(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=hUe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new v4t({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(U4t(A.type,A.options))}});k4t(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=F4t(e)}async#c(){this.#r!==I1&&(this.#r=C1,this.dispatchEvent(new Event("error")),await P4t(this.#o.reconnectionTime),this.#r===C1&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Wf.brandCheck(this,t),this.#r!==I1&&(this.#r=I1,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},gUe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:C1,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:hUe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:I1,writable:!1}};Object.defineProperties(Ob,gUe);Object.defineProperties(Ob.prototype,gUe);Object.defineProperties(Ob.prototype,{close:CB,onerror:CB,onmessage:CB,onopen:CB,readyState:CB,url:CB,withCredentials:CB});Wf.converters.EventSourceInitDict=Wf.dictionaryConverter([{key:"withCredentials",converter:Wf.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Wf.converters.any}]);fUe.exports={EventSource:Ob,defaultReconnectionTime:dUe}});var IUe=f((awn,Mt)=>{"use strict";var H4t=gb(),mUe=wT(),q4t=fb(),G4t=g2e(),Y4t=pb(),J4t=xZ(),V4t=P2e(),W4t=Y2e(),EUe=tn(),DO=mr(),{InvalidArgumentError:RO}=EUe,Hb=xFe(),z4t=ST(),j4t=l$(),K4t=dMe(),X4t=g$(),Z4t=ZZ(),$4t=x_(),{getGlobalDispatcher:CUe,setGlobalDispatcher:eYt}=O_(),tYt=H_(),rYt=C_(),nYt=I_();Object.assign(mUe.prototype,Hb);Mt.exports.Dispatcher=mUe;Mt.exports.Client=H4t;Mt.exports.Pool=q4t;Mt.exports.BalancedPool=G4t;Mt.exports.Agent=Y4t;Mt.exports.ProxyAgent=J4t;Mt.exports.EnvHttpProxyAgent=V4t;Mt.expo Line truncated
\r
`),j5t=/\r\n/g,K5t=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function Jb(t){mPe.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=pPe(t,"maxHeaderPairs",2e3),this.maxHeaderSize=pPe(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new W5t(z5t),this.ss.on("info",function(r,n,s,i){n&&!e.maxed&&(e.nread+i-s>=e.maxHeaderSize?(i=e.maxHeaderSize-e.nread+s,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=i-s,e.buffer+=n.toString("binary",s,i)),r&&e._finish()})}V5t(Jb,mPe);Jb.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};Jb.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};Jb.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};Jb.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(j5t),e=t.length,r,n;for(var s=0;s<e;++s){if(t[s].length===0)continue;if((t[s][0]===" "||t[s][0]===" ")&&n){this.header[n][this.header[n].length-1]+=t[s];continue}let i=t[s].indexOf(":");if(i===-1||i===0)return;if(r=K5t.exec(t[s]),n=r[1].toLowerCase(),this.header[n]=this.header[n]||[],this.header[n].push(r[2]||""),++this.npairs===this.maxHeaderPairs)break}};EPe.exports=Jb});var Wee=f((Zwn,BPe)=>{"use strict";var Vee=B("node:stream").Writable,X5t=B("node:util").inherits,Z5t=Yee(),IPe=gPe(),$5t=CPe(),e6t=45,t6t=Buffer.from("-"),r6t=Buffer.from(`\r
`),n6t=function(){};function md(t){if(!(this instanceof md))return new md(t);if(Vee.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new $5t(t),this._hparser.on("header",function(r){e._inHeader=!1,e._part.emit("header",r)})}X5t(md,Vee);md.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let r=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(r+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else Vee.prototype.emit.apply(this,arguments)};md.prototype._write=function(t,e,r){if(!this._hparser&&!this._bparser)return r();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new IPe(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let n=this._hparser.push(t);if(!this._inHeader&&n!==void 0&&n<t.length)t=t.slice(n);else return r()}this._firstWrite&&(this._bparser.push(r6t),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=r:r()};md.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};md.prototype.setBoundary=function(t){let e=this;this._bparser=new Z5t(`\r
--`+t),this._bparser.on("info",function(r,n,s,i){e._oninfo(r,n,s,i)})};md.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",n6t),this._part.resume())};md.prototype._oninfo=function(t,e,r,n){let s,i=this,o=0,a,A=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&r+o<n;)if(e[r+o]===e6t)++o,++this._dashes;else{this._dashes&&(s=t6t),this._dashes=0;break}if(this._dashes===2&&(r+o<n&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(r+o,n)),this.reset(),this._finished=!0,i._parts===0&&(i._realFinish=!0,i.emit("finish"),i._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new IPe(this._partOpts),this._part._read=function(c){i._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&r<n&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(s&&(A=this._part.push(s)),A=this._part.push(e.slice(r,n)),A||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(s&&this._hparser.push(s),a=this._hparser.push(e.slice(r,n)),!this._inHeader&&a!==void 0&&a<n&&this._oninfo(!1,e,r+a,n))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:r!==n&&(++this._parts,this._part.on("end",function(){--i._parts===0&&(i._finished?(i._realFinish=!0,i.emit("finish"),i._realFinish=!1):i._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};md.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};BPe.exports=md});var YO=f((zee,bPe)=>{"use strict";var QPe=new TextDecoder("utf-8"),yPe=new Map([["utf-8",QPe],["utf8",QPe]]);function s6t(t){let e;for(;;)switch(t){case"utf-8":case"utf8":return D1.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return D1.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return D1.utf16le;case"base64":return D1.base64;default:if(e===void 0){e=!0,t=t.toLowerCase();continue}return D1.other.bind(t)}}var D1={utf8:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.utf8Slice(0,t.length)),latin1:(t,e)=>t.length===0?"":typeof t=="string"?t:t.latin1Slice(0,t.length),utf16le:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.ucs2Slice(0,t.length)),base64:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.base64Slice(0,t.length)),other:(t,e)=>{if(t.length===0)return"";if(typeof t=="string"&&(t=Buffer.from(t,e)),yPe.has(zee.toString()))try{return yPe.get(zee).decode(t)}catch{}return typeof t=="string"?t:t.toString()}};function i6t(t,e,r){return t&&s6t(r)(t,e)}bPe.exports=i6t});var Kee=f(($wn,DPe)=>{"use strict";var JO=YO(),wPe=/%[a-fA-F0-9][a-fA-F0-9]/g,o6t={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xLine truncated
`))}function i9t(t,e){let{headersList:r}=e,n=(r.get("referrer-policy")??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(J6t.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function o9t(){return"allowed"}function a9t(){return"success"}function A9t(){return"success"}function c9t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}function u9t(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&ste(t.origin)&&!ste(k1(t))&&(e=null);break;case"same-origin":KO(t,k1(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}function l9t(t){return z6t.now()}function d9t(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function h9t(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function g9t(t){return{referrerPolicy:t.referrerPolicy}}function f9t(t){let e=t.referrerPolicy;Kb(e);let r=null;if(t.referrer==="client"){let a=W6t();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=rte(r),s=rte(r,!0);n.toString().length>4096&&(n=s);let i=KO(t,n),o=T1(n)&&!T1(t.url);switch(e){case"origin":return s??rte(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=k1(t);return KO(n,a)?n:T1(n)&&!T1(a)?"no-referrer":s}default:return o?"no-referrer":s}}function rte(t,e){return Kb(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function T1(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function p9t(t,e){if(jO===void 0)return!0;let r=r_e(e);if(r==="no metadata"||r.length===0)return!0;let n=E9t(r),s=C9t(r,n);for(let i of s){let o=i.algo,a=i.hash,A=jO.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),I9t(A,a))return!0}return!1}var m9t=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function r_e(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=m9t.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();ZPe.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function E9t(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function C9t(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}function I9t(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function B9t(t){}function KO(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Q9t(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function y9t(t){return t.controller.state==="aborted"}function b9t(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}var ite={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(ite,null);function w9t(t){return ite[t.toLowerCase()]??t}function N9t(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Kb(typeof e=="string"),e}var S9t=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function R9t(t,e,r){let n={index:0,kind:r,target:t},s={next(){if(Object.getPrototypeOf(this)!==s)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:i,kind:o,target:a}=n,A=a(),c=A.length;if(i>=c)return{value:void 0,done:!0};let u=A[i];return n.index=i+1,D9t(u,o)},[Symbol.toStringTag]:`${e} Iterator`};return Object.setPrototypeOf(s,S9t),Object.setPrototypeOf({},s)}function D9t(t,e){let r;switch(e){case"key":{r=t[0];brea Line truncated
`||t===" "||t===" "}function ote(t,e=!0,r=!0){let n=0,s=t.length-1;if(e)for(;n<t.length&&c_e(t[n]);n++);if(r)for(;s>0&&c_e(t[s]);s--);return t.slice(n,s+1)}function u_e(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}function z9t(t,e=!0,r=!0){let n=0,s=t.length-1;if(e)for(;n<t.length&&u_e(t[n]);n++);if(r)for(;s>0&&u_e(t[s]);s--);return t.slice(n,s+1)}g_e.exports={dataURLProcessor:Y9t,URLSerializer:l_e,collectASequenceOfCodePoints:$O,collectASequenceOfCodePointsFast:Xb,stringPercentDecode:d_e,parseMIMEType:ate,collectAnHTTPQuotedString:h_e,serializeAMimeType:W9t}});var eH=f((lNn,C_e)=>{"use strict";var{Blob:m_e,File:f_e}=B("buffer"),{types:Ate}=B("util"),{kState:Sc}=Kf(),{isBlobLike:E_e}=Pu(),{webidl:fn}=Ha(),{parseMIMEType:j9t,serializeAMimeType:K9t}=Ed(),{kEnumerableProperty:p_e}=qr(),X9t=new TextEncoder,F1=class t extends m_e{constructor(e,r,n={}){fn.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=fn.converters["sequence<BlobPart>"](e),r=fn.converters.USVString(r),n=fn.converters.FilePropertyBag(n);let s=r,i=n.type,o;e:{if(i){if(i=j9t(i),i==="failure"){i="";break e}i=K9t(i).toLowerCase()}o=n.lastModified}super(Z9t(e,n),{type:i}),this[Sc]={name:s,lastModified:o,type:i}}get name(){return fn.brandCheck(this,t),this[Sc].name}get lastModified(){return fn.brandCheck(this,t),this[Sc].lastModified}get type(){return fn.brandCheck(this,t),this[Sc].type}},cte=class t{constructor(e,r,n={}){let s=r,i=n.type,o=n.lastModified??Date.now();this[Sc]={blobLike:e,name:s,type:i,lastModified:o}}stream(...e){return fn.brandCheck(this,t),this[Sc].blobLike.stream(...e)}arrayBuffer(...e){return fn.brandCheck(this,t),this[Sc].blobLike.arrayBuffer(...e)}slice(...e){return fn.brandCheck(this,t),this[Sc].blobLike.slice(...e)}text(...e){return fn.brandCheck(this,t),this[Sc].blobLike.text(...e)}get size(){return fn.brandCheck(this,t),this[Sc].blobLike.size}get type(){return fn.brandCheck(this,t),this[Sc].blobLike.type}get name(){return fn.brandCheck(this,t),this[Sc].name}get lastModified(){return fn.brandCheck(this,t),this[Sc].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(F1.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:p_e,lastModified:p_e});fn.converters.Blob=fn.interfaceConverter(m_e);fn.converters.BlobPart=function(t,e){if(fn.util.Type(t)==="Object"){if(E_e(t))return fn.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||Ate.isAnyArrayBuffer(t))return fn.converters.BufferSource(t,e)}return fn.converters.USVString(t,e)};fn.converters["sequence<BlobPart>"]=fn.sequenceConverter(fn.converters.BlobPart);fn.converters.FilePropertyBag=fn.dictionaryConverter([{key:"lastModified",converter:fn.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:fn.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=fn.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function Z9t(t,e){let r=[];for(let n of t)if(typeof n=="string"){let s=n;e.endings==="native"&&(s=$9t(s)),r.push(X9t.encode(s))}else Ate.isAnyArrayBuffer(n)||Ate.isTypedArray(n)?n.buffer?r.push(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)):r.push(new Uint8Array(n)):E_e(n)&&r.push(n);return r}function $9t(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}function eJt(t){return f_e&&t instanceof f_e||t instanceof F1||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}C_e.exports={File:F1,FileLike:cte,isFileLike:eJt}});var rH=f((dNn,b_e)=>{"use strict";var{isBlobLike:tH,toUSVString:tJt,makeIterator:ute}=Pu(),{kState:ia}=Kf(),{File:y_e,FileLike:I_e,isFileLike:rJt}=eH(),{webidl:wn}=Ha(),{Blob:nJt,File:lte}=B("buffer"),B_e=lte??y_e,Zb=class t{constructor(e){if(e!==void 0)throw wn.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[ia]=[]}append(e,r,n=void 0){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!tH(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=wn.converters.USVString(e),r=tH(r)?wn.converters.Blob(r,{strict:!1}):wn.converters.USVString(r),n=arguments.length===3?wn.converters.USVString(n):void 0;let s=Q_e(e,r,n);this[ia].push(s)}delete(e){wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=wn.converters.USVString(e),this[ia]=this[ia].filter(r=>r.name!==e)}get(e){wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=wn.converters.USVString(e);let r=this[ia].findIndex(n=>n.name===e);return r===-1?null:this[ia][r].value}getAll(e){return wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=wn.converters.USVString(e),this[ia].filter(r=>r.name===e).map(r=>r.value)}has(e){return wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=wn.converters.USVString(e),this[ia].findIndex(r=>r.name===e)!==-1}set(e,r,n=void 0){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!tH(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=wn.converters.USVString(e),r=tH(r)?wn.converters.Blob(r,{strict:!1}):wn.converters.USVString(r),n=arguments.length===3?tJt(n):void 0;let s=Q_e(e,r,n),i=this[ia].findIndex(o=>o.name===e);i!==-1?this[ia]=[...this[ia].slice(0,i),s,...this[ia].slice(i+1).filter(o=>o.name!==e)]:this[ia].push(s)}entries(){return wn.brandCheck(this,t),ute(()=>this[ia].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return wn.brandCheck(this,t),ute(()=>this[ia].map(e=>[e.name,e.value]),"FormData","key")}values(){return wn.brandCheck(this,t),ute(()=>this[ia].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,r=globalThis){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[n,s]of this)e.apply(r,[s,n,this])}};Zb.prototype[Symbol.iterator]=Zb.prototype.entries;Object.defineProperties(Zb.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function Q_e(t,e,r){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(rJt(e)||(e=e instanceof nJt?new B_e([e],"blob",{type:e.type}):new I_e(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=lte&&e instanceof lte||e instanceof y_e?new B_e([e],r,n):new I_e(e,r,n)}return{name:t,value:e}}b_e.exports={FormData:Zb}});var M1=f((hNn,F_e)=>{"use strict";var sJt=qPe(),$b=qr(),{ReadableStreamFrom:iJt,isBlobLike:w_e,isReadableStreamLike:oJt,readableStreamClose:aJt,createDeferredPromise:AJt,fullyReadBody:cJt}=Pu(),{FormData:N_e}=rH(),{kState:Zf}=Kf(),{webidl:dte}=Ha(),{DOMException:D_e,structuredClone:uJt}=AE(),{Blob:lJt,File:dJt}=B("buffer"),{kBodyUsed:hJt}=ts(),hte=B("assert"),{isErrored:gJt}=qr(),{isUint8Array:x_e,isArrayBuffer:fJt}=B("util/types"),{File:pJt}=eH(),{parseMIMEType:mJt,serializeAMimeType:EJt}=Ed(),gte;try{let t=B("node:crypto");gte=e=>t.randomInt(0,e)}catch{gte=t=>Math.floor(Math.random(t))}var Xf=globalThis.ReadableStream,S_e=dJt??pJt,nH=new TextEncoder,CJt=new TextDecoder;function T_e(t,e=!1){Xf||(Xf=B("stream/web").ReadableStream);let r=null;t instanceof Xf?r=t:w_e(t)?r=t.stream():r=new Xf({async pull(A){A.enqueue(typeof s=="string"?nH.encode(s):s),queueMicrotask(()=>aJt(A))},start(){},type:void 0}),hte(oJt(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(fJt(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if($b.isFormDataLike(t)){let A=`----formdata-undici-0${`${gte(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=nH.encode(c+`; name="${u(l(C))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=nH.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=nH.encode(`--${A}--`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o="multipart/form-data; boundary="+A}else if(w_e(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if($b.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof Xf?t:iJt(t)}if((typeof s=="string"||$b.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new Xf({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();return l?queueMicrotask(()=>{c.close()}):gJt(r)||c.enqueue(new Uint8Array(u)),c.desiredSize>0},async cancel(c){await A.return()},type:void 0})}return[{stream:r,source:s,length:i},o]}function IJt(t,e=!1){return Xf||(Xf=B("stream/web").ReadableStream),t instanceof Xf&&(hte(!$b.isDisturbed(t),"The body has already been consumed."),hte(!t.locked,"The stream is locked.")),T_e(t,e)}function BJt(t){let[e,r]=t.stream.tee(),n=uJt(r,{transfer:[r]}),[,s]=n.tee();return t.stream=e,{stream:s,length:t.length,source:t.source}}async function*R_e(t){if(t)if(x_e(t))yield t;else{let e=t.stream;if($b.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[hJt]=!0,yield*e}}function fte(t){if(t.aborted)throw new D_e("The operation was aborted.","AbortError")}function QJt(t){return{blob(){return sH(this,r=>{let n=NJt(this);return n==="failure"?n="":n&&(n=EJt(n)),new lJt([r],{type:n})},t)},arrayBuffer(){return sH(this,r=>new Uint8Array(r).buffer,t)},text(){return sH(this,k_e,t)},json(){return sH(this,wJt,t)},async formData(){dte.brandCheck(this,t),fte(this[Zf]);let r=this.headers.get("Content-Type");if(/multipart\/form-data/.test(r)){let n={};for(let[a,A]of this.headers)n[a.toLowerCase()]=A;let s=new N_e,i;try{i=new sJt({headers:n,preservePath:!0})}catch(a){throw new D_e(`${a}`,"AbortError")}i.on("field",(a,A)=>{s.append(a,A)}),i.on("file",(a,A,c,u,l)=>{let d=[];if(u==="base64"||u.toLowerCase()==="base64"){let h="";A.on("data",g=>{h+=g.toString().replace(/[\r\n]/gm,"");let p=h.length-h.length%4;d.push(Buffer.from(h.slice(0,p),"base64")),h=h.slice(p)}),A.on("end",()=>{d.push(Buffer.from(h,"base64")),s.append(a,new S_e(d,c,{type:l}))})}else A.on("data",h=>{d.push(h)}),A.on("end",()=>{s.append(a,new S_e(d,c,{type:l}))})});let o=new Promise((a,A)=>{i.on("finish",a),i.on("error",c=>A(new TypeError(c)))});if(this.body!==null)for await(let a of R_e(this[Zf].body))i.write(a);return i.end(),await o,s}else if(/application\/x-www-form-urlencoded/.test(r)){let n;try{let i="",o=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let a of R_e(this[Zf].body)){if(!x_e(a))throw new TypeError("Expected Uint8Array chunk");i+=o.decode(a,{stream:!0})}i+=o.decode(),n=new URLSearchParams(i)}catch(i){throw Object.assign(new TypeError,{cause:i})}let s=new N_e;for(let[i,o]of n)s.append(i,o);return s}else throw await Promise.resolve(),fte(this[Zf]),dte.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}function yJt(t){Object.assign(t.prototype,QJt(t))}async function sH(t,e,r){if(dte.brandCheck(t,r),fte(t[Zf]),bJt(t[Zf].body))throw new TypeError("Body is unusable");let n=AJt(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[Zf].body==null?(i(new Uint8Array),n.promise):(await cJt(t[Zf].body,i,s),n.promise)}function bJt(t){return t!=null&&(t.stream.locked||$b.isDisturbed(t.stream))}function k_e(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),CJt.decode(t))}function wJt(t){return JSON.parse(k_e(t))}function NJt(t){let{headersList:e}=t[Zf],r=e.get("content-type");return r===null?"failure":mJt(r)}F_e.exports={extractBody:T_e,safelyExtractBody:IJt,cloneBody:BJt,mixinBody:yJt}});var U_e=f((gNn,L_e)=>{"use strict";var{InvalidArgumentError:Yn,NotSupportedError:SJt}=Un(),$f=B("assert"),{kHTTP2BuildRequest:RJt,kHTTP2CopyHeaders:DJt,kHTTP1BuildRequest:xJt}=ts(),SA=qr(),M_e=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,v_e=/[^\t\x20-\x7e\x80-\xff]/,TJt=/[^\u0021-\u00ff]/,Cd=Symbol("handler"),xi={},pte;try{let t=B("diagnostics_channel");xi.create=t.channel("undici:request:create"),xi.bodySent=t.channel("undici:request:bodySent"),xi.headers=t.channel("undici:request:headers"),xi.trailers=t.channel("undici:request:trailers"),xi.error=t.channel("undici:request:error")}catch{xi.create={hasSubscribers:!1},xi.bodySent={hasSubscribers:!1},xi.headers={hasSubscribers:!1},xi.trailers={hasSubscribers:!1},xi.error={hasSubscribers:!1}}var mte=class t{constructor(e,{path:r,method:n,body:s,headers:i,query:o,idempotent:a,blocking:A,upgrade:c,headersTimeout:u,bodyTimeout:l,reset:d,throwOnError:h,expectContinue:g},p){if(typeof r!="string")throw new Yn("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsLine truncated
`),this.body=C.stream,this.contentLength=C.length}else SA.isBlobLike(s)&&this.contentType==null&&s.type&&(this.contentType=s.type,this.headers+=`content-type: ${s.type}\r
`);SA.validateHandler(p,n,c),this.servername=SA.getServerName(this.host),this[Cd]=p,xi.create.hasSubscribers&&xi.create.publish({request:this})}onBodySent(e){if(this[Cd].onBodySent)try{return this[Cd].onBodySent(e)}catch(r){this.abort(r)}}onRequestSent(){if(xi.bodySent.hasSubscribers&&xi.bodySent.publish({request:this}),this[Cd].onRequestSent)try{return this[Cd].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if($f(!this.aborted),$f(!this.completed),this.error)e(this.error);else return this.abort=e,this[Cd].onConnect(e)}onHeaders(e,r,n,s){$f(!this.aborted),$f(!this.completed),xi.headers.hasSubscribers&&xi.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:s}});try{return this[Cd].onHeaders(e,r,n,s)}catch(i){this.abort(i)}}onData(e){$f(!this.aborted),$f(!this.completed);try{return this[Cd].onData(e)}catch(r){return this.abort(r),!1}}onUpgrade(e,r,n){return $f(!this.aborted),$f(!this.completed),this[Cd].onUpgrade(e,r,n)}onComplete(e){this.onFinally(),$f(!this.aborted),this.completed=!0,xi.trailers.hasSubscribers&&xi.trailers.publish({request:this,trailers:e});try{return this[Cd].onComplete(e)}catch(r){this.onError(r)}}onError(e){if(this.onFinally(),xi.error.hasSubscribers&&xi.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Cd].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,r){return v1(this,e,r),this}static[xJt](e,r,n){return new t(e,r,n)}static[RJt](e,r,n){let s=r.headers;r={...r,headers:null};let i=new t(e,r,n);if(i.headers={},Array.isArray(s)){if(s.length%2!==0)throw new Yn("headers array must be even");for(let o=0;o<s.length;o+=2)v1(i,s[o],s[o+1],!0)}else if(s&&typeof s=="object"){let o=Object.keys(s);for(let a=0;a<o.length;a++){let A=o[a];v1(i,A,s[A],!0)}}else if(s!=null)throw new Yn("headers must be an object or an array");return i}static[DJt](e){let r=e.split(`\r
`),n={};for(let s of r){let[i,o]=s.split(": ");o==null||o.length===0||(n[i]?n[i]+=`,${o}`:n[i]=o)}return n}};function SB(t,e,r){if(e&&typeof e=="object")throw new Yn(`invalid ${t} header`);if(e=e!=null?`${e}`:"",v_e.exec(e)!==null)throw new Yn(`invalid ${t} header`);return r?e:`${t}: ${e}\r
`}function v1(t,e,r,n=!1){if(r&&typeof r=="object"&&!Array.isArray(r))throw new Yn(`invalid ${e} header`);if(r===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(v_e.exec(r)!==null)throw new Yn(`invalid ${e} header`);t.host=r}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(r,10),!Number.isFinite(t.contentLength))throw new Yn("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=r,n?t.headers[e]=SB(e,r,n):t.headers+=SB(e,r);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new Yn("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let s=typeof r=="string"?r.toLowerCase():null;if(s!=="close"&&s!=="keep-alive")throw new Yn("invalid connection header");s==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new Yn("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new Yn("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new SJt("expect header not supported");if(M_e.exec(e)===null)throw new Yn("invalid header key");if(Array.isArray(r))for(let s=0;s<r.length;s++)n?t.headers[e]?t.headers[e]+=`,${SB(e,r[s],n)}`:t.headers[e]=SB(e,r[s],n):t.headers+=SB(e,r[s]);else n?t.headers[e]=SB(e,r,n):t.headers+=SB(e,r)}}}L_e.exports=mte});var iH=f((fNn,P_e)=>{"use strict";var kJt=B("events"),Ete=class extends kJt{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};P_e.exports=Ete});var U1=f((pNn,__e)=>{"use strict";var FJt=iH(),{ClientDestroyedError:Cte,ClientClosedError:MJt,InvalidArgumentError:ew}=Un(),{kDestroy:vJt,kClose:LJt,kDispatch:Ite,kInterceptors:RB}=ts(),tw=Symbol("destroyed"),L1=Symbol("closed"),ep=Symbol("onDestroyed"),rw=Symbol("onClosed"),oH=Symbol("Intercepted Dispatch"),Bte=class extends FJt{constructor(){super(),this[tw]=!1,this[ep]=null,this[L1]=!1,this[rw]=[]}get destroyed(){return this[tw]}get closed(){return this[L1]}get interceptors(){return this[RB]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[RB][r]!="function")throw new ew("interceptor must be an function")}this[RB]=e}close(e){if(e===void 0)return new Promise((n,s)=>{this.close((i,o)=>i?s(i):n(o))});if(typeof e!="function")throw new ew("invalid callback");if(this[tw]){queueMicrotask(()=>e(new Cte,null));return}if(this[L1]){this[rw]?this[rw].push(e):queueMicrotask(()=>e(null,null));return}this[L1]=!0,this[rw].push(e);let r=()=>{let n=this[rw];this[rw]=null;for(let s=0;s<n.length;s++)n[s](null,null)};this[LJt]().then(()=>this.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((s,i)=>{this.destroy(e,(o,a)=>o?i(o):s(a))});if(typeof r!="function")throw new ew("invalid callback");if(this[tw]){this[ep]?this[ep].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new Cte),this[tw]=!0,this[ep]=this[ep]||[],this[ep].push(r);let n=()=>{let s=this[ep];this[ep]=null;for(let i=0;i<s.length;i++)s[i](null,null)};this[vJt](e).then(()=>{queueMicrotask(n)})}[oH](e,r){if(!this[RB]||this[RB].length===0)return this[oH]=this[Ite],this[Ite](e,r);let n=this[Ite].bind(this);for(let s=this[RB].length-1;s>=0;s--)n=this[RB][s](n);return this[oH]=n,n(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new ew("handler must be an object");try{if(!e||typeof e!="object")throw new ew("opts must be an object.");if(this[tw]||this[ep])throw new Cte;if(this[L1])throw new MJt;return this[oH](e,r)}catch(n){if(typeof r.onError!="function")throw new ew("invalid onError method");return r.onError(n),!1}}};__e.exports=Bte});var P1=f((CNn,q_e)=>{"use strict";var UJt=B("net"),O_e=B("assert"),H_e=qr(),{InvalidArgumentError:PJt,ConnectTimeoutError:_Jt}=Un(),Qte,yte;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?yte=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(r=>{if(this._sessionCache.size<this._maxCachedSessions)return;let n=this._sessionCache.get(r);n!==void 0&&n.deref()===void 0&&this._sessionCache.delete(r)})}get(e){let r=this._sessionCache.get(e);return r?r.deref():null}set(e,r){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(r)),this._sessionRegistry.register(r,e))}}:yte=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,r){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:n}=this._sessionCache.keys().next();this._sessionCache.delete(n)}this._sessionCache.set(e,r)}}};function OJt({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,...s}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new PJt("maxCachedSessions must be a positive integer or zero");let i={path:r,...s},o=new yte(e??100);return n=n??1e4,t Line truncated
`,this[iOe]=A??3e5,this[sOe]=s??3e5,this[Y1]=I??!0,this[pVt]=w,this[J1]=z,this[uE]=null,this[aOe]=W>-1?W:-1,this[Fh]="h1",this[Dc]=null,this[gH]=oe?{openStreams:0,maxConcurrentStreams:Z??100}:null,this[AOe]=`${this[Oo].hostname}${this[Oo].port?`:${this[Oo].port}`:""}`,this[rs]=[],this[ns]=0,this[Rc]=0}get pipelining(){return this[dE]}set pipelining(e){this[dE]=e,xc(this,!0)}get[TB](){return this[rs].length-this[Rc]}get[ks](){return this[Rc]-this[ns]}get[xB](){return this[rs].length-this[ns]}get[fVt](){return!!this[Vs]&&!this[sw]&&!this[Vs].destroyed}get[Tte](){let e=this[Vs];return e&&(e[qa]||e[np]||e[ow])||this[xB]>=(this[dE]||1)||this[TB]>0}[gVt](e){dOe(this),this.once("connect",e)}[CVt](e,r){let n=e.origin||this[Oo].origin,s=this[Fh]==="h2"?xte[BVt](n,e,r):xte[yVt](n,e,r);return this[rs].push(s),this[DB]||(ft.bodyLength(s.body)==null&&ft.isIterable(s.body)?(this[DB]=1,process.nextTick(xc,this)):xc(this,!0)),this[DB]&&this[lE]!==2&&this[Tte]&&(this[lE]=2),this[lE]<2}async[mVt](){return new Promise(e=>{this[xB]?this[uE]=e:e(null)})}async[EVt](e){return new Promise(r=>{let n=this[rs].splice(this[Rc]);for(let i=0;i<n.length;i++){let o=n[i];Ga(this,o,e)}let s=()=>{this[uE]&&(this[uE](),this[uE]=null),r()};this[Dc]!=null&&(ft.destroy(this[Dc],e),this[Dc]=null,this[gH]=null),this[Vs]?ft.destroy(this[Vs].on("close",s),e):queueMicrotask(s),xc(this)})}};function TVt(t){Ve(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Vs][Ho]=t,EH(this[kh],t)}function kVt(t,e,r){let n=new Th(`HTTP/2: "frameError" received - type ${t}, code ${e}`);r===0&&(this[Vs][Ho]=n,EH(this[kh],n))}function FVt(){ft.destroy(this,new iw("other side closed")),ft.destroy(this[Vs],new iw("other side closed"))}function MVt(t){let e=this[kh],r=new Th(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[Vs]=null,e[Dc]=null,e.destroyed){Ve(this[TB]===0);let n=e[rs].splice(e[ns]);for(let s=0;s<n.length;s++){let i=n[s];Ga(this,i,r)}}else if(e[ks]>0){let n=e[rs][e[ns]];e[rs][e[ns]++]=null,Ga(e,n,r)}e[Rc]=e[ns],Ve(e[ks]===0),e.emit("disconnect",e[Oo],[e],r),xc(e)}var Rh=Y_e(),vVt=cH(),LVt=Buffer.alloc(0);async function UVt(){let t=process.env.JEST_WORKER_ID?Ste():void 0,e;try{e=await WebAssembly.compile(Buffer.from(X_e(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||Ste(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ve.strictEqual(qi.ptr,r);let i=n-xh+Dh.byteOffset;return qi.onStatus(new uH(Dh.buffer,i,s))||0},wasm_on_message_begin:r=>(Ve.strictEqual(qi.ptr,r),qi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ve.strictEqual(qi.ptr,r);let i=n-xh+Dh.byteOffset;return qi.onHeaderField(new uH(Dh.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ve.strictEqual(qi.ptr,r);let i=n-xh+Dh.byteOffset;return qi.onHeaderValue(new uH(Dh.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ve.strictEqual(qi.ptr,r),qi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ve.strictEqual(qi.ptr,r);let i=n-xh+Dh.byteOffset;return qi.onBody(new uH(Dh.buffer,i,s))||0},wasm_on_message_complete:r=>(Ve.strictEqual(qi.ptr,r),qi.onMessageComplete()||0)}})}var Dte=null,Mte=UVt();Mte.catch();var qi=null,Dh=null,lH=0,xh=null,aw=1,hH=2,vte=3,Lte=class{constructor(e,r,{exports:n}){Ve(Number.isFinite(e[dH])&&e[dH]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Rh.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[dH],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[aOe]}setTimeout(e,r){this.timeoutType=r,e!==this.timeoutValue?(Rte.clearTimeout(this.timeout),e?(this.timeout=Rte.setTimeout(PVt,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(Ve(this.ptr!=null),Ve(qi==null),this.llhttp.llhttp_resume(this.ptr),Ve(this.timeoutType===hH),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||LVt),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Ve(this.ptr!=null),Ve(qi==null),Ve(!this.paused);let{socket:r,llhttp:n}=this;e.length>lH&&(xh&&n.free(xh),lH=Math.ceil(e.length/4096)*4096,xh=n.malloc(lH)),new Uint8Array(n.memory.buffer,xh,lH).set(e);try{let s;try{Dh=e,qi=this,s=n.llhttp_execute(this.ptr,xh,e.length)}catch(o){throw o}finally{qi=null,Dh=null}let i=n.llhttp_get_error_pos(this.ptr)-xh;if(s===Rh.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(i));else if(s===Rh.ERROR.PAUSED)this.paused=!0,r.unshift(e.slice(i));else if(s!==Rh.ERROR.OK){let o=n.llhttp_get_error_reason(this.ptr),a="";if(o){let A=new Uint8Array(n.memory.buffer,o).indexOf(0);a="Response do Line truncated
`;return typeof i=="string"?g+=`host: ${i}\r
`:g+=t[tOe],o?g+=`connection: upgrade\r
upgrade: ${o}\r
`:t[dE]&&!h[qa]?g+=`connection: keep-alive\r
`:t[wS]&&!h[Xs]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,a&&(g+=a),oa.sendHeaders.hasSubscribers&&oa.sendHeaders.publish({request:e,headers:g,socket:h}),!r||l===0?(d===0?h.write(`${g}content-length: 0\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return cre.sendHeaders.hasSubscribers&&cre.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?gre(f,null,t,e,h,u,g,l):Pe.isBuffer(c)?gre(f,c,t,e,h,u,g,l):Pe.isBlobLike(c)?typeof c.stream=="function"?pre(f,c.stream(),t,e,h,u,g,l):a9e(f,c,t,e,h,u,g,l):Pe.isStream(c)?o9e(f,c,t,e,h,u,g,l):Pe.isIterable(c)?pre(f,c,t,e,h,u,g,l):Me(!1),!0}function o9e(t,e,r,n,s,i,o,a){Me(i!==0||r[an]===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(g){Pe.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new mre;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Me(s.destroyed||s[Sl]&&r[an]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Pe.destroy(e,f):Pe.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 gre(t,e,r,n,s,i,o,a){try{e?Pe.isBuffer(e)&&(Me(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"):(Ve(d===null,"no body must not have content length"),h.write(`${g}\r
`,"latin1")),e.onRequestSent()):ft.isBuffer(r)?(Ve(d===r.byteLength,"buffer body must have content length"),h.cork(),h.write(`${g}content-length: ${d}\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Xs]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"),h.write(r),h.uncork(),e.onBodySent(r),e.onRequestSent(),u||(h[qa]=!0)):ft.isBlobLike(r)?typeof r.stream=="function"?pH({body:r.stream(),client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):fOe({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):ft.isStream(r)?gOe({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):ft.isIterable(r)?pH({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):Ve(!1),!0}function HVt(t,e,r){let{body:n,method:s,path:i,host:o,upgrade:a,expectContinue:A,signal:c,headers:u}=r,l;if(typeof u=="string"?l=xte[QVt](u.trim()):l=u,a)return Ga(t,r,new Error("Upgrade not supported for H2")),!1;try{r.onConnect(I=>{r.aborted||r.completed||Ga(t,r,I||new Pte)})}catch(I){Ga(t,r,I)}if(r.aborted)return!1;let d,h=t[gH];if(l[bVt]=o||t[AOe],l[wVt]=s,s==="CONNECT")return e.ref(),d=e.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(r.onUpgrade(null,null,d),++h.openStreams):d.once("ready",()=>{r.onUpgrade(null,null,d),++h.openStreams}),d.once("close",()=>{h.openStreams-=1,h.openStreams===0&&e.unref()}),!0;l[NVt]=i,l[SVt]="https";let g=s==="PUT"||s==="POST"||s==="PATCH";n&&typeof n.read=="function"&&n.read(0);let p=ft.bodyLength(n);if(p==null&&(p=r.contentLength),(p===0||!g)&&(p=null),hOe(s)&&p>0&&r.contentLength!=null&&r.contentLength!==p){if(t[Y1])return Ga(t,r,new rp),!1;process.emitWarning(new rp)}p!=null&&(Ve(n,"no body must not have content length"),l[RVt]=`${p}`),e.ref();let C=s==="GET"||s==="HEAD";return A?(l[DVt]="100-continue",d=e.request(l,{endStream:C,signal:c}),d.once("continue",m)):(d=e.request(l,{endStream:C,signal:c}),m()),++h.openStreams,d.once("response",I=>{let{[xVt]:y,...w}=I;r.onHeaders(Number(y),w,d.resume.bind(d),"")===!1&&d.pause()}),d.once("end",()=>{r.onComplete([])}),d.on("data",I=>{r.onData(I)===!1&&d.pause()}),d.once("close",()=>{h.openStreams-=1,h.openStreams===0&&e.unref()}),d.once("error",function(I){t[Dc]&&!t[Dc].destroyed&&!this.closed&&!this.destroyed&&(h.streams-=1,ft.destroy(d,I))}),d.once("frameError",(I,y)=>{let w=new Th(`HTTP/2: "frameError" received - type ${I}, code ${y}`);Ga(t,r,w),t[Dc]&&!t[Dc].destroyed&&!this.closed&&!this.destroyed&&(h.streams-=1,ft.destroy(d,w))}),!0;function m(){n?ft.isBuffer(n)?(Ve(p===n.byteLength,"buffer body must have content length"),d.cork(),d.write(n),d.uncork(),d.end(),r.onBodySent(n),r.onRequestSent()):ft.isBlobLike(n)?typeof n.stream=="function"?pH({client:t,request:r,contentLength:p,h2stream:d,expectsPayload:g,body:n.stream(),socket:t[Vs],header:""}):fOe({body:n,client:t,request:r,contentLength:p,expectsPayload:g,h2stream:d,header:"",socket:t[Vs]}):ft.isStream(n)?gOe({body:n,client:t,request:r,contentLength:p,expectsPayload:g,socket:t[Vs],h2stream:d,header:""}):ft.isIterable(n)?pH({body:n,client:t,request:r,contentLength:p,expectsPayload:g,header:"",h2stream:d,socket:t[Vs]}):Ve(!1):r.onRequestSent()}}function gOe({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){if(Ve(i!==0||r[ks]===0,"stream body cannot be pipelined"),r[Fh]==="h2"){let p=function(C){n.onBodySent(C)},g=sVt(e,t,C=>{C?(ft.destroy(e,C),ft.destroy(t,C)):n.onRequestSent()});g.on("data",p),g.once("end",()=>{g.removeListener("data",p),ft.destroy(g)});return}let A=!1,c=new mH({socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){ft.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(A)return;let g=new Pte;queueMicrotask(()=>h(g))},h=function(g){if(!A){if(A=!0,Ve(s.destroyed||s[np]&&r[ks]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("error",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?ft.destroy(e,g):ft.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h)}async function fOe({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){Ve(i===e.size,"blob body must have content length");let A=r[Fh]==="h2";try{if(i!=null&&i!==e.size)throw new rp;let c=Buffer.from(await e.arrayBuffer());A?(t.cork(),t.write(c),t.uncork()):(s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(Me(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[nu]()}catch(c){t(c)}}async function a9e(t,e,r,n,s,i,o,a){Me(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(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
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Xs]=!0),r[nu]()}catch(c){t(c)}}async function pre(t,e,r,n,s,i,o,a){Me(i!==0||r[an]===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)=>{Me(c===null),s[Ss]?h(s[Ss]):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[Ss])throw s[Ss];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[Sl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Ss])throw r[Ss];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[Xs]=!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===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
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[lr].timeout&&r[lr].timeoutType===tm&&r[lr].timeout.refresh&&r[lr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Sl]=!1,e[Ss])throw e[Ss];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[Y1])throw new rp;process.emitWarning(new rp)}e[Js].timeout&&e[Js].timeoutType===aw&&e[Js].timeout.refresh&&e[Js].timeout.refresh(),xc(n)}}destroy(e){let{socket:r,client:n}=this;r[np]=!1,e&&(Ve(n[ks]<=1,"pipeline should only contain this request"),ft.destroy(r,e))}};function Ga(t,e,r){try{e.onError(r),Ve(e.aborted)}catch(n){t.emit("error",n)}}pOe.exports=Fte});var EOe=f((RNn,mOe)=>{"use strict";var CH=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};mOe.exports=class{constructor(){this.head=this.tail=new CH}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new CH),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var IOe=f((DNn,COe)=>{var{kFree:qVt,kConnected:GVt,kPending:YVt,kQueued:JVt,kRunning:VVt,kSize:WVt}=ts(),kB=Symbol("pool"),_te=class{constructor(e){this[kB]=e}get connected(){return this[kB][GVt]}get free(){return this[kB][qVt]}get pending(){return this[kB][YVt]}get queued(){return this[kB][JVt]}get running(){return this[kB][VVt]}get size(){return this[kB][WVt]}};COe.exports=_te});var Jte=f((xNn,xOe)=>{"use strict";var zVt=U1(),jVt=EOe(),{kConnected:Ote,kSize:BOe,kRunning:QOe,kPending:yOe,kQueued:W1,kBusy:KVt,kFree:XVt,kUrl:ZVt,kClose:$Vt,kDestroy:eWt,kDispatch:tWt}=ts(),rWt=IOe(),RA=Symbol("clients"),Ya=Symbol("needDrain"),z1=Symbol("queue"),Hte=Symbol("closed resolve"),qte=Symbol("onDrain"),bOe=Symbol("onConnect"),wOe=Symbol("onDisconnect"),NOe=Symbol("onConnectionError"),Gte=Symbol("get dispatcher"),ROe=Symbol("add client"),DOe=Symbol("remove client"),SOe=Symbol("stats"),Yte=class extends zVt{constructor(){super(),this[z1]=new jVt,this[RA]=[],this[W1]=0;let e=this;this[qte]=function(n,s){let i=e[z1],o=!1;for(;!o;){let a=i.shift();if(!a)break;e[W1]--,o=!this.dispatch(a.opts,a.handler)}this[Ya]=o,!this[Ya]&&e[Ya]&&(e[Ya]=!1,e.emit("drain",n,[e,...s])),e[Hte]&&i.isEmpty()&&Promise.all(e[RA].map(a=>a.close())).then(e[Hte])},this[bOe]=(r,n)=>{e.emit("connect",r,[e,...n])},this[wOe]=(r,n,s)=>{e.emit("disconnect",r,[e,...n],s)},this[NOe]=(r,n,s)=>{e.emit("connectionError",r,[e,...n],s)},this[SOe]=new rWt(this)}get[KVt](){return this[Ya]}get[Ote](){return this[RA].filter(e=>e[Ote]).length}get[XVt](){return this[RA].filter(e=>e[Ote]&&!e[Ya]).length}get[yOe](){let e=this[W1];for(let{[yOe]:r}of this[RA])e+=r;return e}get[QOe](){let e=0;for(let{[QOe]:r}of this[RA])e+=r;return e}get[BOe](){let e=this[W1];for(let{[BOe]:r}of this[RA])e+=r;return e}get stats(){return this[SOe]}async[$Vt](){return this[z1].isEmpty()?Promise.all(this[RA].map(e=>e.close())):new Promise(e=>{this[Hte]=e})}async[eWt](e){for(;;){let r=this[z1].shift();if(!r)break;r.handler.onError(e)}return Promise.all(this[RA].map(r=>r.destroy(e)))}[tWt](e,r){let n=this[Gte]();return n?n.dispatch(e,r)||(n[Ya]=!0,this[Ya]=!this[Gte]()):(this[Ya]=!0,this[z1].push({opts:e,handler:r}),this[W1]++),!this[Ya]}[ROe](e){return e.on("drain",this[qte]).on("connect",this[bOe]).on("disconnect",this[wOe]).on("connectionError",this[NOe]),this[RA].push(e),this[Ya]&&process.nextTick(()=>{this[Ya]&&this[qte](e[ZVt],[this,e])}),this}[DOe](e){e.close(()=>{let r=this[RA].indexOf(e);r!==-1&&this[RA].splice(r,1)}),this[Ya]=this[RA].some(r=>!r[Ya]&&r.closed!==!0&&r.destroyed!==!0)}};xOe.exports={PoolBase:Yte,kClients:RA,kNeedDrain:Ya,kAddClient:ROe,kRemoveClient:DOe,kGetDispatcher:Gte}});var Aw=f((TNn,FOe)=>{"use strict";var{PoolBase:nWt,kClients:IH,kNeedDrain:sWt,kAddClient:iWt,kGetDispatcher:oWt}=Jte(),aWt=V1(),{InvalidArgumentError:Vte}=Un(),Wte=qr(),{kUrl:TOe,kInterceptors:AWt}=ts(),cWt=P1(),zte=Symbol("options"),jte=Symbol("connections"),kOe=Symbol("factory");function uWt(t,e){return new aWt(t,e)}var Kte=class extends nWt{constructor(e,{connections:r,factory:n=uWt,connect:s,connectTimeout:i,tls:o,maxCachedSessions:a,socketPath:A,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u,allowH2:l,...d}={}){if(super(),r!=null&&(!Number.isFinite(r)||r<0))throw new Vte("invalid connections");if(typeof n!="function")throw new Vte("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new Vte("connect must be a function or an object");typeof s!="function"&&(s=cWt({...o,maxCachedSessions:a,allowH2:l,socketPath:A,timeout:i,...Wte.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u}:void 0,...s})),this[AWt]=d.interceptors&&d.interceptors.Pool&&Array.isArray(d.interceptors.Pool)?d.interceptors.Pool:[],this[jte]=r||null,this[TOe]=Wte.parseOrigin(e),this[zte]={...Wte.deepClone(d),connect:s,allowH2:l},this[zte].interceptors=d.interceptors?{...d.interceptors}:void 0,this[kOe]=n,this.on("con Line truncated
`,"latin1"),r!==null&&s!==r){if(n[$L])throw new Fh;process.emitWarning(new Fh)}e[lr].timeout&&e[lr].timeoutType===tm&&e[lr].timeout.refresh&&e[lr].timeout.refresh(),n[nu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Sl]=!1,e&&(Me(n[an]<=1,"pipeline should only contain this request"),s(e))}};Bre.exports=t9e});var Dre=C((q7t,Rre)=>{"use strict";var bo=Q("node:assert"),{pipeline:c9e}=Q("node:stream"),mt=lt(),{RequestContentLengthMismatchError:rU,RequestAbortedError:Qre,SocketError:_I,InformationalError:nU}=_t(),{kUrl:xS,kReset:DS,kClient:rm,kRunning:kS,kPending:A9e,kQueue:Nl,kPendingIdx:sU,kRunningIdx:Sa,kError:Ta,kSocket:Dn,kStrictContentLength:u9e,kOnError:iU,kMaxConcurrentStreams:xre,kHTTP2Session:Na,kResume:Tl,kSize:l9e,kHTTPContext:d9e}=Br(),su=Symbol("open streams"),wre,Sre=!1,RS;try{RS=Q("node:http2")}catch{RS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:h9e,HTTP2_HEADER_METHOD:f9e,HTTP2_HEADER_PATH:g9e,HTTP2_HEADER_SCHEME:p9e,HTTP2_HEADER_CONTENT_LENGTH:m9e,HTTP2_HEADER_EXPECT:E9e,HTTP2_HEADER_STATUS:C9e}}=RS;function I9e(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 y9e(t,e){t[Dn]=e,Sre||(Sre=!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[xre]});r[su]=0,r[rm]=t,r[Dn]=e,mt.addListener(r,"error",b9e),mt.addListener(r,"frameError",Q9e),mt.addListener(r,"end",w9e),mt.addListener(r,"goaway",S9e),mt.addListener(r,"close",function(){let{[rm]:s}=this,{[Dn]:i}=s,o=this[Dn][Ta]||this[Ta]||new _I("closed",mt.getSocketInfo(i));if(s[Na]=null,s.destroyed){bo(s[A9e]===0);let a=s[Nl].splice(s[Sa]);for(let c=0;c<a.length;c++){let A=a[c];mt.errorRequest(s,A,o)}}}),r.unref(),t[Na]=r,e[Na]=r,mt.addListener(e,"error",function(s){bo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ta]=s,this[rm][iU](s)}),mt.addListener(e,"end",function(){mt.destroy(this,new _I("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let s=this[Ta]||new _I("closed",mt.getSocketInfo(this));t[Dn]=null,this[Na]!=null&&this[Na].destroy(s),t[sU]=t[Sa],bo(t[kS]===0),t.emit("disconnect",t[xS],[t],s),t[Tl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return T9e(t,...s)},resume(){B9e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function B9e(t){let e=t[Dn];e?.destroyed===!1&&(t[l9e]===0&&t[xre]===0?(e.unref(),t[Na].unref()):(e.ref(),t[Na].ref()))}function b9e(t){bo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dn][Ta]=t,this[rm][iU](t)}function Q9e(t,e,r){if(r===0){let n=new nU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dn][Ta]=n,this[rm][iU](n)}}function w9e(){let t=new _I("other side closed",mt.getSocketInfo(this[Dn]));this.destroy(t),mt.destroy(this[Dn],t)}function S9e(t){let e=this[Ta]||new _I(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[rm];if(r[Dn]=null,r[d9e]=null,this[Na]!=null&&(this[Na].destroy(e),this[Na]=null),mt.destroy(this[Dn],e),r[Sa]<r[Nl].length){let n=r[Nl][r[Sa]];r[Nl][r[Sa]++]=null,mt.errorRequest(r,n,e),r[sU]=r[Sa]}bo(r[kS]===0),r.emit("disconnect",r[xS],[r],e),r[Tl]()}function N9e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function T9e(t,e){let r=t[Na],{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 B=0;B<A.length;B+=2){let M=A[B+0],V=A[B+1];if(Array.isArray(V))for(let k=0;k<V.length;k++)l[M]?l[M]+=`,${V[k]}`:l[M]=V[k];else l[M]=V}let d,{hostname:h,port:f}=t[xS];l[h9e]=i||`${h}${f?`:${f}`:""}`,l[f9e]=n;let g=B=>{e.aborted||e.completed||(B=B||new Qre,mt.errorRequest(t,e,B),d!=null&&mt.destroy(d,B),mt.destroy(u,B),t[Nl][t[Sa]++]=null,t[Tl]())};try{e.onConnect(g)}catch(B){mt.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[su],t[Nl][t[Sa]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[su],t[Nl][t[Sa]++]=null}),d.once("close",()=>{r[su]-=1,r[su]===0&&r.unref()}),!0;l[g9e]=s,l[p9e]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=mt.bodyLength(u);if(mt.isFormDataLike(u)){wre??=Xp().extractBody;let[B,M]=wre(u);l["content-type"]=M,u=B.stream,m=B.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),N9e(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[u9e])return mt.errorRequest(t,e,new rU),!1;process.emitWarning(new rU)}m!=null&&(bo(u,"no body must not have content length"),l[m9e]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[E9e]="100-continue",d=r.request(l,{endStream:I,signal:c}),d.once("cont Line truncated
`,this[eGe]=c??3e5,this[Z9e]=s??3e5,this[tGe]=I??!0,this[rGe]=B,this[AU]=V,this[Rl]=null,this[aGe]=P>-1?P:-1,this[AGe]=X??100,this[Kr]=null,this[xa]=[],this[ou]=0,this[Ra]=0,this[UI]=ue=>lU(this,ue),this[cGe]=ue=>qre(this,ue)}get pipelining(){return this[MS]}set pipelining(e){this[MS]=e,this[UI](!0)}get[HI](){return this[xa].length-this[Ra]}get[OI](){return this[Ra]-this[ou]}get[PI](){return this[xa].length-this[ou]}get[W9e](){return!!this[Kr]&&!this[sm]&&!this[Kr].destroyed}get[cU](){return!!(this[Kr]?.busy(null)||this[PI]>=(Gre(this)||1)||this[HI]>0)}[V9e](e){Yre(this),this.once("connect",e)}[oGe](e,r){let n=e.origin||this[yc].origin,s=new P9e(n,e,r);return this[xa].push(s),this[Oh]||(Ph.bodyLength(s.body)==null&&Ph.isIterable(s.body)?(this[Oh]=1,queueMicrotask(()=>lU(this))):this[UI](!0)),this[Oh]&&this[Dl]!==2&&this[cU]&&(this[Dl]=2),this[Dl]<2}async[sGe](){return new Promise(e=>{this[PI]?this[Rl]=e:e(null)})}async[iGe](e){return new Promise(r=>{let n=this[xa].splice(this[Ra]);for(let i=0;i<n.length;i++){let o=n[i];Ph.errorRequest(this,o,e)}let s=()=>{this[Rl]&&(this[Rl](),this[Rl]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[UI]()})}},dGe=FS();function qre(t,e){if(t[OI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){iu(t[Ra]===t[ou]);let r=t[xa].splice(t[ou]);for(let n=0;n<r.length;n++){let s=r[n];Ph.errorRequest(t,s,e)}iu(t[PI]===0)}}async function Yre(t){iu(!t[sm]),iu(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[yc];if(r[0]==="["){let i=r.indexOf("]");iu(i!==-1);let o=r.substring(1,i);iu(Hre.isIP(o)),r=o}t[sm]=!0,nm.beforeConnect.hasSubscribers&&nm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[xl],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[xl],localAddress:t[LI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Ph.destroy(i.on("error",Pre),new G9e);return}iu(i);try{t[Kr]=i.alpnProtocol==="h2"?await lGe(t,i):await uGe(t,i)}catch(o){throw i.destroy().on("error",Pre),o}t[sm]=!1,i[nGe]=0,i[AU]=t[AU],i[Y9e]=t,i[z9e]=null,nm.connected.hasSubscribers&&nm.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[xl],localAddress:t[LI]},connector:t[MI],socket:i}),t.emit("connect",t[yc],[t])}catch(i){if(t.destroyed)return;if(t[sm]=!1,nm.connectError.hasSubscribers&&nm.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[xl],localAddress:t[LI]},connector:t[MI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(iu(t[OI]===0);t[HI]>0&&t[xa][t[Ra]].servername===t[xl];){let o=t[xa][t[Ra]++];Ph.errorRequest(t,o,i)}else qre(t,i);t.emit("connectionError",t[yc],[t],i)}t[UI]()}function Ore(t){t[Dl]=0,t.emit("drain",t[yc],[t])}function lU(t,e){t[Oh]!==2&&(t[Oh]=2,hGe(t,e),t[Oh]=0,t[ou]>256&&(t[xa].splice(0,t[ou]),t[Ra]-=t[ou],t[ou]=0))}function hGe(t,e){for(;;){if(t.destroyed){iu(t[HI]===0);return}if(t[Rl]&&!t[PI]){t[Rl](),t[Rl]=null;return}if(t[Kr]&&t[Kr].resume(),t[cU])t[Dl]=2;else if(t[Dl]===2){e?(t[Dl]=1,queueMicrotask(()=>Ore(t))):Ore(t);continue}if(t[HI]===0||t[OI]>=(Gre(t)||1))return;let r=t[xa][t[Ra]];if(t[yc].protocol==="https:"&&t[xl]!==r.servername){if(t[OI]>0)return;t[xl]=r.servername,t[Kr]?.destroy(new H9e("servername changed"),()=>{t[Kr]=null,lU(t)})}if(t[sm])return;if(!t[Kr]){Yre(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[Ra]++:t[xa].splice(t[Ra],1)}}Vre.exports=uU});var dU=C((z7t,Wre)=>{"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)}};Wre.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 zre=C((j7t,Jre)=>{var{kFree:fGe,kConnected:gGe,kPending:pGe,kQueued:mGe,kRunning:EGe,kSize:CGe}=Br(),Hh=Symbol("pool"),hU=class{constructor(e){this[Hh]=e}get connected(){return this[Hh][gGe]}get free(){return this[Hh][fGe]}get pending(){return this[Hh][pGe]}get queued(){return this[Hh][mGe]}get running(){return this[Hh][EGe]}get size(){return this[Hh][CGe]}};Jre.exports=hU});var CU=C((K7t,sne)=>{"use strict";var IGe=qp(),yGe=dU(),{kConnected:fU,kSize:jre,kRunning:Kre,kPending:$re,kQueued:GI,kBusy:BGe,kFree:bGe,kUrl:QGe,kClose:wGe,kDestroy:SGe,kDispatch:NGe}=Br(),TGe=zre(),Zs=Symbol("clients"),Ns=Symbol("needDrain"),qI=Symbol("queue"),gU=Symbol("closed resolve"),pU=Symbol("onDrain"),Xre=Symbol("onConnect"),Zre=Symbol("onDisconnect"),ene=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};lqe.exports=Mre});var Eqe=f((rSn,mqe)=>{"use strict";var{kProxy:ljt,kClose:djt,kDestroy:hjt,kInterceptors:gjt}=ts(),{URL:hqe}=B("url"),gqe=K1(),fjt=Aw(),pjt=U1(),{InvalidArgumentError:tk,RequestAbortedError:mjt}=Un(),fqe=P1(),$1=Symbol("proxy agent"),HH=Symbol("proxy client"),ek=Symbol("proxy headers"),vre=Symbol("request tls settings"),Ejt=Symbol("proxy tls settings"),pqe=Symbol("connect endpoint function");function Cjt(t){return t==="https:"?443:80}function Ijt(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new tk("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}function Bjt(t,e){return new fjt(t,e)}var Lre=class extends pjt{constructor(e){if(super(e),this[ljt]=Ijt(e),this[$1]=new gqe(e),this[gjt]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new tk("Proxy opts.uri is mandatory");let{clientFactory:r=Bjt}=e;if(typeof r!="function")throw new tk("Proxy opts.clientFactory must be a function.");this[vre]=e.requestTls,this[Ejt]=e.proxyTls,this[ek]=e.headers||{};let n=new hqe(e.uri),{origin:s,port:i,host:o,username:a,password:A}=n;if(e.auth&&e.token)throw new tk("opts.auth cannot be used in combination with opts.token");e.auth?this[ek]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[ek]["proxy-authorization"]=e.token:a&&A&&(this[ek]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(a)}:${decodeURIComponent(A)}`).toString("base64")}`);let c=fqe({...e.proxyTls});this[pqe]=fqe({...e.requestTls}),this[HH]=r(n,{connect:c}),this[$1]=new gqe({...e,connect:async(u,l)=>{let d=u.host;u.port||(d+=`:${Cjt(u.protocol)}`);try{let{socket:h,statusCode:g}=await this[HH].connect({origin:s,port:i,path:d,signal:u.signal,headers:{...this[ek],host:o}});if(g!==200&&(h.on("error",()=>{}).destroy(),l(new mjt(`Proxy response (${g}) !== 200 when HTTP Tunneling`))),u.protocol!=="https:"){l(null,h);return}let p;this[vre]?p=this[vre].servername:p=u.servername,this[pqe]({...u,servername:p,httpSocket:h},l)}catch(h){l(h)}}})}dispatch(e,r){let{host:n}=new hqe(e.origin),s=Qjt(e.headers);return yjt(s),this[$1].dispatch({...e,headers:{...s,host:n}},r)}async[djt](){await this[$1].close(),await this[HH].close()}async[hjt](){await this[$1].destroy(),await this[HH].destroy()}};function Qjt(t){if(Array.isArray(t)){let e={};for(let r=0;r<t.length;r+=2)e[t[r]]=t[r+1];return e}return t}function yjt(t){if(t&&Object.keys(t).find(r=>r.toLowerCase()==="proxy-authorization"))throw new tk("Proxy-Authorization should be sent in ProxyAgent constructor")}mqe.exports=Lre});var yqe=f((nSn,Qqe)=>{var PB=B("assert"),{kRetryHandlerDefaultRetry:Cqe}=ts(),{RequestRetryError:qH}=Un(),{isDisturbed:Iqe,parseHeaders:bjt,parseRangeHeader:Bqe}=qr();function wjt(t){let e=Date.now();return new Date(t).getTime()-e}var Ure=class t{constructor(e,r){let{retryOptions:n,...s}=e,{retry:i,maxRetries:o,maxTimeout:a,minTimeout:A,timeoutFactor:c,methods:u,errorCodes:l,retryAfter:d,statusCodes:h}=n??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts=s,this.abort=null,this.aborted=!1,this.retryOpts={retry:i??t[Cqe],retryAfter:d??!0,maxTimeout:a??30*1e3,timeout:A??500,timeoutFactor:c??2,maxRetries:o??5,methods:u??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:h??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(g=>{this.aborted=!0,this.abort?this.abort(g):this.reason=g})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[Cqe](e,{state:r,opts:n},s){let{statusCode:i,code:o,headers:a}=e,{method:A,retryOptions:c}=n,{maxRetries:u,timeout:l,maxTimeout:d,timeoutFactor:h,statusCodes:g,errorCodes:p,methods:C}=c,{counter:m,currentTimeout:I}=r;if(I=I!=null&&I>0?I:l,o&&o!=="UND_ERR_REQ_RETRY"&&o!=="UND_ERR_SOCKET"&&!p.includes(o)){s(e);return}if(Array.isArray(C)&&!C.includes(A)){s(e);return}if(i!=null&&Array.isArray(g)&&!g.includes(i)){s(e);return}if(m>u){s(e);return}let y=a!=null&&a["retry-after"];y&&(y=Number(y),y=isNaN(y)?wjt(y):y*1e3);let w=y>0?Math.min(y,d):Math.min(I*h**m,d);r.currentTimeout=w,setTimeout(()=>s(null),w)}onHeaders(e,r,n,s){let i=bjt(r);if(this.retryCount+=1,e>=300)return this.abort(new qH("Request failed",e,{headers:i,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let a=Bqe(i["content-range"]);if(!a)return this.abort(new qH("Content-Range mismatch",e,{headers:i,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==i.etag)return this.abort(new qH("ETag mismatch",e,{headers:i,count:this.retryCount})),!1;let{start:A,size:c,en Line truncated
Error Code : ${o.statusCode}
Error Message: ${o.message}`)})).result)===null||r===void 0?void 0:r.value;if(!i)throw new Error("Response json body do not have ID Token field");return i})}static getIDToken(e){return k8e(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}(0,F8e.debug)(`ID token url is ${r}`);let n=yield t.getCall(r);return(0,F8e.setSecret)(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};Fw.OidcClient=Nne});var xne=f(FA=>{"use strict";var Sne=FA&&FA.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(FA,"__esModule",{value:!0});FA.summary=FA.markdownSummary=FA.SUMMARY_DOCS_URL=FA.SUMMARY_ENV_VAR=void 0;var fZt=B("os"),Rne=B("fs"),{access:pZt,appendFile:mZt,writeFile:EZt}=Rne.promises;FA.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";FA.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Dne=class{constructor(){this._buffer=""}filePath(){return Sne(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[FA.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${FA.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield pZt(e,Rne.constants.R_OK|Rne.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([i,o])=>` ${i}="${o}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return Sne(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?EZt:mZt)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Sne(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(fZt.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(o=>this.wrap("li",o)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:A,colspan:c,rowspan:u}=o,l=a?"th":"td",d=Object.assign(Object.assign({},c&&{colspan:c}),u&&{rowspan:u});return this.wrap(l,A,d)}).join("");return this.wrap("tr",i)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:i}=n||{},o=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",i=this.wrap(s,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},v8e=new Dne;FA.markdownSummary=v8e;FA.summary=v8e});var L8e=f(MA=>{"use strict";var CZt=MA&&MA.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),IZt=MA&&MA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),BZt=MA&&MA.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&CZt(e,t,r);return IZt(e,t),e};Object.defineProperty(MA,"__esModule",{value:!0});MA.toPlatformPath=MA.toWin32Path=MA.toPosixPath=void 0;var QZt=BZt(B("path"));function yZt(t){return t.replace(/[\\]/g,"/")}MA.toPosixPath=yZt;function bZt(t){return t.replace(/[/]/g,"\\")}MA.toWin32Path=bZt;function wZt(t){return t.replace(/[/\\]/g,QZt.sep)}MA.toPlatformPath=wZt});var kne=f(Ze=>{"use strict";var NZt=Ze&&Ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),tLine truncated
`);return{name:e,version:r}});Gr.platform=e3e.default.platform();Gr.arch=e3e.default.arch();Gr.isWindows=Gr.platform==="win32";Gr.isMacOS=Gr.platform==="darwin";Gr.isLinux=Gr.platform==="linux";function s$t(){return Pq(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield Gr.isWindows?t$t():Gr.isMacOS?r$t():n$t()),{platform:Gr.platform,arch:Gr.arch,isWindows:Gr.isWindows,isMacOS:Gr.isMacOS,isLinux:Gr.isLinux})})}Gr.getDetails=s$t});var Uc=f(We=>{"use strict";var i$t=We&&We.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),o$t=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Une=We&&We.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&i$t(e,t,r);return o$t(e,t),e},r3e=We&&We.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(We,"__esModule",{value:!0});We.platform=We.toPlatformPath=We.toWin32Path=We.toPosixPath=We.markdownSummary=We.summary=We.getIDToken=We.getState=We.saveState=We.group=We.endGroup=We.startGroup=We.info=We.notice=We.warning=We.error=We.debug=We.isDebug=We.setFailed=We.setCommandEcho=We.setOutput=We.getBooleanInput=We.getMultilineInput=We.getInput=We.addPath=We.setSecret=We.exportVariable=We.ExitCode=void 0;var Ju=HUe(),VB=YUe(),vw=UO(),n3e=Une(B("os")),a$t=Une(B("path")),A$t=M8e(),Lne;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Lne||(We.ExitCode=Lne={}));function c$t(t,e){let r=(0,vw.toCommandValue)(e);if(process.env[t]=r,process.env.GITHUB_ENV||"")return(0,VB.issueFileCommand)("ENV",(0,VB.prepareKeyValueMessage)(t,e));(0,Ju.issueCommand)("set-env",{name:t},r)}We.exportVariable=c$t;function u$t(t){(0,Ju.issueCommand)("add-mask",{},t)}We.setSecret=u$t;function l$t(t){process.env.GITHUB_PATH||""?(0,VB.issueFileCommand)("PATH",t):(0,Ju.issueCommand)("add-path",{},t),process.env.PATH=`${t}${a$t.delimiter}${process.env.PATH}`}We.addPath=l$t;function Pne(t,e){let r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?r:r.trim()}We.getInput=Pne;function d$t(t,e){let r=Pne(t,e).split(`
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}We.getMultilineInput=d$t;function h$t(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],s=Pne(t,e);if(r.includes(s))return!0;if(n.includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}We.getBooleanInput=h$t;function g$t(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,VB.issueFileCommand)("OUTPUT",(0,VB.prepareKeyValueMessage)(t,e));process.stdout.write(n3e.EOL),(0,Ju.issueCommand)("set-output",{name:t},(0,vw.toCommandValue)(e))}We.setOutput=g$t;function f$t(t){(0,Ju.issue)("echo",t?"on":"off")}We.setCommandEcho=f$t;function p$t(t){process.exitCode=Lne.Failure,s3e(t)}We.setFailed=p$t;function m$t(){return process.env.RUNNER_DEBUG==="1"}We.isDebug=m$t;function E$t(t){(0,Ju.issueCommand)("debug",{},t)}We.debug=E$t;function s3e(t,e={}){(0,Ju.issueCommand)("error",(0,vw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.error=s3e;function C$t(t,e={}){(0,Ju.issueCommand)("warning",(0,vw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.warning=C$t;function I$t(t,e={}){(0,Ju.issueCommand)("notice",(0,vw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.notice=I$t;function B$t(t){process.stdout.write(t+n3e.EOL)}We.info=B$t;function i3e(t){(0,Ju.issue)("group",t)}We.startGroup=i3e;function o3e(){(0,Ju.issue)("endgroup")}We.endGroup=o3e;function Q$t(t,e){return r3e(this,void 0,void 0,function*(){i3e(t);let r;try{r=yield e()}finally{o3e()}return r})}We.group=Q$t;function y$t(t,e){if(process.env.GITHUB_STATE||"")return(0,VB.issueFileCommand)("STATE",(0,VB.prepareKeyValueMessage)(t,e));(0,Ju.issueCommand)("save-state",{name:t},(0,vw.toCommandValue)(e))}We.saveState=y$t;function b$t(t){return process.env[`STATE_${t}`]||""}We.getState=b$t;function w$t(t){return r3e(this,void 0,void 0,function*(){return yield A$t.OidcClient.getIDToken(t)})}We.getIDToken=w$t;var N$t=xne();Object.defineProperty(We,"summary",{enumerable:!0,get:function(){return N$t.summary}});var S$t=xne();Object.defineProperty(We,"markdownSummary",{enumerable:!0,get:function(){return S$t.markdownSummary}});var _ne=L8e();Object.defineProperty(We,"toPosixPath",{enumerable:!0,get:function(){return _ne.toPosixPath}});Object.defineProperty(We,"toWin32Path",{enumerable:!0,get:function(){return _ne.toWin32Path}});Object.defineProperty(We,"toPlatformPath",{enumerable:!0,get:function(){return _ne.toPlatformPath}});We.platform=Une(t3e())});var a3e=f(Hh=>{"use strict";var R$t=Hh&&Hh.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),D$t=Hh&&Hh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),x$t=Hh&&Hh.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&R$t(e,t,r);return D$t(e,t),e};Object.defineProperty(Hh,"__esModule",{value:!0});Hh.getOptions=void 0;var One=x$t(Uc());function T$t(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,One.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,One.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,One.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}Hh.getOptions=T$t});var Oq=f(zs=>{"use strict";var k$t=zs&&zs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),F$t=zs&&zs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),M$t=zs&&zs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&k$t(e,t,r);return F$t(e,t),e},v$t=zs&&zs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zs,"__esModule",{value:!0});zs.safeTrimTrailingSeparator=zs.normalizeSeparators=zs.hasRoot=zs.hasAbsoluteRoot=zs.ensureAbsoluteRoot=zs.dirname=void 0;var _q=M$t(B("path")),WB=v$t(B("assert")),IE=process.platform==="win32";function L$t(t){if(t=qne(t),IE&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=_q.dirname(t);return IE&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=qne(e)),e}zs.dirname=L$t;function U$t(t,e){if(WB.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),WB.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),Hne(e))return e;if(IE){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return WB.default(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsLine truncated
%s`,H,H,I,n);var z=I.type==="*"?Vne:I.type==="?"?Jne:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+z+"\\("+H}g(),i&&(n+="\\\\");var F=!1;switch(n.charAt(0)){case"[":case".":case"(":F=!0}for(var W=a.length-1;W>-1;W--){var U=a[W],ee=n.slice(0,U.reStart),oe=n.slice(U.reStart,U.reEnd-8),Z=n.slice(U.reEnd-8,U.reEnd),he=n.slice(U.reEnd);Z+=he;var Se=ee.split("(").length-1,Je=he;for(p=0;p<Se;p++)Je=Je.replace(/\)[+*?]?/,"");he=Je;var He="";he===""&&e!==Gq&&(He="$");var $t=ee+oe+he+He+Z;n=$t}if(n!==""&&s&&(n="(?=.)"+n),F&&(n=d+n),e===Gq)return[n,s];if(!s)return der(t);var en=r.nocase?"i":"";try{var er=new RegExp("^"+n+"$",en)}catch{return new RegExp("$.")}return er._glob=t,er._src=n,er}Pc.makeRe=function(t,e){return new Go(t,e||{}).makeRe()};Go.prototype.makeRe=ler;function ler(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?Vne:e.dot?ner:ser,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===Wne?r:typeof o=="string"?her(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Pc.match=function(t,e,r){r=r||{};var n=new Go(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Go.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;mk.sep!=="/"&&(e=e.split(mk.sep).join("/")),e=e.split(S3e),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],A=e;n.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};Go.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,i=0,o=t.length,a=e.length;s<o&&i<a;s++,i++){this.debug("matchOne loop");var A=e[i],c=t[s];if(this.debug(e,A,c),A===!1)return!1;if(A===Wne){this.debug("GLOBSTAR",[e,A,c]);var u=s,l=i+1;if(l===a){for(this.debug("** at the end");s<o;s++)if(t[s]==="."||t[s]===".."||!n.dot&&t[s].charAt(0)===".")return!1;return!0}for(;u<o;){var d=t[u];if(this.debug(`
globstar while`,t,u,e,l,d),this.matchOne(t.slice(u),e.slice(l),r))return this.debug("globstar found match!",u,o,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,u,e,l);break}this.debug("globstar swallow a segment, and continue"),u++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,u,e,l),u===o))}var h;if(typeof A=="string"?(h=c===A,this.debug("string match",A,c,h)):(h=c.match(A),this.debug("pattern match",A,c,h)),!h)return!1}if(s===o&&i===a)return!0;if(s===o)return r;if(i===a)return s===o-1&&t[s]==="";throw new Error("wtf?")};function der(t){return t.replace(/\\(.)/g,"$1")}function her(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var T3e=f(Vu=>{"use strict";var ger=Vu&&Vu.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),fer=Vu&&Vu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),x3e=Vu&&Vu.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&ger(e,t,r);return fer(e,t),e},per=Vu&&Vu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vu,"__esModule",{value:!0});Vu.Path=void 0;var Ek=x3e(B("path")),QE=x3e(Oq()),Ck=per(B("assert")),mer=process.platform==="win32",jne=class{constructor(e){if(this.segments=[],typeof e=="string")if(Ck.default(e,"Parameter 'itemPath' must not be empty"),e=QE.safeTrimTrailingSeparator(e),!QE.hasRoot(e))this.segments=e.split(Ek.sep);else{let r=e,n=QE.dirname(r);for(;n!==r;){let s=Ek.basename(r);this.segments.unshift(s),r=n,n=QE.dirname(r)}this.segments.unshift(r)}else{Ck.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];Ck.default(n,"Parameter 'itemPath' must not contain any empty segments"),n=QE.normalizeSeparators(e[r]),r===0&&QE.hasRoot(n)?(n=QE.safeTrimTrailingSeparator(n),Ck.default(n===QE.dirname(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(Ck.default(!n.includes(Ek.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(Ek.sep)||mer&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=Ek.sep,e+=this.segments[n];return e}};Vu.Path=jne});var k3e=f(Wu=>{"use strict";var Eer=Wu&&Wu.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Cer=Wu&&Wu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Zne=Wu&&Wu.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Eer(e,t,r);return Cer(e,t),e},Ier=Wu&&Wu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Wu,"__esModule",{value:!0});Wu.Pattern=void 0;var Ber=Zne(B("os")),Ik=Zne(B("path")),_A=Zne(Oq()),zB=Ier(B("assert")),Qer=zne(),Kne=Hq(),Jq=T3e(),Ap=process.platform==="win32",Xne=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],zB.default(n.length,"Parameter 'segments' must not empty");let c=t.getLiteral(n[0]);zB.default(c&&_A.hasAbsoluteRoot(c),"Parameter 'segments' first element must be a root path"),i=new Jq.Path(n).toString().trim(),e&&(i=`!${i}`)}for(;i.startsWith("!");)this.negate=!this.negate,i=i.substr(1).trim();i=t.fixupPattern(i,s),this.segments=new Jq.Path(i).segments,this.trailingSeparator=_A.normalizeSeparators(i).endsWith(Ik.sep),i=_A.safeTrimTrailingSeparator(i);let o=!1,a=this.segments.map(c=>t.getLiteral(c)).filter(c=>!o&&!(o=c===""));this.searchPath=new Jq.Path(a).toString(),this.rootRegExp=new RegExp(t.regExpEscape(a[0]),Ap?"i":""),this.isImplicitPattern=r;let A={dot:!0,nobrace:!0,nocase:Ap,nocomment:!0,noext:!0,nonegate:!0};i=Ap?i.replace(/\\/g,"/"):i,this.minimatch=new Qer.Minimatch(i,A)}match(e){return this.segments[this.segments.length-1]==="**"?(e=_A.normalizeSeparators(e),!e.endsWith(Ik.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Ik.sep}`)):e=_A.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?Kne.MatchKind.Directory:Kne.MatchKind.All:Kne.MatchKind.None}partialMatch(e){return e=_A.safeTrimTrailingSeparator(e),_A.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(Ap?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(Ap?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){zB.default(e,"pattern cannot be empty");let n=new Jq.Path(e).segments.map(s=>t.getLiteral(s));if(zB.default(n.every((s,i)=>(s!=="."||i===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),zB.default(!_A.hasRoot(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=_A.normalizeSeparators(e),e==="."||e.startsWith(`.${Ik.sep}`))e=t.globEscap Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new L3e.Pattern(i));return n.searchPaths.push(...Wq.getSearchPaths(n.patterns)),n})}static stat(e,r,n){return ese(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Bk.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){tse.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Bk.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Bk.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){tse.debug(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};Ao.DefaultGlobber=rse});var _3e=f(Uw=>{"use strict";var Der=Uw&&Uw.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(Uw,"__esModule",{value:!0});Uw.create=void 0;var xer=P3e();function Ter(t,e){return Der(this,void 0,void 0,function*(){return yield xer.DefaultGlobber.create(t,e)})}Uw.create=Ter});var J3e=f((Ot,Y3e)=>{Ot=Y3e.exports=ur;var En;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?En=function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:En=function(){};Ot.SEMVER_SPEC_VERSION="2.0.0";var yk=256,zq=Number.MAX_SAFE_INTEGER||9007199254740991,nse=16,ker=yk-6,Pw=Ot.re=[],mn=Ot.safeRe=[],me=Ot.src=[],ie=Ot.tokens={},q3e=0;function Er(t){ie[t]=q3e++}var ise="[a-zA-Z0-9-]",sse=[["\\s",1],["\\d",yk],[ise,ker]];function wk(t){for(var e=0;e<sse.length;e++){var r=sse[e][0],n=sse[e][1];t=t.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}return t}Er("NUMERICIDENTIFIER");me[ie.NUMERICIDENTIFIER]="0|[1-9]\\d*";Er("NUMERICIDENTIFIERLOOSE");me[ie.NUMERICIDENTIFIERLOOSE]="\\d+";Er("NONNUMERICIDENTIFIER");me[ie.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+ise+"*";Er("MAINVERSION");me[ie.MAINVERSION]="("+me[ie.NUMERICIDENTIFIER]+")\\.("+me[ie.NUMERICIDENTIFIER]+")\\.("+me[ie.NUMERICIDENTIFIER]+")";Er("MAINVERSIONLOOSE");me[ie.MAINVERSIONLOOSE]="("+me[ie.NUMERICIDENTIFIERLOOSE]+")\\.("+me[ie.NUMERICIDENTIFIERLOOSE]+")\\.("+me[ie.NUMERICIDENTIFIERLOOSE]+")";Er("PRERELEASEIDENTIFIER");me[ie.PRERELEASEIDENTIFIER]="(?:"+me[ie.NUMERICIDENTIFIER]+"|"+me[ie.NONNUMERICIDENTIFIER]+")";Er("PRERELEASEIDENTIFIERLOOSE");me[ie.PRERELEASEIDENTIFIERLOOSE]="(?:"+me[ie.NUMERICIDENTIFIERLOOSE]+"|"+me[ie.NONNUMERICIDENTIFIER]+")";Er("PRERELEASE");me[ie.PRERELEASE]="(?:-("+me[ie.PRERELEASEIDENTIFIER]+"(?:\\."+me[ie.PRERELEASEIDENTIFIER]+")*))";Er("PRERELEASELOOSE");me[ie.PRERELEASELOOSE]="(?:-?("+me[ie.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+me[ie.PRERELEASEIDENTIFIERLOOSE]+")*))";Er("BUILDIDENTIFIER");me[ie.BUILDIDENTIFIER]=ise+"+";Er("BUILD");me[ie.BUILD]="(?:\\+("+me[ie.BUILDIDENTIFIER]+"(?:\\."+me[ie.BUILDIDENTIFIER]+")*))";Er("FULL");Er("FULLPLAIN");me[ie.FULLPLAIN]="v?"+me[ie.MAINVERSION]+me[ie.PRERELEASE]+"?"+me[ie.BUILD]+"?";me[ie.FULL]="^"+me[ie.FULLPLAIN]+"$";Er("LOOSEPLAIN");me[ie.LOOSEPLAIN]="[v=\\s]*"+me[ie.MAINVERSIONLOOSE]+me[ie.PRERELEASELOOSE]+"?"+me[ie.BUILD]+"?";Er("LOOSE");me[ie.LOOSE]="^"+me[ie.LOOSEPLAIN]+"$";Er("GTLT");me[ie.GTLT]="((?:<|>)?=?)";Er("XRANGEIDENTIFIERLOOSE");me[ie.XRANGEIDENTIFIERLOOSE]=me[ie.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";Er("XRANGEIDENTIFIER");me[ie.XRANGEIDENTIFIER]=me[ie.NUMERICIDENTIFIER]+"|x|X|\\*";Er("XRANGEPLAIN");me[ie.XRANGEPLAIN]="[v=\\s]*("+me[ie.XRANGEIDENTIFIER]+")(?:\\.("+me[ie.XRANGEIDENTIFIER]+")(?:\\.("+me[ie.XRANGEIDENTIFIER]+")(?:"+me[ie.PRERELEASE]+")?"+me[ie.BUILD]+"?)?)?";Er("XRANGEPLAINLOOSE");me[ie.XRANGEPLAINLOOSE]="[v=\\s]*("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:"+me[ie.PRERELEASELOOSE]+")?"+me[ie.BUILD]+"?)?)?";Er("XRANGE");me[ie.XRANGE]="^"+me[ie.GTLT]+"\\s*"+me[ie.XRANGEPLAIN]+"$";Er("XRANGELOOSE");me[ie.XRANGELOOSE]="^"+me[ie.GTLT]+"\\s*"+me[ie.XRANGEPLAINLOOSE]+"$";Er("COERCE");me[ie.COERCE]="(^|[^\\d])(\\d{1,"+nse+"})(?:\\.(\\d{1,"+nse+"}))?(?:\\.(\\d{1,"+nse+"}))?(?:$|[^\\d])";Er("COERCERTL");Pw[ie.COERCERTL]=new RegExp(me[ie.COERCE],"g");mn[ie.COERCERTL]=new RegExp(wk(me[ie.COERCE]),"g");Er("LONETILDE");me[ie.LONETILDE]="(?:~>?)";Er("TILDETRIM");me[ie.TILDETRIM]="(\\s*)"+me[ie.LONETILDE]+"\\s+";Pw[ie.TILDETRIM]=new RegExp(me[ie.TILDETRIM],"g");mn[ie.TILDETRIM]=new RegExp(wk(me[ie.TILDETRIM]),"g");var Fer="$1~";Er("TILDE");me[ie.TILDE]="^"+me[ie.LONETILDE]+me[ie.XRANGEPLAIN]+"$";Er("TILDELOOSE");me[ie.TILDELOOSE]="^"+me[ie.LONETILDE]+me[ie.XRANGEPLAINLOOSE]+"$";Er("LONECARET");me[ie.LONECARET]="(?:\\^)";Er("CARETTRIM" Line truncated
`),{implicitDescendants:!1});try{for(var c=!0,u=mtr(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let d=s,h=Zq.relative(a,d).replace(new RegExp(`\\${Zq.sep}`,"g"),"/");Nk.debug(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}Zr.resolvePaths=wtr;function Ntr(t){return Hw(this,void 0,void 0,function*(){return Btr.promisify(use.unlink)(t)})}Zr.unlinkFile=Ntr;function X3e(t,e=[]){return Hw(this,void 0,void 0,function*(){let r="";e.push("--version"),Nk.debug(`Checking ${t} ${e.join(" ")}`);try{yield Etr.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>r+=n.toString(),stderr:n=>r+=n.toString()}})}catch(n){Nk.debug(n.message)}return r=r.trim(),Nk.debug(r),r})}function Str(){return Hw(this,void 0,void 0,function*(){let t=yield X3e("zstd",["--quiet"]),e=Itr.clean(t);return Nk.debug(`zstd version: ${e}`),t===""?XB.CompressionMethod.Gzip:XB.CompressionMethod.ZstdWithoutLong})}Zr.getCompressionMethod=Str;function Rtr(t){return t===XB.CompressionMethod.Gzip?XB.CacheFilename.Gzip:XB.CacheFilename.Zstd}Zr.getCacheFileName=Rtr;function Dtr(){return Hw(this,void 0,void 0,function*(){return use.existsSync(XB.GnuTarPathOnWindows)?XB.GnuTarPathOnWindows:(yield X3e("tar")).toLowerCase().includes("gnu tar")?j3e.which("tar"):""})}Zr.getGnuTarPathOnWindows=Dtr;function xtr(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}Zr.assertDefined=xtr;function Ttr(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Qtr),K3e.createHash("sha256").update(n.join("|")).digest("hex")}Zr.getCacheVersion=Ttr;function ktr(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}Zr.getRuntimeToken=ktr});var Vn={};Su(Vn,{__addDisposableResource:()=>Q4e,__assign:()=>$q,__asyncDelegator:()=>g4e,__asyncGenerator:()=>h4e,__asyncValues:()=>f4e,__await:()=>Gw,__awaiter:()=>a4e,__classPrivateFieldGet:()=>C4e,__classPrivateFieldIn:()=>B4e,__classPrivateFieldSet:()=>I4e,__createBinding:()=>tG,__decorate:()=>e4e,__disposeResources:()=>y4e,__esDecorate:()=>r4e,__exportStar:()=>c4e,__extends:()=>Z3e,__generator:()=>A4e,__importDefault:()=>E4e,__importStar:()=>m4e,__makeTemplateObject:()=>p4e,__metadata:()=>o4e,__param:()=>t4e,__propKey:()=>s4e,__read:()=>hse,__rest:()=>$3e,__rewriteRelativeImportExtension:()=>b4e,__runInitializers:()=>n4e,__setFunctionName:()=>i4e,__spread:()=>u4e,__spreadArray:()=>d4e,__spreadArrays:()=>l4e,__values:()=>eG,default:()=>vtr});function Z3e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");lse(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function $3e(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r}function e4e(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(i=(s<3?o(i):s>3?o(e,r,i):o(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i}function t4e(t,e){return function(r,n){e(r,n,t)}}function r4e(t,e,r,n,s,i){function o(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var a=n.kind,A=a==="getter"?"get":a==="setter"?"set":"value",c=!e&&t?n.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),l,d=!1,h=r.length-1;h>=0;h--){var g={};for(var p in n)g[p]=p==="access"?{}:n[p];for(var p in n.access)g.access[p]=n.access[p];g.addInitializer=function(m){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(m||null))};var C=(0,r[h])(a==="accessor"?{get:u.get,set:u.set}:u[A],g);if(a==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(l=o(C.get))&&(u.get=l),(l=o(C.set))&&(u.set=l),(l=o(C.init))&&s.unshift(l)}else(l=o(C))&&(a==="field"?s.unshift(l):u[A]=l)}c&&Object.defineProperty(c,n.name,u),d=!0}function n4e(t,e,r){for(var n=arguments.length>2,s=0;s<e.length;s++)r=n?e[s].call(t,r):e[s].call(t);return n?r:void 0}function s4e(t){return typeof t=="symbol"?t:"".concat(t)}function i4e(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function o4e(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function a4e(t,e,r,n){function s(i){re Line truncated
${lrr.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};xk.RestError=lG;function drr(t){return t instanceof lG?!0:(0,Arr.isError)(t)&&t.name==="RestError"}});var ZB=f(dG=>{"use strict";Object.defineProperty(dG,"__esModule",{value:!0});dG.uint8ArrayToString=hrr;dG.stringToUint8Array=grr;function hrr(t,e){return Buffer.from(t).toString(e)}function grr(t,e){return Buffer.from(t,e)}});var Tk=f(hG=>{"use strict";Object.defineProperty(hG,"__esModule",{value:!0});hG.logger=void 0;var frr=iG();hG.logger=(0,frr.createClientLogger)("ts-http-runtime")});var z4e=f(fG=>{"use strict";Object.defineProperty(fG,"__esModule",{value:!0});fG.getBodyLength=W4e;fG.createNodeHttpClient=yrr;var _se=(Wn(),$n(Vn)),Lse=_se.__importDefault(B("node:http")),Use=_se.__importDefault(B("node:https")),G4e=_se.__importDefault(B("node:zlib")),prr=B("node:stream"),Y4e=Sk(),mrr=wE(),Fk=Yw(),Jw=Tk(),Err=Dk(),Crr={};function kk(t){return t&&typeof t.pipe=="function"}function J4e(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function V4e(t){return t&&typeof t.byteLength=="number"}var gG=class extends prr.Transform{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},Pse=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Y4e.AbortError("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new Err.Sanitizer;Jw.logger.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=W4e(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let g=e.onUploadProgress,p=new gG(g);p.on("error",C=>{Jw.logger.error("Error in upload progress",C)}),kk(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Irr(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?Brr(c,u):c;let h=e.onDownloadProgress;if(h){let g=new gG(h);g.on("error",p=>{Jw.logger.error("Error in download progress",p)}),A.pipe(g),A=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await Qrr(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();kk(a)&&(c=J4e(a));let u=Promise.resolve();kk(A)&&(u=J4e(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Jw.logger.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((A,c)=>{let u=i?Lse.default.request(a,A):Use.default.request(a,A);u.once("error",l=>{c(new Fk.RestError(l.message,{code:l.code??Fk.RestError.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Y4e.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&kk(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):V4e(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Jw.logger.error("Unrecognized body type",n),c(new Fk.RestError("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?Lse.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Lse.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return Use.default.globalAgent;let s=e.tlsSettings??Crr,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Jw.logger.info("No cached TLS Agent exist, creating a new Agent"),i=new Use.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Irr(t){let e=(0,mrr.createHttpHeaders)();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}function Brr(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=G4e.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=G4e.default.createInflate Line truncated
`.trim())}};lie.exports=CP});var tN=C((QWt,pie)=>{"use strict";var hie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:eVe}=_t(),tVe=am();gie()===void 0&&fie(new tVe);function fie(t){if(!t||typeof t.dispatch!="function")throw new eVe("Argument agent must implement Agent");Object.defineProperty(globalThis,hie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function gie(){return globalThis[hie]}pie.exports={setGlobalDispatcher:fie,getGlobalDispatcher:gie}});var rN=C((SWt,mie)=>{"use strict";mie.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 Cie=C((NWt,Eie)=>{"use strict";var rVe=_S();Eie.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 rVe(r,o,s,i);return r(a,c)}}});var yie=C((TWt,Iie)=>{"use strict";var nVe=VS();Iie.exports=t=>e=>function(n,s){return e(n,new nVe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var bie=C((xWt,Bie)=>{"use strict";var sVe=lt(),{InvalidArgumentError:iVe,RequestAbortedError:oVe}=_t(),aVe=rN(),IP=class extends aVe{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#c=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new iVe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#c=r}onConnect(e){this.#t=e,this.#c.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,s){let o=sVe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new oVe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#c.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#s??e,this.#c.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#c.onError(this.#s):this.#c.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#c.onError(this.reason);return}this.#c.onComplete(e)}}};function cVe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new IP({maxSize:i},s);return e(n,o)}}Bie.exports=cVe});var Sie=C((RWt,wie)=>{"use strict";var{isIP:AVe}=Q("node:net"),{lookup:uVe}=Q("node:dns"),lVe=rN(),{InvalidArgumentError:Em,InformationalError:dVe}=_t(),Qie=Math.pow(2,31)-1,yP=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new dVe("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){uVe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Qie?(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===Qie?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 BP(this,e,r)}},BP=class extends lVe{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":sce(i)&&(r[s]=i);break;case"id":ice(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&sce(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&ice(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}}};oce.exports={EventSourceStream:lO}});var gce=C((aJt,fce)=>{"use strict";var{pipeline:Ize}=Q("node:stream"),{fetching:yze}=ty(),{makeRequest:Bze}=ym(),{webidl:lu}=Kn(),{EventSourceStream:bze}=ace(),{parseMIMEType:Qze}=$s(),{createFastMessageEvent:wze}=Nm(),{isNetworkError:cce}=ZI(),{delay:Sze}=AO(),{kEnumerableProperty:rf}=lt(),{environmentSettingsObject:Ace}=Ri(),uce=!1,lce=3e3,gy=0,dce=1,py=2,Nze="anonymous",Tze="use-credentials",km=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=gy;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),lu.util.markAsUncloneable(this);let n="EventSource constructor";lu.argumentLengthCheck(arguments,1,n),uce||(uce=!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.#c=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:lce};let s=Ace,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=Nze;r.withCredentials&&(o=Tze,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Ace.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=Bze(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===py)return;this.#r=gy;let e={request:this.#i,dispatcher:this.#c},r=n=>{cce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(cce(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=dce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new bze({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(wze(c.type,c.options))}});Ize(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=yze(e)}async#A(){this.#r!==py&&(this.#r=gy,this.dispatchEvent(new Event("error")),await Sze(this.#o.reconnectionTime),this.#r===gy&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a()))}close(){lu.brandCheck(this,t),this.#r!==py&&(this.#r=py,this.#s.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}},hce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:gy,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:dce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:py,writable:!1}};Object.defineProperties(km,hce);Object.defineProperties(km.prototype,hce);Object.defineProperties(km.prototype,{close:rf,onerror:rf,onmessage:rf,onopen:rf,readyState:rf,url:rf,withCredentials:rf});lu.converters.EventSourceInitDict=lu.dictionaryConverter([{key:"withCredentials",converter:lu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:lu.converters.any}]);fce.exports={EventSource:km,defaultReconnectionTime:lce}});var YN=C((cJt,ze)=>{"use strict";var xze=im(),pce=II(),Rze=om(),Dze=hne(),kze=am(),vze=kU(),_ze=Lne(),Fze=Yne(),mce=_t(),qN=lt(),{InvalidArgumentError:GN}=mce,vm=Rse(),Mze=BI(),Lze=hP(),Uze=die(),Pze=pP(),Oze=eP(),Hze=VS(),{getGlobalDispatcher:Ece,setGlobalDispatcher:Gze}=tN(),qze=rN(),Yze=_S(),Vze=FS();Object.assign(pce.prototype,vm);ze.exports.Dispatcher=pce;ze.exports.Client=xze;ze.exports.Pool=Rze;ze.exports.BalancedPool=Dze;ze.exports.Agent=kze;ze.exports.ProxyAgent=vze;ze.exports.EnvHttpProxyAgent=_ze;ze.exports Line truncated
%s`,M,M,I,n);var V=I.type==="*"?n3:I.type==="?"?r3:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+V+"\\("+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 v=a[P],z=n.slice(0,v.reStart),X=n.slice(v.reStart,v.reEnd-8),ee=n.slice(v.reEnd-8,v.reEnd),ce=n.slice(v.reEnd);ee+=ce;var ue=z.split("(").length-1,Fe=ce;for(g=0;g<ue;g++)Fe=Fe.replace(/\)[+*?]?/,"");ce=Fe;var ke="";ce===""&&e!==dT&&(ke="$");var et=z+X+ce+ke+ee;n=et}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===dT)return[n,s];if(!s)return v$e(t);var Ft=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Ft)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Hi.makeRe=function(t,e){return new un(t,e||{}).makeRe()};un.prototype.makeRe=k$e;function k$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?n3:e.dot?Q$e:w$e,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===uf?r:typeof o=="string"?_$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}Hi.match=function(t,e,r){r=r||{};var n=new un(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};un.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;Ty.sep!=="/"&&(e=e.split(Ty.sep).join("/")),e=e.split(oue),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};un.prototype.matchOne=function(t,e,r){return e.indexOf(uf)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};un.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===uf){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===uf){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var g=String(t[i]);if(f=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||f}for(var E=[[[],0]],m=E[0],I=0,y=[0],B=0;B<A.length;B++){var M=A[B];M===uf?(y.push(I),m=[[],0],E.push(m)):(m[0].push(M),I++)}for(var V=E.length-1,k=t.length-d,P=0;P<E.length;P++)E[P][1]=k-(y[V--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!d)};un.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};un.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===uf)return!1;var l;if(typeof A=="string"?(l=u===A,this.debug("string match",A,u,l)):(l=u.match(A),this.debug("pattern match",A,u,l)),!l)return!1}if(i===a&&o===c)return!0;if(i===a)return r;if(o===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function v$e(t){return t.replace(/\\(.)/g,"$1")}function _$e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Om=C((ujt,hue)=>{"use strict";var G$e="2.0.0",q$e=Number.MAX_SAFE_INTEGER||9007199254740991,Y$e=16,V$e=250,W$e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];hue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Y$e,MAX_SAFE_BUILD_LENGTH:V$e,MAX_SAFE_INTEGER:q$e,RELEASE_TYPES:W$e,SEMVER_SPEC_VERSION:G$e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ky=C((ljt,fue)=>{"use strict";var J$e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};fue.exports=J$e});var Hm=C((xc,gue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:i3,MAX_SAFE_BUILD_LENGTH:z$e,MAX_LENGTH:j$e}=Om(),K$e=ky();xc=gue.exports={};var $$e=xc.re=[],X$e=xc.safeRe=[],me=xc.src=[],Z$e=xc.safeSrc=[],Ee=xc.t={},eXe=0,o3="[a-zA-Z0-9-]",tXe=[["\\s",1],["\\d",j$e],[o3,z$e]],rXe=t=>{for(let[e,r]of tXe)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+"+XT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Vtt()+e+" "+t[0]}function Vtt(){return vn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Wtt(...t){return process.stderr.write($T.formatWithOptions(vn.inspectOpts,...t)+`
`)}function Jtt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function ztt(){return process.env.DEBUG}function jtt(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=j3()(vn);var{formatters:Yde}=XT.exports;Yde.o=function(t){return this.inspectOpts.colors=this.useColors,$T.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Yde.O=function(t){return this.inspectOpts.colors=this.useColors,$T.inspect(t,this.inspectOpts)}});var ZT=C((H$t,X3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?X3.exports=Ude():X3.exports=Vde()});var zde=C(ai=>{"use strict";var Ktt=ai&&ai.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),$tt=ai&&ai.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Wde=ai&&ai.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ktt(e,t,r);return $tt(e,t),e};Object.defineProperty(ai,"__esModule",{value:!0});ai.req=ai.json=ai.toBuffer=void 0;var Xtt=Wde(Q("http")),Ztt=Wde(Q("https"));async function Jde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ai.toBuffer=Jde;async function ert(t){let r=(await Jde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ai.json=ert;function trt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Ztt:Xtt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ai.req=trt});var e8=C(Yi=>{"use strict";var Kde=Yi&&Yi.__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=Yi&&Yi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$de=Yi&&Yi.__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)&&Kde(e,t,r);return rrt(e,t),e},nrt=Yi&&Yi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Kde(e,t,r)};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.Agent=void 0;var srt=$de(Q("net")),jde=$de(Q("http")),irt=Q("https");nrt(zde(),Yi);var kc=Symbol("AgentBaseInternalState"),Z3=class extends jde.Agent{constructor(e){super(e),this[kc]={}}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 srt.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)?irt.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 jde.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[kc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[kc].currentSocket;if(this[kc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[kc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[kc]&&(this[kc].defaultPort=e)}get protocol(){return this[kc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[kc]&&(this[kc].protocol=e)}};Yi.Agent=Z3});var Xde=C(Km=>{"use strict";var ort=Km&&Km.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Km,"__esModule",{value:!0});Km.parseProxyResponse=void 0;var art=ort(ZT()),ex=(0,art.default)("https-proxy-agent:parse-proxy-response");function crt(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){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){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 g=f.split(" "),E=+g[1],m=g.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let B=y.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,B).toLowerCase(),V=y.slice(B+1).trimStart(),k=I[M];typeof k=="string"?I[M]=[k,V]:Array.isArray(k)?k.push(V):I[M]=V}ex("got proxy server response: %o %o",f,I),o(),e({connect:{statusCode:E,statusText:m,headers:I},buffered:l})}t.on("error",c),t.on("end",a),i()})}Km.parseProxyResponse=crt});var she=C(ko=>{"use strict";var Art=ko&&ko.__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]})),urt=ko&&ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rhe=ko&&ko.__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 urt(e,t),e},nhe=ko&&ko.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ko,"__esModule",{value:!0});ko.HttpsProxyAgent=void 0;var tx=rhe(Q("net")),Zde=rhe(Q("tls")),lrt=nhe(Q("assert")),drt=nhe(ZT()),hrt=e8(),frt=Q("url"),grt=Xde(),Wy=(0,drt.default)("https-proxy-agent"),ehe=t=>t.servername===void 0&&t.host&&!tx.isIP(t.host)?{...t,servername:t.host}:t,rx=class extends hrt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new frt.URL(e):e,this.proxyHeaders=r?.headers??{},Wy("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?the(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:"?(Wy("Creating `tls.Socket`: %o",this.connectOpts),s=Zde.connect(ehe(this.connectOpts))):(Wy("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,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,grt.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",prt),r.secureEndpoint?(Wy("Upgrading socket connection to TLS"),Zde.connect({...the(ehe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new tx.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Wy("Replaying proxy buffer for failed request"),(0,lrt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};rx.protocols=["http","https"];ko.HttpsProxyAgent=rx;function prt(t){t.resume()}function the(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var ahe=C(vo=>{"use strict";var mrt=vo&&vo.__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=vo&&vo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ohe=vo&&vo.__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)&&mrt(e,t,r);return Ert(e,t),e},Crt=vo&&vo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vo,"__esModule",{value:!0});vo.HttpProxyAgent=void 0;var Irt=ohe(Q("net")),yrt=ohe(Q("tls")),Brt=Crt(ZT()),brt=Q("events"),Qrt=e8(),ihe=Q("url"),$m=(0,Brt.default)("http-proxy-agent"),nx=class extends Qrt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new ihe.URL(e):e,this.proxyHeaders=r?.headers??{},$m("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?wrt(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 ihe.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;$m("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&($m("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),$m("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?($m("Creating `tls.Socket`: %o",this.connectOpts),i=yrt.connect(this.connectOpts)):($m("Creating `net.Socket`: %o",this.connectOpts),i=Irt.connect(this.connectOpts)),await(0,brt.once)(i,"connect"),i}};nx.protocols=["http","https"];vo.HttpProxyAgent=nx;function wrt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Dhe=C(gx=>{"use strict";Object.defineProperty(gx,"__esModule",{value:!0});gx.state=void 0;gx.state={instrumenterImplementation:void 0}});var zhe=C(Ix=>{"use strict";Object.defineProperty(Ix,"__esModule",{value:!0});Ix.state=void 0;Ix.state={operationRequestMap:new WeakMap}});var Dpe=C((Gfr,vct)=>{vct.exports={name:"@actions/cache",version:"6.2.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var vpe=C((qfr,kpe)=>{var _ct=Dpe();kpe.exports={version:_ct.version}});var XR=C(y0=>{"use strict";Object.defineProperty(y0,"__esModule",{value:!0});y0.isJsonObject=y0.typeofJsonValue=void 0;function qct(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}y0.typeofJsonValue=qct;function Yct(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}y0.isJsonObject=Yct});var eD=C(B0=>{"use strict";Object.defineProperty(B0,"__esModule",{value:!0});B0.base64encode=B0.base64decode=void 0;var ku="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),ZR=[];for(let t=0;t<ku.length;t++)ZR[ku[t].charCodeAt(0)]=t;ZR[45]=ku.indexOf("+");ZR[95]=ku.indexOf("/");function Vct(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)}B0.base64decode=Vct;function Wct(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}B0.base64encode=Wct});var Upe=C(tD=>{"use strict";Object.defineProperty(tD,"__esModule",{value:!0});tD.utf8read=void 0;var WH=t=>String.fromCharCode.apply(String,t);function Jct(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(WH(n)),s=0);return r.length?(s&&r.push(WH(n.slice(0,s))),r.join("")):WH(n.slice(0,s))}tD.utf8read=Jct});var GB=C(nA=>{"use strict";Object.defineProperty(nA,"__esModule",{value:!0});nA.WireType=nA.mergeBinaryOptions=nA.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=nA.UnknownFieldHandler||(nA.UnknownFieldHandler={}));function jct(t,e){return Object.assign(Object.assign({},t),e)}nA.mergeBinaryOptions=jct;var Kct;(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"})(Kct=nA.WireType||(nA.WireType={}))});var nD=C(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.varint32read=fi.varint32write=fi.int64toString=fi.int64fromString=fi.varint64write=fi.varint64read=void 0;function $ct(){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")}fi.varint64read=$ct;function Xct(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)}}fi.varint64write=Xct;var rD=65536*65536;function Zct(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]}fi.int64fromString=Zct;function eAt(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)}fi.int64toString=eAt;function tAt(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)}}fi.varint32write=tAt;function rAt(){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}fi.varint32read=rAt});var dd=C(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.PbLong=ld.PbULong=ld.detectBi=void 0;var qB=nD(),or;function Ppe(){let t=new DataView(new ArrayBuffer(8));or=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}ld.detectBi=Ppe;Ppe();function Ope(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Hpe=/^-?[0-9]+$/,iD=4294967296,sD=2147483648,oD=c Line truncated
`)}};RD.RpcError=C9});var y9=C(kD=>{"use strict";Object.defineProperty(kD,"__esModule",{value:!0});kD.mergeRpcOptions=void 0;var mme=ct();function Qut(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=mme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=mme.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=Qut;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 b9=C(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.Deferred=Gf.DeferredState=void 0;var oA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(oA=Gf.DeferredState||(Gf.DeferredState={}));var B9=class{constructor(e=!0){this._state=oA.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!==oA.PENDING)throw new Error(`cannot resolve ${oA[this.state].toLowerCase()}`);this._resolve(e),this._state=oA.RESOLVED}reject(e){if(this.state!==oA.PENDING)throw new Error(`cannot reject ${oA[this.state].toLowerCase()}`);this._reject(e),this._state=oA.REJECTED}resolvePending(e){this._state===oA.PENDING&&this.resolve(e)}rejectPending(e){this._state===oA.PENDING&&this.reject(e)}};Gf.Deferred=B9});var w9=C(vD=>{"use strict";Object.defineProperty(vD,"__esModule",{value:!0});vD.RpcOutputStreamController=void 0;var Eme=b9(),qf=ct(),Q9=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){qf.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){qf.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){qf.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(){qf.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;qf.assert(e,"bad state"),qf.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 Eme.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;qf.assert(n.state==Eme.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};vD.RpcOutputStreamController=Q9});var N9=C(x0=>{"use strict";var wut=x0&&x0.__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(x0,"__esModule",{value:!0});x0.UnaryCall=void 0;var S9=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 wut(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}})}};x0.UnaryCall=S9});var x9=C(R0=>{"use strict";var Sut=R0&&R0.__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(R0,"__esModule",{value:!0});R0.ServerStreamingCall=void 0;var T9=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 _Ie=C(vIe=>{"use strict";var wY=Yu().Buffer;vIe._dbcs=Vu;var es=-1,kIe=-2,ra=-10,Ps=-1e3,AE=new Array(256),Wb=-1;for(ok=0;ok<256;ok++)AE[ok]=es;var ok;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]=AE.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(AE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(AE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Ps-o[n]],c=48;c<=57;c++){if(a[c]===es)a[c]=Ps-s;else if(a[c]>Ps)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Ps-a[c]],u=129;u<=254;u++){if(A[u]===es)A[u]=Ps-i;else{if(A[u]===Ps-i)continue;if(A[u]>Ps)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Ps-A[u]],d=48;d<=57;d++)l[d]===es&&(l[d]=kIe)}}}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 OIt(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(wIt.has(s)){r=s;break}}return r}function HIt(t,e){let r=OIt(e);r!==""&&(t.referrerPolicy=r)}function GIt(){return"allowed"}function qIt(){return"success"}function YIt(){return"success"}function VIt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function WIt(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&&YV(t.origin)&&!YV(Cg(t))&&(e=null);break;case"same-origin":rQ(t,Cg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function fE(t,e){return t}function JIt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:fE(t.domainLookupStartTime,r),domainLookupEndTime:fE(t.domainLookupEndTime,r),connectionStartTime:fE(t.connectionStartTime,r),connectionEndTime:fE(t.connectionEndTime,r),secureConnectionStartTime:fE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function zIt(t){return fE(xIt.now(),t)}function jIt(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 Abe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function KIt(t){return{referrerPolicy:t.referrerPolicy}}function $It(t){let e=t.referrerPolicy;nQ(e);let r=null;if(t.referrer==="client"){let i=sbe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Fd.is.URL(t.referrer)&&(r=t.referrer);let n=qV(r),s=qV(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??qV(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Cg(t);return Eg(n)&&!Eg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Cg(t);return rQ(n,i)?n:Eg(n)&&!Eg(i)?"no-referrer":s}case"same-origin":return rQ(t,n)?n:"no-referrer";case"origin-when-cross-origin":return rQ(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Cg(t);return Eg(n)&&!Eg(i)?"no-referrer":n}}}function qV(t,e=!1){return nQ(Fd.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 XIt=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)$/),ZIt=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)),ZIt(t)):XIt(t)}function eyt(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 Eg(t){return Fd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:eyt(t.origin):!1}function tyt(t){}function rQ(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function ryt(t){return t.controller.state==="aborted"}function nyt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function syt(t){return DIt[t.toLowerCase()]??t}var iyt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function lbe(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,iyt),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 oyt(t,e,r,n=0,s=1){let i=lbe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Fd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Fd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ia(a=>ZV(a)&&a!==59,t,e);i=$V.decode(o)}return{name:n,value:i,extended:s}}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 Bi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=ia(a=>a!==10&&a!==13&&a!==58,t,e);if(o=XV(o,!0,!0,a=>a===9||a===32),!Byt.test(o.toString()))throw Bi("header name does not match the field-name token production");if(t[e.position]!==58)throw Bi("expected :");switch(e.position++,ia(a=>a===32||a===9,t,e),yyt(o)){case"content-disposition":{r=n=null;let a=!1;if(ia(A=>ZV(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Bi("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=xyt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw Bi("name attribute is required in content-disposition header");break}case"content-type":{let a=ia(c=>c!==10&&c!==13,t,e);a=XV(a,!1,!0,c=>c===9||c===32),s=Cbe(a);break}case"content-transfer-encoding":{let a=ia(c=>c!==10&&c!==13,t,e);a=XV(a,!1,!0,c=>c===9||c===32),i=Cbe(a);break}default:ia(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Bi("expected CRLF");e.position+=2}}function ia(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function XV(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 Dyt(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 Bi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function kyt(t){return t<=31||t===127}function vyt(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 ZV(t){return t<=127&&t!==32&&t!==9&&!kyt(t)&&!vyt(t)}Ibe.exports={multipartFormDataParser:Tyt,validateBoundary:Nyt}});var sQ=C((zyr,Bbe)=>{"use strict";function _yt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}Bbe.exports={createDeferredPromise:_yt}});var mE=C((jyr,Nbe)=>{"use strict";var r7=Ze(),{ReadableStreamFrom:Fyt,readableStreamClose:Myt,fullyReadBody:Lyt,extractMimeType:Uyt}=ro(),{FormData:bbe,setFormDataState:Pyt}=Dk(),{webidl:tc}=ts(),e7=Q("node:assert"),{isErrored:t7,isDisturbed:Oyt}=Q("node:stream"),{isUint8Array:Hyt}=Q("node:util/types"),{serializeAMimeType:Gyt}=sa(),{multipartFormDataParser:qyt}=ybe(),{createDeferredPromise:Yyt}=sQ(),{parseJSONFromBytes:Vyt}=zu(),{utf8DecodeBytes:Wyt}=wk(),{runtimeFeatures:Jyt}=ju(),zyt=Jyt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),kk=new TextEncoder;function jyt(){}var Kyt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Oyt(e)&&!t7(e)&&e.cancel("Response object has been garbage collected").catch(jyt)});function wbe(t,e=!1){let r=null,n=null;tc.is.ReadableStream(t)?r=t:tc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),e7(tc.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(tc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(tc.is.BufferSource(t))i=tc.util.getCopyOfBytesHeldByBufferSource(t);else if(tc.is.FormData(t)){let A=`----formdata-undici-0${`${zyt(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 g=!1;for(let[m,I]of t)if(typeof I=="string"){let y=kk.encode(u+`; name="${l(d(m))}"\r
\r
${d(I)}\r
`);h.push(y),o+=y.byteLength}else{let y=qJ.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
`);h.push(y),o+=y.byteLength}else{let y=kk.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
\r
`);h.push(y,I,g),typeof I.size=="number"?o+=y.byteLength+I.size+g.byteLength:p=!0}let C=qJ.encode(`--${c}--\r
`);h.push(C),o+=C.byteLength,p&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${c}`}else if(Jd.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(DEe.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Jd.is.ReadableStream(t)?t:hYr(t)}return(typeof i=="string"||CYr(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(REe(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!REe(r)&&n.enqueue(typeof c=="string"?qJ.encode(c):new Uint8Array(c));queueMicrotask(()=>gYr(n))})(),[{stream:r,source:i,length:o},a]}function DYr(t,e=!1){return Jd.is.ReadableStream(t)&&(SEe(!DEe.isDisturbed(t),"The body has already been consumed."),SEe(!t.locked,"The stream is locked.")),iht(t,e)}function xYr(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function TYr(t,e){return{blob(){return mD(this,n=>{let s=sht(e(this));return s===null?s="":s&&(s=IYr(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return mD(this,n=>new Uint8Array(n).buffer,t,e)},text(){return mD(this,bYr,t,e)},json(){return mD(this,yYr,t,e)},formData(){return mD(this,n=>{let s=sht(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=BYr(n,s),o=new nht;return mYr(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new nht;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return mD(this,n=>new Uint8Array(n),t,e)}}}function kYr(t,e){Object.assign(t.prototype,TYr(t,e))}function mD(t,e,r,n){try{Jd.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),oht(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=QYr(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(fYr(t.body,o,i),s.promise)}function oht(t){let e=t.body;return e!=null&&(e.stream.locked||DEe.isDisturbed(e.stream))}function sht(t){let e=t.headersList,r=pYr(e);return r==="failure"?null:r}aht.exports={extractBody:iht,safelyExtractBody:DYr,cloneBody:xYr,mixinBody:kYr,streamRegistry:RYr,bodyUnusable:oht}});var Eht=f((tGn,mht)=>{"use strict";var Lt=B("node:assert"),Pt=Wt(),{channels:Aht}=PC(),xEe=fme(),{RequestContentLengthMismatchError:yQ,ResponseContentLengthMismatchError:FYr,RequestAbortedError:ght,HeadersTimeoutError:MYr,HeadersOverflowError:vYr,SocketError:Av,InformationalError:CD,BodyTimeoutError:LYr,HTTPParserError:UYr,ResponseExceededMaxSizeError:PYr}=or(),{kUrl:fht,kReset:cc,kClient:UEe,kParser:oi,kBlocking:cv,kRunning:ba,kPending:_Yr,kSize:cht,kWriting:qC,kQueue:Vd,kNoRef:ov,kKeepAliveDefaultTimeout:OYr,kHostHeader:HYr,kPendingIdx:qYr,kRunningIdx:Pl,kError:_l,kPipelining:JJ,kSocket:ID,kKeepAliveTimeoutValue:WJ,kMaxHeadersSize:GYr,kKeepAliveMaxTimeout:YYr,kKeepAliveTimeoutThreshold:JYr,kHeadersTimeout:VYr,kBodyTimeout:WYr,kStrictContentLength:FEe,kMaxRequests:uht,kCounter:zYr,kMaxResponseSize:jYr,kOnError:KYr,kResume:HC,kHTTPContext:pht,kClosed:MEe}=Mn(),Sg=adt(),XYr=Buffer.alloc(0),GJ=Buffer[Symbol.species],ZYr=Pt.removeAllListeners,TEe;function $Yr(){let t=process.env.JEST_WORKER_ID?nEe():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(udt())}catch{}return e||(e=new WebAssembly.Module(t||nEe())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Lt(ji.ptr===n);let o=s-Dg+Rg.byteOffset;return ji.onStatus(new GJ(Rg.buffer,o,i))},wasm_on_message_begin:n=>(Lt(ji.ptr===n),ji.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Lt(ji.ptr===n);let o=s-Dg+Rg.byteOffset;return ji.onHeaderField(new GJ(Rg.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Lt(ji.ptr===n);let o=s-Dg+Rg.byteOffset;return ji.onHeaderValue(new GJ(Rg.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Lt(ji.ptr===n),ji.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Lt(ji.ptr===n);let o=s-Dg+Rg.byteOffset;return ji.onBody(new GJ(Rg.buffer,o,i))},wasm_on_message_complete:n=>(Lt(ji.ptr===n),ji.onMessageComplete())}})}var kEe=null,ji=null,Rg=null,YJ=0,Dg=null,e5r=0,av=1,BD=2|av,VJ=4|av,vEe=8|e5r,LEe=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Sg.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[GYr],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxRespons Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[HYr],i?p+=`connection: upgrade\r
`);h.push(y,I,f),typeof I.size=="number"?o+=y.byteLength+I.size+f.byteLength:g=!0}let E=kk.encode(`--${A}--\r
`);h.push(E),o+=E.byteLength,g&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${A}`}else if(tc.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(r7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=tc.is.ReadableStream(t)?t:Fyt(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(t7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!t7(r)&&n.enqueue(typeof A=="string"?kk.encode(A):new Uint8Array(A));queueMicrotask(()=>Myt(n))})(),[{stream:r,source:i,length:o},a]}function $yt(t,e=!1){return tc.is.ReadableStream(t)&&(e7(!r7.isDisturbed(t),"The body has already been consumed."),e7(!t.locked,"The stream is locked.")),wbe(t,e)}function Xyt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function Zyt(t,e){return{blob(){return pE(this,n=>{let s=Qbe(e(this));return s===null?s="":s&&(s=Gyt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return pE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return pE(this,Wyt,t,e)},json(){return pE(this,Vyt,t,e)},formData(){return pE(this,n=>{let s=Qbe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=qyt(n,s),o=new bbe;return Pyt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new bbe;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 pE(this,n=>new Uint8Array(n),t,e)}}}function eBt(t,e){Object.assign(t.prototype,Zyt(t,e))}function pE(t,e,r,n){try{tc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Sbe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=Yyt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(Lyt(t.body,o,i),s.promise)}function Sbe(t){let e=t.body;return e!=null&&(e.stream.locked||r7.isDisturbed(e.stream))}function Qbe(t){let e=t.headersList,r=Uyt(e);return r==="failure"?null:r}Nbe.exports={extractBody:wbe,safelyExtractBody:$yt,cloneBody:Xyt,mixinBody:eBt,streamRegistry:Kyt,bodyUnusable:Sbe}});var Gbe=C((Kyr,Hbe)=>{"use strict";var He=Q("node:assert"),De=Ze(),{channels:Tbe}=vd(),n7=LY(),{RequestContentLengthMismatchError:Ig,ResponseContentLengthMismatchError:xbe,RequestAbortedError:Lbe,InvalidArgumentError:tBt,HeadersTimeoutError:rBt,HeadersOverflowError:nBt,SocketError:yg,InformationalError:EE,BodyTimeoutError:sBt,HTTPParserError:iBt,ResponseExceededMaxSizeError:oBt}=$e(),{kUrl:Ube,kReset:bi,kClient:Lk,kParser:gr,kBlocking:aQ,kRunning:hn,kPending:u7,kSize:Rbe,kWriting:Md,kQueue:rc,kNoRef:iQ,kKeepAliveDefaultTimeout:aBt,kHostHeader:cBt,kPendingIdx:ABt,kRunningIdx:oa,kError:Os,kPipelining:Fk,kSocket:bg,kKeepAliveTimeoutValue:Uk,kMaxHeadersSize:uBt,kKeepAliveMaxTimeout:lBt,kKeepAliveTimeoutThreshold:dBt,kHeadersTimeout:hBt,kBodyTimeout:fBt,kStrictContentLength:o7,kMaxRequests:Dbe,kCounter:gBt,kMaxResponseSize:pBt,kOnError:kbe,kResume:$u,kHTTPContext:Pbe,kClosed:a7}=Kt(),no=NBe(),vbe=Buffer.alloc(0),vk=Buffer[Symbol.species],mBt=De.removeAllListeners,Qg=Symbol("kIdleSocketValidation"),Bg=Symbol("kIdleSocketValidationTimeout"),l7=Symbol("kSocketUsed"),s7;function EBt(){let t=process.env.JEST_WORKER_ID?RV():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(RBe())}catch{}return e||(e=new WebAssembly.Module(t||RV())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{He(Wr.ptr===n);let o=s-pA+gA.byteOffset;return Wr.onStatus(new vk(gA.buffer,o,i))},wasm_on_message_begin:n=>(He(Wr.ptr===n),Wr.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{He(Wr.ptr===n);let o=s-pA+gA.byteOffset;return Wr.onHeaderField(new vk(gA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{He(Wr.ptr===n);let o=s-pA+gA.byteOffset;return Wr.onHeaderValue(new vk(gA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(He(Wr.ptr===n),Wr.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{He(Wr.ptr===n);let o=s-pA+gA.byteOffset;return Wr.onBody(new vk(gA.buffer,o,i))},wasm_on_message_complete:n=>(He(Wr.ptr===n),Wr.onMessageComplete())}})}var i7=null,Wr=null,gA=null,_k=0,pA=null,CBt=0,oQ=1,CE=2|oQ,Mk=4|oQ,c7=8|CBt,A7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(no.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[uBt],this.shouldKeepAliv Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[cBt],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[JJ]&&!h[cc]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return Aht.sendHeaders.hasSubscribers&&Aht.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?dht(g,null,t,e,h,u,p,l):Pt.isBuffer(A)?dht(g,A,t,e,h,u,p,l):Pt.isBlobLike(A)?typeof A.stream=="function"?hht(g,A.stream(),t,e,h,u,p,l):l5r(g,A,t,e,h,u,p,l):Pt.isStream(A)?u5r(g,A,t,e,h,u,p,l):Pt.isIterable(A)?hht(g,A,t,e,h,u,p,l):Lt(!1),!0}function u5r(t,e,r,n,s,i,o,a){Lt(i!==0||r[ba]===0,"stream body cannot be pipelined");let A=!1,c=new zJ({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Pt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new ght;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,Lt(s.destroyed||s[qC]&&r[ba]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Pt.destroy(e,g):Pt.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function dht(t,e,r,n,s,i,o,a){try{e?Pt.isBuffer(e)&&(Lt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[Fk]&&!h[bi]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return Tbe.sendHeaders.hasSubscribers&&Tbe.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?Fbe(f,null,t,e,h,u,g,l):De.isBuffer(c)?Fbe(f,c,t,e,h,u,g,l):De.isBlobLike(c)?typeof c.stream=="function"?Mbe(f,c.stream(),t,e,h,u,g,l):DBt(f,c,t,e,h,u,g,l):De.isStream(c)?RBt(f,c,t,e,h,u,g,l):De.isIterable(c)?Mbe(f,c,t,e,h,u,g,l):He(!1),!0}function RBt(t,e,r,n,s,i,o,a){He(i!==0||r[hn]===0,"stream body cannot be pipelined");let c=!1,A=new Pk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){De.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new Lbe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,He(s.destroyed||s[Md]&&r[hn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?De.destroy(e,f):De.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 Fbe(t,e,r,n,s,i,o,a){try{e?De.isBuffer(e)&&(He(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[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[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"):(He(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[$u]()}catch(c){t(c)}}async function DBt(t,e,r,n,s,i,o,a){He(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Ig;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[bi]=!0),r[$u]()}catch(c){t(c)}}async function Mbe(t,e,r,n,s,i,o,a){He(i!==0||r[hn]===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)=>{He(c===null),s[Os]?h(s[Os]):c=d});s.on("close",A).on("drain",A);let l=new Pk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Os])throw s[Os];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var Pk=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[Os])throw r[Os];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[o7])throw new Ig;process.emitWarning(new Ig)}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[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[gr].timeout&&r[gr].timeoutType===CE&&r[gr].timeout.refresh&&r[gr].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[Os])throw e[Os];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[o7])throw new Ig;process.emitWarning(new Ig)}e[gr].timeout&&e[gr].timeoutType===CE&&e[gr].timeout.refresh&&e[gr].timeout.refresh(),n[$u]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Md]=!1,e&&(He(n[hn]<=1,"pipeline should only contain this request"),s(e))}};Hbe.exports=IBt});var $be=C(($yr,Kbe)=>{"use strict";var ca=Q("node:assert"),{pipeline:kBt}=Q("node:stream"),At=Ze(),{RequestContentLengthMismatchError:g7,RequestAbortedError:vBt,SocketError:lQ,InformationalError:Ld,InvalidArgumentError:_Bt}=$e(),{kUrl:uQ,kReset:qk,kClient:so,kRunning:dQ,kPending:FBt,kQueue:Ud,kPendingIdx:m7,kRunningIdx:nc,kError:io,kSocket:kr,kStrictContentLength:MBt,kOnError:IE,kMaxConcurrentStreams:Hk,kPingInterval:qbe,kHTTP2Session:Xu,kHTTP2InitialWindowSize:LBt,kHTTP2ConnectionWindowSize:UBt,kResume:mA,kSize:PBt,kHTTPContext:E7,kClosed:p7,kBodyTimeout:OBt,kEnableConnectProtocol:cQ,kRemoteSettings:AQ,kHTTP2Stream:Ok,kHTTP2SessionState:C7}=Kt(),{channels:Ybe}=vd(),aa=Symbol("open streams"),Vbe,Gk;try{Gk=Q("node:http2")}catch{Gk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:HBt,HTTP2_HEADER_METHOD:Wbe,HTTP2_HEADER_PATH:Jbe,HTTP2_HEADER_SCHEME:d7,HTTP2_HEADER_CONTENT_LENGTH:GBt,HTTP2_HEADER_EXPECT:qBt,HTTP2_HEADER_STATUS:h7,HTTP2_HEADER_PROTOCOL:YBt,NGHTTP2_REFUSED_STREAM:VBt,NGHTTP2_CANCEL:WBt}}=Gk;function f7(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 JBt(t,e){t[kr]=e;let r=t[LBt],n=t[UBt],s=Gk.connect(t[uQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[Hk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[kr]=e,s[aa]=0,s[so]=t,s[kr]=e,s[C7]={ping:{interval:t[qbe]===0?null:setInterval($Bt,t[qbe],s).unref()}},s[cQ]=!1,s[AQ]=!1,n&&At.addListener(s,"connect",jBt.bind(s,n)),At.addListener(s,"error",XBt),At.addListener(s,"frameError",ZBt),At.addListener(s,"end",ebt),At.addListener(s,"goaway",tbt),At.addListener(s,"close",rbt),At.addListener(s,"remoteSettings",KBt),s.unref(),t[Xu]=s,e[Xu]=s,At.addListener(e,"error",sbt),At.addListener(e,"end",ibt),At.addListener(e,"close",nbt),e[p7]=!1,e.on("close",obt),{version:"h2",defaultPipelining:1/0,write(i){return cbt(t,i)},resume(){zBt(t)},destroy(i,o){e[p7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[dQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[AQ]===!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[AQ]===!1;return!1}}}function zBt(t){let e=t[kr];e?.destroyed===!1&&(t[PBt]===0||t[Hk]===0?(e.unref(),t[Xu].unref()):(e.ref(),t[Xu].ref()))}function jBt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function KBt(t){if(this[so][Hk]=t.maxConcurrentStreams??this[so][Hk],this[AQ]===!0&&this[cQ]===!0&&t.enableConnectProtocol===!1){let e=new Ld("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[kr][io]=e,this[so][IE](e);return}this[cQ]=t.enableConnectProtocol??this[cQ],this[AQ]=!0,this[so][mA]()}function $Bt(t){let e=t[C7];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[so],o=this[so];if(n!=null){let a=new Ld(`HTTP/2: "PING" errored - type ${n.message}`);o[io]=a,i[IE](a)}else i.emit("ping",s)}}function XBt(t){ca(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[kr][io]=t,this[so][IE](t)}function ZBt(t,e,r){if(r===0){let n=new Ld(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[kr][io]=n,this[so][IE](n)}}function ebt(){let t=new lQ("other side closed",At.getSocketInfo(this[kr]));this.destroy(t),At.destroy(this[kr],t)}function tbt(t){let e=this[io]||new lQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,At.getSocketInfo(this[kr])),r=this[so];if(r[kr]=null,r[E7]=null,this.close(),this[Xu]=null,At.destroy(this[kr],e),r[nc]<r[Ud].length){let n=r[Ud][r[nc]];r[Ud][r[nc]++]=null,At.errorRequest(r,n,e),r[m7]=r[nc]}ca(r[dQ]===0),r.emit("disconnect",r[uQ],[r],e),r.emit("connectionError",r[uQ],[r],e),r[mA]()}function rbt(){let{[so]:t,[C7]:e}=this,{[kr]:r}=t,n=this[kr][io]||this[io]||new lQ("closed",At.getSocketInfo(r));if(t[kr]=null,t[E7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ca(t[FBt]===0);let s=t[Ud].splice(t[nc]);for(let i=0;i<s.length;i++){let o=s[i];At.errorRequest(t,o,n)}}}function nbt(){let t=this[io]||new lQ("closed",At.getSocketInfo(this)),e=this[Xu][so];e[kr]=null,e[E7]=null,this[Xu]!==null&&this[Xu].destroy(t),e[m7]=e[nc],ca(e[dQ]===0),e.emit("disconnect",e[uQ],[e],t),e[mA]()}function sbt(t){ca(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[io]=t,this[so][IE](t)}function ibt(){At.destroy(this,new lQ("other side closed",At.getSocketInfo(this)))}func Line truncated
`;Ybe.sendHeaders.publish({request:e,headers:k,socket:n[kr]})}let B=s==="GET"||s==="HEAD"||d===null;c?(h[qBt]="100-continue",f=n.request(h,{endStream:B,signal:A}),f[Ok]=!0,f.once("continue",V)):(f=n.request(h,{endStream:B,signal:A}),f[Ok]=!0,V()),++n[aa],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[h7]:P,...v}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),f7(v),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[nc]++]=null,t[mA]()):(m(new Ld("HTTP/2: stream half-closed (remote)")),t[Ud][t[nc]++]=null,t[m7]=t[nc],t[mA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[aa]-=1,n[aa]===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[aa]-=1,n[aa]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function V(){!d||y===0?zbe(m,f,null,t,e,t[kr],y,I):At.isBuffer(d)?zbe(m,f,d,t,e,t[kr],y,I):At.isBlobLike(d)?typeof d.stream=="function"?jbe(m,f,d.stream(),t,e,t[kr],y,I):ubt(m,f,d,t,e,t[kr],y,I):At.isStream(d)?Abt(m,t[kr],I,f,d,t,e,y):At.isIterable(d)?jbe(m,f,d,t,e,t[kr],y,I):ca(!1)}}function zbe(t,e,r,n,s,i,o,a){try{r!=null&&At.isBuffer(r)&&(ca(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[qk]=!0),s.onRequestSent(),n[mA]()}catch(c){t(c)}}function Abt(t,e,r,n,s,i,o,a){ca(a!==0||i[dQ]===0,"stream body cannot be pipelined");let c=kBt(s,n,u=>{u?(At.destroy(c,u),t(u)):(At.removeAllListeners(c),o.onRequestSent(),r||(e[qk]=!0),i[mA]())});At.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function ubt(t,e,r,n,s,i,o,a){ca(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new g7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[qk]=!0),n[mA]()}catch(c){t(c)}}async function jbe(t,e,r,n,s,i,o,a){ca(o!==0||n[dQ]===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)=>{ca(c===null),i[io]?d(i[io]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[io])throw i[io];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[qk]=!0),n[mA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}Kbe.exports=JBt});var Gd=C((Xyr,iQe)=>{"use strict";var Zu=Q("node:assert"),tQe=Q("node:net"),hQ=Q("node:http"),wg=Ze(),{ClientStats:lbt}=dV(),{channels:yE}=vd(),dbt=gBe(),hbt=gg(),{InvalidArgumentError:pr,InformationalError:fbt,ClientDestroyedError:gbt}=$e(),pbt=pg(),{kUrl:EA,kServerName:Hd,kClient:mbt,kBusy:y7,kConnect:Ebt,kResuming:Sg,kRunning:mQ,kPending:EQ,kSize:fQ,kQueue:sc,kConnected:Cbt,kConnecting:BE,kNeedDrain:Od,kKeepAliveDefaultTimeout:Xbe,kHostHeader:Ibt,kPendingIdx:ic,kRunningIdx:tl,kError:ybt,kPipelining:Yk,kKeepAliveTimeoutValue:Bbt,kMaxHeadersSize:bbt,kKeepAliveMaxTimeout:Qbt,kKeepAliveTimeoutThreshold:wbt,kHeadersTimeout:Sbt,kBodyTimeout:Nbt,kStrictContentLength:Tbt,kConnector:gQ,kMaxRequests:B7,kCounter:xbt,kClose:Rbt,kDestroy:Dbt,kDispatch:kbt,kLocalAddress:pQ,kMaxResponseSize:vbt,kOnError:_bt,kHTTPContext:sn,kMaxConcurrentStreams:Fbt,kHTTP2InitialWindowSize:Mbt,kHTTP2ConnectionWindowSize:Lbt,kResume:el,kPingInterval:Ubt}=Kt(),Pbt=Gbe(),Obt=$be(),Pd=Symbol("kClosedResolve"),Hbt=hQ&&hQ.maxHeaderSize&&Number.isInteger(hQ.maxHeaderSize)&&hQ.maxHeaderSize>0?()=>hQ.maxHeaderSize:()=>{throw new pr("http module not available or http.maxHeaderSize invalid")},Zbe=()=>{};function rQe(t){return t[Yk]??t[sn]?.defaultPipelining??1}var b7=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:g,tls:E,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:B,localAddress:M,maxResponseSize:V,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:v,allowH2:z,useH2c:X,initialWindowSize:ee,connectionWindowSize:ce,pingInterval:ue,webSocket:Fe}={}){if(A!==void 0)throw new pr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new pr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new pr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new pr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw Line truncated
`,this[Nbt]=a??3e5,this[Sbt]=n??3e5,this[Tbt]=m??!0,this[B7]=B,this[Pd]=null,this[vbt]=V>-1?V:-1,this[sn]=null,this[Fbt]=v??100,this[Mbt]=ee??262144,this[Lbt]=ce??524288,this[Ubt]=ue??6e4,this[sc]=[],this[tl]=0,this[ic]=0,this[el]=ke=>Q7(this,ke),this[_bt]=ke=>nQe(this,ke)}get pipelining(){return this[Yk]}set pipelining(e){this[Yk]=e,this[el](!0)}get stats(){return new lbt(this)}get[EQ](){return this[sc].length-this[ic]}get[mQ](){return this[ic]-this[tl]}get[fQ](){return this[sc].length-this[tl]}get[Cbt](){return!!this[sn]&&!this[BE]&&!this[sn].destroyed}get[y7](){return!!(this[sn]?.busy(null)||this[fQ]>=(rQe(this)||1)||this[EQ]>0)}[Ebt](e){sQe(this),this.once("connect",e)}[kbt](e,r){let n=new dbt(this[EA].origin,e,r);return this[sc].push(n),this[Sg]||(wg.bodyLength(n.body)==null&&wg.isIterable(n.body)?(this[Sg]=1,queueMicrotask(()=>Q7(this))):this[el](!0)),this[Sg]&&this[Od]!==2&&this[y7]&&(this[Od]=2),this[Od]<2}[Rbt](){return new Promise(e=>{this[fQ]?this[Pd]=e:e(null)})}[Dbt](e){return new Promise(r=>{let n=this[sc].splice(this[ic]);for(let i=0;i<n.length;i++){let o=n[i];wg.errorRequest(this,o,e)}let s=()=>{this[Pd]&&(this[Pd](),this[Pd]=null),r(null)};this[sn]?(this[sn].destroy(e,s),this[sn]=null):queueMicrotask(s),this[el]()})}};function nQe(t,e){if(t[mQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Zu(t[ic]===t[tl]);let r=t[sc].splice(t[tl]);for(let n=0;n<r.length;n++){let s=r[n];wg.errorRequest(t,s,e)}Zu(t[fQ]===0)}}function sQe(t){Zu(!t[BE]),Zu(!t[sn]);let{host:e,hostname:r,protocol:n,port:s}=t[EA];if(r[0]==="["){let i=r.indexOf("]");Zu(i!==-1);let o=r.substring(1,i);Zu(tQe.isIPv6(o)),r=o}t[BE]=!0,yE.beforeConnect.hasSubscribers&&yE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[sn]?.version,servername:t[Hd],localAddress:t[pQ]},connector:t[gQ]});try{t[gQ]({host:e,hostname:r,protocol:n,port:s,servername:t[Hd],localAddress:t[pQ]},(i,o)=>{if(i){I7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[el]();return}if(t.destroyed){wg.destroy(o.on("error",Zbe),new gbt),t[el]();return}Zu(o);try{t[sn]=o.alpnProtocol==="h2"?Obt(t,o):Pbt(t,o)}catch(a){o.destroy().on("error",Zbe),I7(t,a,{host:e,hostname:r,protocol:n,port:s}),t[el]();return}t[BE]=!1,o[xbt]=0,o[B7]=t[B7],o[mbt]=t,o[ybt]=null,yE.connected.hasSubscribers&&yE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[sn]?.version,servername:t[Hd],localAddress:t[pQ]},connector:t[gQ],socket:o}),t.emit("connect",t[EA],[t]),t[el]()})}catch(i){I7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[el]()}}function I7(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[BE]=!1,yE.connectError.hasSubscribers&&yE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[sn]?.version,servername:t[Hd],localAddress:t[pQ]},connector:t[gQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Zu(t[mQ]===0);t[EQ]>0&&t[sc][t[ic]].servername===t[Hd];){let o=t[sc][t[ic]++];wg.errorRequest(t,o,e)}else nQe(t,e);t.emit("connectionError",t[EA],[t],e)}}function eQe(t){t[Od]=0,t.emit("drain",t[EA],[t])}function Q7(t,e){t[Sg]!==2&&(t[Sg]=2,Gbt(t,e),t[Sg]=0,t[tl]>256&&(t[sc].splice(0,t[tl]),t[ic]-=t[tl],t[tl]=0))}function Gbt(t,e){for(;;){if(t.destroyed){Zu(t[EQ]===0);return}if(t[Pd]&&!t[fQ]){t[Pd](),t[Pd]=null;return}if(t[sn]&&t[sn].resume(),t[y7])t[Od]=2;else if(t[Od]===2){e?(t[Od]=1,queueMicrotask(()=>eQe(t))):eQe(t);continue}if(t[EQ]===0||t[mQ]>=(rQe(t)||1))return;let r=t[sc][t[ic]];if(r===null)return;if(t[EA].protocol==="https:"&&t[Hd]!==r.servername){if(t[mQ]>0)return;t[Hd]=r.servername,t[sn]?.destroy(new fbt("servername changed"),()=>{t[sn]=null,Q7(t)})}if(t[BE])return;if(!t[sn]){sQe(t);return}if(t[sn].destroyed||t[sn].busy(r))return;!r.aborted&&t[sn].write(r)?t[ic]++:t[sc].splice(t[ic],1)}}iQe.exports=b7});var w7=C((eBr,oQe)=>{"use strict";var Vk=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)}};oQe.exports=class{constructor(){this.head=this.tail=new Vk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Vk),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 Wk=C((tBr,gQe)=>{"use strict";var{PoolStats:qbt}=dV(),Ybt=gg(),Vbt=w7(),{kConnected:S7,kSize:aQe,kRunning:cQe,kPending:AQe,kQueued:CQ,kBusy:Wbt,kFree:Jbt,kUrl:zbt,kClose:jbt,kDestroy:Kbt,kDispatch:$bt}=Kt(),Vn=Symbol("clients"),Hs=Symbol("needDrain"),IQ=Symbol("queue"),N7=Symbol("closed resolve"),T7=Symbol("onDrain"),uQe=Symbol("onConnect"),lQe=Symbol("onDisconnect"),dQe=Symbol("onConnectionError"),x7=Symbol("get dispatcher"),hQe=Symbol("add client"),fQe=Symbol("remove client"),R7=class extends Ybt{[IQ]=new Vbt;[CQ]=0;[Vn] 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())}};O1e.exports=zW});var KW=C((kBr,Y1e)=>{"use strict";var{InvalidArgumentError:J1t}=$e(),{runtimeFeatures:z1t}=ju();function j1t(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 H1e=z1t.has("crypto")?Q("node:crypto"):null,K1t=H1e?.hash?t=>H1e.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function q1e(t){return Array.isArray(t)&&(t.length&1)===0}function $1t(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 X1t(t){let e={};if(!t)return e;if(q1e(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 G1e=["record","playback","update"];function Z1t(t){if(!G1e.includes(t))throw new J1t(`Invalid snapshot mode: ${t}. Must be one of: ${G1e.join(", ")}`)}Y1e.exports={createHeaderFilters:j1t,hashId:K1t,isUndiciHeaders:q1e,normalizeHeaders:X1t,isUrlExcludedFactory:$1t,validateSnapshotMode:Z1t}});var Z1e=C((vBr,X1e)=>{"use strict";var{writeFile:eSt,readFile:tSt,mkdir:rSt}=Q("node:fs/promises"),{dirname:nSt,resolve:V1e}=Q("node:path"),{setTimeout:sSt,clearTimeout:W1e}=Q("node:timers"),{InvalidArgumentError:J1e,UndiciError:iSt}=$e(),{hashId:oSt,isUrlExcludedFactory:aSt,normalizeHeaders:z1e,createHeaderFilters:j1e}=KW();function kQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||z1e(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:K1e(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function K1e(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 $1e(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 oSt(r)}var $W=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#c;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#c=j1e(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=aSt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=kQ(e,this.#c,this.matchOptions),s=vQ(n),i=z1e(r.headers),o={statusCode:r.statusCode,headers:$1e(i,this.#c,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=kQ(e,this.#c,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 J1e("Snapshot path is required");try{let n=await tSt(V1e(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 iSt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new J1e("Snapshot path is required");let n=V1e(r);await rSt(nSt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await eSt(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${ao} (
-- 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${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())}};tpt.exports=hIe});var fIe=f((MGn,ipt)=>{"use strict";v
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${cu}
FROM cacheInterceptorV${ao}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${cu} SET
`),this.#i=this.#n.prepare(`
UPDATE cacheInterceptorV${ao} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -316,8 +167,8 @@ ${e.format(r)}`.trim())}};tpt.exports=hIe});var fIe=f((MGn,ipt)=>{"use strict";v
staleAt = ?
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${cu} (
`),this.#s=this.#n.prepare(`
INSERT INTO cacheInterceptorV${ao} (
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${ao} WHERE url = ?`),this.#a=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ao}`),this.#c=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${cu}
ORDER BY cachedAt DESC
FROM cacheInterceptorV${ao}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){PIe(e);let r=this.#g(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){PIe(e);let n=this.#h(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#g(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){PIe(e),szr(r);let n=0,s=[],i=this;return new nzr({decodeStrings:!0,write(o,a,A){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#h(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#h(e){return`${e.origin}/${e.path}`}#g(e,r=!1){let n=this.#h(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!izr(s[l],u[l])){c=!1;break}}if(c)return A}}};function izr(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var vQ=f((n8n,Cmt)=>{"use strict";var{kConstruct:ozr}=Mn(),{kEnumerableProperty:_D}=Wt(),{iteratorMixin:azr,isValidHeaderName:_v,isValidHeaderValue:gmt}=su(),{webidl:Pr}=zo(),OIe=B("node:assert"),kV=B("node:util");function hmt(t){return t===10||t===13||t===9||t===32}function fmt(t){let e=0,r=t.length;for(;r>e&&hmt(t.charCodeAt(r-1));)--r;for(;r>e&&hmt(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function pmt(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Pr.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});HIe(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)HIe(t,r[n],e[r[n]])}else throw Pr.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function HIe(t,e,r){if(r=fmt(r),_v(e)){if(!gmt(r))throw Pr.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Pr.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Emt(t)==="immutable")throw new TypeError("immutable");return MV(t).append(e,r,!1)}function Azr(t){let e=MV(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let A=0;A<s.length;++A)r.push([o,s[A]]);else r.push([o,a])}return e.sortedMap=r}function mmt(t,e){return t[0]<e[0]?-1:1}var FV=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMa Line truncated
${i}`;break;case"retry":wCt(i)&&(r[s]=i);break;case"id":NCt(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&wCt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&NCt(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};SCt.exports={EventSourceStream:yBe}});var LCt=f((R8n,vCt)=>{"use strict";var{pipeline:bXr}=B("node:stream"),{fetching:wXr}=Yv(),{makeRequest:NXr}=HD(),{webidl:AA}=zo(),{EventSourceStream:SXr}=RCt(),{parseMIMEType:RXr}=Ll(),{createFastMessageEvent:DXr}=iW(),{isNetworkError:DCt}=Hv(),{kEnumerableProperty:GQ}=Wt(),{environmentSettingsObject:xCt}=su(),TCt=!1,kCt=3e3,Kv=0,FCt=1,Xv=2,xXr="anonymous",TXr="use-credentials",XD=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=Kv;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),AA.util.markAsUncloneable(this);let n="EventSource constructor";AA.argumentLengthCheck(arguments,1,n),TCt||(TCt=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=AA.converters.USVString(e),r=AA.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=xCt,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=xXr;r.withCredentials===!0&&(o=TXr,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=xCt.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=NXr(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===Xv)return;this.#r=Kv;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!DCt(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(DCt(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?RXr(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=FCt,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new SXr({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(DXr(A.type,A.options))}});bXr(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=wXr(e)}#c(){this.#r!==Xv&&(this.#r=Kv,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===Kv&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){AA.brandCheck(this,t),this.#r!==Xv&&(this.#r=Xv,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=AA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=AA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=AA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},MCt={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Kv,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:FCt,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Xv,writable:!1}};Object.defineProperties(XD,MCt);Object.defineProperties(XD.prototype,MCt);Object.defineProperties(XD.prototype,{close:GQ,onerror:GQ,onmessage:GQ,onopen:GQ,readyState:GQ,url:GQ,withCredentials:GQ});AA.converters.EventSourceInitDict=AA.dictionaryConverter([{key:"withCredentials",converter:AA.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:AA.converters.any},{key:"node",converter:AA.dictionaryConverter([{key:"reconnectionTime",converter:AA.converters["unsigned long"],defaultValue:()=>kCt},{key:"dispatcher",converter:AA.converters.any}]),defaultValue:()=>({})}]);vCt.exports={EventSource:XD,defaultReconnectionTime:kCt}});var qCt=f((D8n,Oe)=>{"use strict";var kXr=jC(),PCt=XM(),FXr=wD(),MXr=egt(),vXr=sgt(),LXr=RQ(),UXr=ECe(),PXr=Rgt(),_Xr=Mgt(),OXr=Ugt(),_Ct=or(),CW=Wt(),{InvalidArgumentError:EW}=_Ct,ZD=Eft(),HXr=gD(),qXr=rIe(),{MockCallHistory:GXr,Mock Line truncated
`)}close(){this.#n.close()}get(e){wJ(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){wJ(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.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){wJ(e),uTt(r);let n=0,s=[],i=this;return new ATt({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.#c.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.#a.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)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!lTt(s[l],u[l])){A=!1;break}}if(A)return c}}};function lTt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var qg=C((tbr,yNe)=>{"use strict";var{kConstruct:dTt}=Kt(),{kEnumerableProperty:OE}=Ze(),{iteratorMixin:hTt,isValidHeaderName:OQ,isValidHeaderValue:pNe}=ro(),{webidl:wt}=ts(),NJ=Q("node:assert"),bv=Q("node:util");function gNe(t){return t===10||t===13||t===9||t===32}function mNe(t){let e=0,r=t.length;for(;r>e&&gNe(t.charCodeAt(r-1));)--r;for(;r>e&&gNe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function ENe(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}.`});TJ(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)TJ(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 TJ(t,e,r){if(r=mNe(r),OQ(e)){if(!pNe(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(INe(t)==="immutable")throw new TypeError("immutable");return wv(t).append(e,r,!1)}function fTt(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 c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function CNe(t,e){return t[0]<e[0]?-1:1}var Qv=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.hea Line truncated
${i}`;break;case"retry":Sxe(i)&&(r[s]=i);break;case"id":Nxe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Sxe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Nxe(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}}};Txe.exports={EventSourceStream:fz}});var Lxe=C((Sbr,Mxe)=>{"use strict";var{pipeline:R2t}=Q("node:stream"),{fetching:D2t}=VQ(),{makeRequest:k2t}=GE(),{webidl:qs}=ts(),{EventSourceStream:v2t}=xxe(),{parseMIMEType:_2t}=sa(),{createFastMessageEvent:F2t}=Kv(),{isNetworkError:Rxe}=GQ(),{kEnumerableProperty:$g}=Ze(),{environmentSettingsObject:Dxe}=ro(),kxe=!1,vxe=3e3,XQ=0,_xe=1,ZQ=2,M2t="anonymous",L2t="use-credentials",XE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=XQ;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),qs.util.markAsUncloneable(this);let n="EventSource constructor";qs.argumentLengthCheck(arguments,1,n),kxe||(kxe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=qs.converters.USVString(e),r=qs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=Dxe,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=M2t;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=Dxe.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=k2t(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===ZQ)return;this.#r=XQ;let e={request:this.#i,dispatcher:this.#c},r=n=>{if(!Rxe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(Rxe(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?_2t(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=_xe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new v2t({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(F2t(c.type,c.options))}});R2t(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=D2t(e)}#A(){this.#r!==ZQ&&(this.#r=XQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===XQ&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a())},this.#o.reconnectionTime)?.unref())}close(){qs.brandCheck(this,t),this.#r!==ZQ&&(this.#r=ZQ,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=qs.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=qs.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=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},Fxe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:XQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:_xe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:ZQ,writable:!1}};Object.defineProperties(XE,Fxe);Object.defineProperties(XE.prototype,Fxe);Object.defineProperties(XE.prototype,{close:$g,onerror:$g,onmessage:$g,onopen:$g,readyState:$g,url:$g,withCredentials:$g});qs.converters.EventSourceInitDict=qs.dictionaryConverter([{key:"withCredentials",converter:qs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:qs.converters.any},{key:"node",converter:qs.dictionaryConverter([{key:"reconnectionTime",converter:qs.converters["unsigned long"],defaultValue:()=>vxe},{key:"dispatcher",converter:qs.converters.any}]),defaultValue:()=>({})}]);Mxe.exports={EventSource:XE,defaultReconnectionTime:vxe}});var qxe=C((Nbr,ge)=>{"use strict";var U2t=Gd(),Pxe=$b(),P2t=Ng(),O2t=bQe(),H2t=NQe(),G2t=Rg(),q2t=X7(),Y2t=z7(),V2t=dwe(),W2t=Cwe(),J2t=Bwe(),Oxe=$e(),A_=Ze(),{InvalidArgumentError:c_}=Oxe,ZE=n1e(),z2t=pg(),j2t=LW(),{MockCallHistory:K2 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 akt(e,r).catch(n=>{throw Uxe?Gxe(n,Uxe):n&&typeof n=="object"&&Error.captureStackTrace(n,ge.exports.fetch),n})};ge.exports.Headers=qg().Headers;ge.exports.Response=GQ().Response;ge.exports.Request=GE().Request;ge.exports.FormData=Dk().FormData;var{setGlobalOrigin:ckt,getGlobalOrigin:Akt}=vV();ge.exports.setGlobalOrigin=ckt;ge.exports.getGlobalOrigin=Akt;var{CacheStorage:ukt}=QTe(),{kConstruct:lkt}=Kt();ge.exports.caches=new ukt(lkt);var{deleteCookie:dkt,getCookies:hkt,getSetCookies:fkt,setCookie:gkt,parseCookie:pkt}=MTe();ge.exports.deleteCookie=dkt;ge.exports.getCookies=hkt;ge.exports.getSetCookies=fkt;ge.exports.setCookie=gkt;ge.exports.parseCookie=pkt;var{parseMIMEType:mkt,serializeAMimeType:Ekt}=sa();ge.exports.parseMIMEType=mkt;ge.exports.serializeAMimeType=Ekt;var{CloseEvent:Ckt,ErrorEvent:Ikt,MessageEvent:ykt}=Kv(),{WebSocket:Bkt,ping:bkt}=gxe();ge.exports.WebSocket=Bkt;ge.exports.CloseEvent=Ckt;ge.exports.ErrorEvent=Ikt;ge.exports.MessageEvent=ykt;ge.exports.ping=bkt;ge.exports.WebSocketStream=bxe().WebSocketStream;ge.exports.WebSocketError=Az().WebSocketError;ge.exports.request=ew(ZE.request);ge.exports.stream=ew(ZE.stream);ge.exports.pipeline=ew(ZE.pipeline);ge.exports.connect=ew(ZE.connect);ge.exports.upgrade=ew(ZE.upgrade);ge.exports.MockClient=j2t;ge.exports.MockCallHistory=K2t;ge.exports.MockCallHistoryLog=$2t;ge.exports.MockPool=Z2t;ge.exports.MockAgent=X2t;ge.exports.SnapshotAgent=ekt;ge.exports.mockErrors=tkt;var{EventSource:Qkt}=Lxe();ge.exports.EventSource=Qkt;function wkt(){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=wkt});var tw=C(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 Vxe=C((Rbr,Yxe)=>{"use strict";var{asciiLowercase:u_,solelyContainsHTTPTokenCodePoints:Skt,soleyContainsHTTPQuotedStringTokenCodePoints:Nkt}=tw();Yxe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=u_(String(e)),this._map.get(e)}has(e){return e=u_(String(e)),this._map.has(e)}set(e,r){if(e=u_(String(e)),r=String(r),!Skt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Nkt(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=u_(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 zxe=C((Dbr,Jxe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:Tkt,removeTrailingHTTPWhitespace:Wxe,isHTTPWhitespaceChar:xkt,solelyContainsHTTPTokenCodePoints:gz,soleyContainsHTTPQuotedStringTokenCodePoints:Rkt,asciiLowercase:pz,collectAnHTTPQuotedString:Dkt}=tw();Jxe.exports=t=>{t=Tkt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!gz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=Wxe(n),n.length===0||!gz(n))return null;let s={type:pz(r),subtype:pz(n),parameters:new Map};for(;e<t.length;){for(++e;xkt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=pz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Dkt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=Wxe(o),o==="")continue}i.length>0&&gz(i)&&Rkt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var Kxe=C((kbr,jxe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:kkt}=tw();jxe.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+="=",(!kkt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var eRe=C((_br,Zxe)=>{"use strict";var vkt=Vxe(),_kt=zxe(),Fkt=Kxe(),{asciiLowercase:$xe,solelyContainsHTTPTokenCodePoints:Xxe}=tw();Zxe.exports=class{constructor(e){e=String(e);let r=_kt(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 vkt(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=$xe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Xxe(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=$xe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Xxe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return Fkt(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 pRe=C((jQr,$kt)=>{$kt.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==="*"?aj:f.type==="?"?uj:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}B(),o&&(s+="\\\\");let M=gvt[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],v=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),X=s.slice(P.reEnd),ee=s.slice(P.reEnd-8,P.reEnd)+X,ce=v.split(")").length,ue=v.split("(").length-ce,Fe=X;for(let et=0;et<ue;et++)Fe=Fe.replace(/\)[+*?]?/,"");X=Fe;let ke=X===""&&r!==cj?"(?:$|\\/)":"";s=v+z+X+ke+ee}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=I()+s),r===cj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return mvt(e);let V=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",V),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?aj:r.dot?hvt:fvt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?Cvt(a):a===Ys?Ys:a._src).reduce((a,c)=>(a[a.length-1]===Ys&&c===Ys||a.push(c),a),[]),o.forEach((a,c)=>{a!==Ys||o[c-1]===Ys||(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]=Ys))}),o.filter(a=>a!==Ys).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;Aj.sep!=="/"&&(e=e.split(Aj.sep).join("/")),e=e.split(qRe),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 ho.defaults(e).Minimatch}};ho.Minimatch=oC});var $Re=C((wwr,KRe)=>{KRe.exports=jRe;var hj=Q("fs"),{EventEmitter:yvt}=Q("events"),{Minimatch:dj}=WRe(),{resolve:Bvt}=Q("path");function bvt(t,e){return new Promise((r,n)=>{hj.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?hj.stat:hj.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?JRe(t,!1):null):r(null):r(o)})})}async function*zRe(t,e,r,n,s,i){let o=await bvt(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*zRe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*Qvt(t,e,r,n){yield*zRe("",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 p_=class extends yvt{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 dj(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 dj(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 dj(i,{dot:!0}))}this.iterator=Qvt(Bvt(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
`,S);S=H===-1?w.length:H}else if(F!==-1&&w[S]==="/"&&w[S+1]==="*"){let H=w.indexOf("*/",S);H!==-1?(S=H+2,F=w.indexOf("*/",S)):(b+=w[S],S++)}else b+=w[S],S++;return b}function aI(w){let b=oI(w.toString()),S=b.match(SM);if(S||(S=b.match(NM)),!S)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]=S;return F.replace(/\s/g,"").split(Q1).map(H=>H.replace(w1,"").trim())}function cI(w,b){var S={};return Object.keys(w).forEach(F=>{var H=w[F],Y,J=h(H),j=!J&&H.length===1||J&&H.length===0;if(Array.isArray(H))Y=[...H],H=Y.pop(),S[F]=Y.concat(Y.length>0?te:H);else if(j)S[F]=H;else{if(Y=aI(H),H.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),S[F]=Y.concat(te)}function te(Se,yt){var Lt=Y.map(St=>Se[St]);Lt.push(yt),E(H)(...Lt)}}),iI(S,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,S){S.prev=b,S.next=b.next,b.next?b.next.prev=S:this.tail=S,b.next=S,this.length+=1}insertBefore(b,S){S.prev=b.prev,S.next=b,b.prev?b.prev.next=S:this.head=S,b.prev=S,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 S=this.head;S;){var{next:F}=S;b(S)&&this.removeLink(S),S=F}return this}}function uI(w,b){w.length=1,w.head=w.tail=b}function kp(w,b,S){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var F=E(w),H=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(qe,be){J[qe].push(be)}function te(qe,be){let Ye=(...Nt)=>{Se(qe,Ye),be(...Nt)};J[qe].push(Ye)}function Se(qe,be){if(!qe)return Object.keys(J).forEach(Ye=>J[Ye]=[]);if(!be)return J[qe]=[];J[qe]=J[qe].filter(Ye=>Ye!==be)}function yt(qe,...be){J[qe].forEach(Ye=>Ye(...be))}var Lt=!1;function St(qe,be,Ye,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Ut.started=!0;var yr,xn;function Io(Rh,...mI){if(Rh)return Ye?xn(Rh):yr();if(mI.length<=1)return yr(mI[0]);yr(mI)}var Mp=Ut._createTaskItem(qe,Ye?Io:Nt||Io);if(be?Ut._tasks.unshift(Mp):Ut._tasks.push(Mp),Lt||(Lt=!0,A(()=>{Lt=!1,Ut.process()})),Ye||!Nt)return new Promise((Rh,mI)=>{yr=Rh,xn=mI})}function Co(qe){return function(be,...Ye){H-=1;for(var Nt=0,yr=qe.length;Nt<yr;Nt++){var xn=qe[Nt],Io=Y.indexOf(xn);Io===0?Y.shift():Io>0&&Y.splice(Io,1),xn.callback(be,...Ye),be!=null&&yt("error",be,xn.data)}H<=Ut.concurrency-Ut.buffer&&yt("unsaturated"),Ut.idle()&&yt("drain"),Ut.process()}}function Fp(qe){return qe.length===0&&Ut.idle()?(A(()=>yt("drain")),!0):!1}let xh=qe=>be=>{if(!be)return new Promise((Ye,Nt)=>{te(qe,(yr,xn)=>{if(yr)return Nt(yr);Ye(xn)})});Se(qe),j(qe,be)};var pI=!1,Ut={_tasks:new AI,_createTaskItem(qe,be){return{data:qe,callback:be}},*[Symbol.iterator](){yield*Ut._tasks[Symbol.iterator]()},concurrency:b,payload:S,buffer:b/4,started:!1,paused:!1,push(qe,be){return Array.isArray(qe)?Fp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!1,be)):St(qe,!1,!1,be)},pushAsync(qe,be){return Array.isArray(qe)?Fp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!0,be)):St(qe,!1,!0,be)},kill(){Se(),Ut._tasks.empty()},unshift(qe,be){return Array.isArray(qe)?Fp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!1,be)):St(qe,!0,!1,be)},unshiftAsync(qe,be){return Array.isArray(qe)?Fp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!0,be)):St(qe,!0,!0,be)},remove(qe){Ut._tasks.remove(qe)},process(){if(!pI){for(pI=!0;!Ut.paused&&H<Ut.concurrency&&Ut._tasks.length;){var qe=[],be=[],Ye=Ut._tasks.length;Ut.payload&&(Ye=Math.min(Ye,Ut.payload));for(var Nt=0;Nt<Ye;Nt++){var yr=Ut._tasks.shift();qe.push(yr),Y.push(yr),be.push(yr.data)}H+=1,Ut._tasks.length===0&&yt("empty"),H===Ut.concurrency&&yt("saturated");var xn=ee(Co(qe));F(be,xn)}pI=!1}},length(){return Ut._tasks.length},running(){return H},workersList(){return Y},idle(){return Ut._tasks.length+H===0},pause(){Ut.paused=!0},resume(){Ut.paused!==!1&&(Ut.paused=!1,A(Ut.process))}};return Object.defineProperties(Ut,{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")}}),Ut}function lI(w,b){return kp(w,1,b)}function vp(w,b,S){return kp(w,b,S)}function Eo(w,b,S,F){F=V(F);var H=E(S);return Ks(w,(Y,J,j)=>{H(b,Y,(te,Se)=>{b=Se,j(te)})},Y=>F(Y,b))}var ba=m(Eo,4);function _p(...w){var b=w.map(E);return function(...S){var F=this,H=S[S.length-1];return typeof H=="function"?S.pop():H=KA(),ba(b,S,(Y,J,j)=>{J.apply(F,Y.concat((te,...Se)=>{j(te,Se)}))},(Y,J)=>H(Y,...J)),H[jA]}}function S1(...w){return _p(...w.reverse())}function we(w,b,S,F){return y(ue(b),w,S,F)}var O=m(we,4);function T(w,b,S,F){var H=E(S);return O(w,b,(Y,J)=>{H(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 G=m(T,4);function K(w,b,S){return G(w,1/0,b,S)}var $=m(K,3);function oe(w,b,S){retur Line truncated
GFS4: `),console.error(t)});_r[ns]||(aDe=global[ns]||[],ADe(_r,aDe),_r.close=(function(t){function e(r,n){return t.call(_r,r,function(s){s||cDe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,y_,{value:t}),e})(_r.close),_r.closeSync=(function(t){function e(r){t.apply(_r,arguments),cDe()}return Object.defineProperty(e,y_,{value:t}),e})(_r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){tp(_r[ns]),Q("assert").equal(_r[ns].length,0)}));var aDe;global[ns]||ADe(global,_r[ns]);mj.exports=gj(_vt(_r));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!_r.__patched&&(mj.exports=gj(_r),_r.__patched=!0);function gj(t){kvt(t),t.gracefulify=gj,t.createReadStream=M,t.createWriteStream=V;var e=t.readFile;t.readFile=r;function r(v,z,X){return typeof z=="function"&&(X=z,z=null),ee(v,z,X);function ee(ce,ue,Fe,ke){return e(ce,ue,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?aC([ee,[ce,ue,Fe],et,ke||Date.now(),Date.now()]):typeof Fe=="function"&&Fe.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(v,z,X,ee){return typeof X=="function"&&(ee=X,X=null),ce(v,z,X,ee);function ce(ue,Fe,ke,et,Ft){return n(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(v,z,X,ee){return typeof X=="function"&&(ee=X,X=null),ce(v,z,X,ee);function ce(ue,Fe,ke,et,Ft){return i(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(v,z,X,ee){return typeof X=="function"&&(ee=X,X=0),ce(v,z,X,ee);function ce(ue,Fe,ke,et,Ft){return a(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(v,z,X){typeof z=="function"&&(X=z,z=null);var ee=u.test(process.version)?function(Fe,ke,et,Ft){return A(Fe,ce(Fe,ke,et,Ft))}:function(Fe,ke,et,Ft){return A(Fe,ke,ce(Fe,ke,et,Ft))};return ee(v,z,X);function ce(ue,Fe,ke,et){return function(Ft,vt){Ft&&(Ft.code==="EMFILE"||Ft.code==="ENFILE")?aC([ee,[ue,Fe,ke],Ft,et||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof ke=="function"&&ke.call(this,Ft,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=vvt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(v){m=v},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(v){y=v},enumerable:!0,configurable:!0});var g=m;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(v){g=v},enumerable:!0,configurable:!0});var E=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(v){E=v},enumerable:!0,configurable:!0});function m(v,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var v=this;P(v.path,v.flags,v.mode,function(z,X){z?(v.autoClose&&v.destroy(),v.emit("error",z)):(v.fd=X,v.emit("open",X),v.read())})}function y(v,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function B(){var v=this;P(v.path,v.flags,v.mode,function(z,X){z?(v.destroy(),v.emit("error",z)):(v.fd=X,v.emit("open",X))})}function M(v,z){return new t.ReadStream(v,z)}function V(v,z){return new t.WriteStream(v,z)}var k=t.open;t.open=P;function P(v,z,X,ee){return typeof X=="function"&&(ee=X,X=null),ce(v,z,X,ee);function ce(ue,Fe,ke,et,Ft){return k(ue,Fe,ke,function(vt,mn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}return t}function aC(t){tp("ENQUEUE",t[0].name,t[1]),_r[ns].push(t),pj()}var I_;function cDe(){for(var t=Date.now(),e=0;e<_r[ns].length;++e)_r[ns][e].length>2&&(_r[ns][e][3]=t,_r[ns][e][4]=t);pj()}function pj(){if(clearTimeout(I_),I_=void 0,_r[ns].length!==0){var t=_r[ns].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)tp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){tp("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?(tp("RETRY",e.name,r),e.apply(null,r.concat([s]))):_r[ns].push(t)}I_===void 0&&(I_=setTimeout(pj,0))}}});var B_=C((Rwr,uDe)=>{"use strict";var FA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";FA.writable=t=>FA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";FA.readable=t=>FA(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};Gke.exports={AggregateError:Zj,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 eK=C((O1r,qke)=>{"use strict";qke.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 ys=C((H1r,Wke)=>{"use strict";var{format:nUt,inspect:H_}=eK(),{AggregateError:sUt}=xr(),iUt=globalThis.AggregateError||sUt,oUt=Symbol("kIsNodeError"),aUt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],cUt=/^([A-Z][a-z0-9]*)+$/,AUt="__node_internal_",G_={};function sp(t,e){if(!t)throw new G_.ERR_INTERNAL_ASSERTION(e)}function Yke(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 uUt(t,e,r){if(typeof e=="function")return sp(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 sp(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:nUt(e,...r)}function is(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(uUt(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[oUt]=!0,G_[t]=n}function Vke(t){let e=AUt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function lUt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new iUt([e,t],e.message);return r.code=e.code,r}return t||e}var tK=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new G_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};is("ERR_ASSERTION","%s",Error);is("ERR_INVALID_ARG_TYPE",(t,e,r)=>{sp(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)sp(typeof c=="string","All expected entries have to be of type string"),aUt.includes(c)?s.push(c.toLowerCase()):cUt.test(c)?i.push(c):(sp(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+=_X(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=_X(" "+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,yh(e.mode&wYt,6),100),kt.write(r,yh(e.uid,6),108),kt.write(r,yh(e.gid,6),116),kYt(e.size,r,124),kt.write(r,yh(e.mtime.getTime()/1e3|0,11),136),r[156]=pM+RYt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(fOe,r,g1),kt.copy(BYt,r,FX),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(pOe(r),6),148),r)};zC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-pM,i=JC(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=xYt(s),d=e[157]===0?null:JC(e,157,100,r),h=JC(e,265,32),f=JC(e,297,32),g=Ih(e,329,8),E=Ih(e,337,8),m=pOe(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(SYt(e))e[345]&&(i=JC(e,345,155,r)+"/"+i);else if(!NYt(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:g,devminor:E,pax:null}};function SYt(t){return kt.equals(fOe,t.subarray(g1,g1+6))}function NYt(t){return kt.equals(bYt,t.subarray(g1,g1+6))&&kt.equals(QYt,t.subarray(FX,FX+2))}function TYt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function xYt(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 RYt(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 gOe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function pOe(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?yYt.slice(0,e)+" ":IYt.slice(0,e-t.length)+t+" "}function DYt(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?DYt(t,e,r):kt.write(e,yh(t,11),r)}function vYt(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 vYt(t);{for(;e<t.length&&t[e]===32;)e++;let n=TYt(gOe(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,gOe(t,0,e,e+r)),n)}function _X(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 yOe=C((hTr,IOe)=>{var{Writable:_Yt,Readable:FYt,getStreamError:mOe}=vX(),MYt=EX(),EOe=GC(),jC=MX(),LYt=EOe.alloc(0),UX=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new MYt,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 LYt;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 EOe.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)}},PX=class extends FYt{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(mOe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=COe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},OX=class extends _Yt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function SO(t){process.exitCode=QO.Failure,No(t)}function Yl(){return process.env.RUNNER_DEBUG==="1"}function q(t){bl("debug",{},t)}function No(t,e={}){bl("error",W1(e),t instanceof Error?t.toString():t)}function Xe(t,e={}){bl("warning",W1(e),t instanceof Error?t.toString():t)}function vce(t,e={}){bl("notice",W1(e),t instanceof Error?t.toString():t)}function re(t){process.stdout.write(t+kce.EOL)}function _ce(t){LM("group",t)}function Fce(){LM("endgroup")}function yy(t,e){if(process.env.GITHUB_STATE||"")return OZ("STATE",HZ(t,e));bl("save-state",{name:t},Bl(e))}function Tc(t){return process.env[`STATE_${t}`]||""}import{readFileSync as _je,existsSync as Fje}from"fs";import{EOL as Mje}from"os";var _m=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(Fje(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${Mje}`)}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 RO=pe(Oce(),1),Hce=pe(YN(),1),jje=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 Gce(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 qce(t){return new RO.HttpClient().getAgent(t)}function Kje(t){return new RO.HttpClient().getAgentDispatcher(t)}function Yce(t){let e=Kje(t);return(n,s)=>jje(this,void 0,void 0,function*(){return(0,Hce.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Vce(){return process.env.GITHUB_API_URL||"https://api.github.com"}function DO(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 Vl(){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 sT(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)=>sT.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 Wce(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 Jce(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 zce=Function.bind,jce=zce.bind(zce);function Kce(t,e,r){let n=jce(Jce,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]=jce(Wce,null).apply(null,i)})}function Xje(){let t=Symbol("Singular"),e={registry:{}},r=sT.bind(null,e,t);return Kce(r,e,t),r}function Zje(){let t={registry:{}},e=sT.bind(null,t);return Kce(e,t),e}var $ce={Singular:Xje,Collection:Zje};var eKe="0.0.0-development",tKe=`octokit-endpoint.js/${eKe} ${Vl()}`,rKe={method:"GET",baseUrl:"ht Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var UKe=class extends Error{constructor(t,e,r){super(LKe(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},PKe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],OKe=["query","method","url"],yAe=/\/api\/v3\/?$/;function HKe(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(OKe.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)=>PKe.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 yAe.test(i)&&(s.url=i.replace(yAe,"/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 UKe(s,a,o.data)}return o.data.data})}function OO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>HKe(r,s,i),{defaults:OO.bind(null,r),endpoint:r.endpoint})}var uzt=OO(Qy,{headers:{"user-agent":`octokit-graphql.js/${MKe} ${Vl()}`},method:"POST",url:"/graphql"});function BAe(t){return OO(t,{method:"POST",url:"/graphql"})}var HO="(?:[a-zA-Z0-9_-]+)",bAe="\\.",QAe=new RegExp(`^${HO}${bAe}${HO}${bAe}${HO}$`),GKe=QAe.test.bind(QAe);async function qKe(t){let e=GKe(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 YKe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function VKe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=YKe(t),e(s)}var wAe=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(qKe.bind(null,e),{hook:VKe.bind(null,e)})};var GO="7.0.6";var SAe=()=>{},WKe=console.warn.bind(console),JKe=console.error.bind(console);function zKe(t={}){return typeof t.debug!="function"&&(t.debug=SAe),typeof t.info!="function"&&(t.info=SAe),typeof t.warn!="function"&&(t.warn=WKe),typeof t.error!="function"&&(t.error=JKe),t}var NAe=`octokit-core.js/${GO} ${Vl()}`,aT=class{static VERSION=GO;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 $ce.Collection,n={baseUrl:Qy.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} ${NAe}`:NAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Qy.defaults(n),this.graphql=BAe(this.request).defaults(n),this.log=zKe(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=wAe(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 qO="17.0.0";var jKe={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}
`)}
`:`${vAe(t.status,e)}
${rBr(e)}
${jO[t.status]}
`}function PAe(t){return t==="enabled"||t==="read-only"||t==="write-only"}function vAe(t,e){if(!PAe(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 s$e(t){return t?r$e[t]:void 0}function i$e(t){return t?n$e[t]:void 0}function o$e(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${ni}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${t$e}) for terms of use and opt-out instructions.`:`**[Basic Caching](${ni}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${ni}#enhanced-caching)** provider.`}function a$e(t){let e=t.entries,r=e.filter(u=>u.restoredKey).length,n=e.filter(u=>u.savedKey).length,s=OAe(e)?`Entries: ${r} restored (${AT(e,u=>u.restoredSize)}Mb), ${n} saved (${AT(e,u=>u.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${n} saved - Expand for more details`,i=t.status==="enabled"?s$e(t.cleanup):void 0,o=i$e(t.projectCache),a=c$e(t.entries),c=`<pre>
${A$e(t.entries)}</pre>`,A=[jO[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 OAe(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function c$e(t){return OAe(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>${_Ae(t,e=>e.restoredSize)}</td>
<td>${AT(t,e=>e.restoredSize)}</td>
<td>${FAe(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>${_Ae(t,e=>e.savedSize)}</td>
<td>${AT(t,e=>e.savedSize)}</td>
<td>${FAe(t,e=>e.savedTime)}</td>
</tr>
</table>
`}function nBr(t){return t.cacheEntries.map(e=>`Entry: ${e.entryName}
</table>`:""}function A$e(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: ${MAe(e.restoredSize)}
Time: ${LAe(e.restoredTime)}
${e.restoredOutcome}
Saved Key : ${e.savedKey??""}
Size: ${Nje(e.savedSize)}
Time: ${Sje(e.savedTime)}
${iBr(e,t.cacheReadOnly)}
Size: ${MAe(e.savedSize)}
Time: ${LAe(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 _Ae(t,e){return t.filter(r=>e(r)).length}function AT(t,e){let r=t.map(n=>e(n)??0).reduce((n,s)=>n+s,0);return Math.round(r/(1024*1024))}function FAe(t,e){return t.map(r=>e(r)??0).reduce((r,n)=>r+n,0)}function MAe(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function LAe(t){return t===void 0||t===0?"":`${t} ms`}import*as nb from"path";import*as Pm from"fs";function KO(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,q(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,q(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,q(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,q(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,q(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as gT from"path";import*as Lm from"path";import Af from"assert";var Wl=process.platform==="win32";function Eu(t){if(t=mu(t),Wl&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Lm.dirname(t);return Wl&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=mu(e)),e}function uT(t,e){if(Af(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Af(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),wy(e))return e;if(Wl){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Af(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(Fa(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Af(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Af(wy(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Wl&&t.endsWith("\\")||(t+=Lm.sep),t+e}function wy(t){return Af(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Fa(t),Wl?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function Sy(t){return Af(t,"isRooted parameter 'itemPath' must not be empty"),t=Fa(t),Wl?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Fa(t){return t=t||"",Wl?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function mu(t){return t?(t=Fa(t),!t.endsWith(Lm.sep)||t===Lm.sep||Wl&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Ma;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Ma||(Ma={}));var HAe=process.platform==="win32";function XO(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=HAe?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=HAe?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 GAe(t,e){let r=Ma.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function qAe(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as uue from"os";import*as Um from"path";var lue=pe(Aue(),1);import hf from"assert";import*as lf from"path";import xy from"assert";var F$e=process.platform==="win32",df=class{constructor(e){if(this.segments=[],typeof e=="string")if(xy(e,"Parameter 'itemPath' must not be empty"),e=mu(e),!Sy(e))this.segments=e.split(lf.sep);else{let r=e,n=Eu(r);for(;n!==r;){let s=lf.basename(r);this.segments.unshift(s),r=n,n=Eu(r)}this.segments.unshift(r)}else{xy(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];xy(n,"Parameter 'itemPath' must not contain any empty segments"),n=Fa(e[r]),r===0&&Sy(n)?(n=mu(n),xy(n===Eu(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(xy(!n.includes(lf.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(lf.sep)||F$e&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=lf.sep,e+=this.segments[n];return e}};var{Minimatch:M$e}=lue.default,Cu=process.platform==="win32",Ry=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],hf(n.length,"Parameter 'segments' must not empty");let A=t.getLiteral(n[0]);hf(A&&wy(A),"Parameter 'segments' first element must be a root path"),i=new df(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 Ry(i));return n.searchPaths.push(...XO(n.patterns)),n})}static stat(e,r,n){return s3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Pm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){q(`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 Pm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Pm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){q(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var O$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 due(t,e){return O$e(this,void 0,void 0,function*(){return yield fT.create(t,e)})}var ide=pe(nde(),1);import*as DT from"crypto";import*as qm from"fs";import*as ff from"path";import*as ode from"util";var Ly;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Ly||(Ly={}));var Ds;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ds||(Ds={}));var Gi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Gi||(Gi={}));var TT=2,xT=5e3,w3=5e3,S3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,sde=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Uy="cache.tar",N3="manifest.txt",tKt=10*Math.pow(1024,3),RT="cache read denied:";var Gm=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())})},$et=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)}},Xet="1.0";function Py(){return Gm(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=ff.join(n,"actions","temp")}let r=ff.join(e,DT.randomUUID());return yield zN(r),r})}function Rc(t){return qm.statSync(t).size}function T3(t){return Gm(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 due(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=$et(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=ff.relative(a,s).replace(new RegExp(`\\${ff.sep}`,"g"),"/");q(`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 Oy(t){return Gm(this,void 0,void 0,function*(){return ode.promisify(qm.unlink)(t)})}function ade(t){return Gm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),q(`Checking ${e} ${r.join(" ")}`);try{yield $N(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){q(s.message)}return n=n.trim(),q(n),n})}function Hy(){return Gm(this,void 0,void 0,function*(){let t=yield ade("zstd",["--quiet"]),e=ide.clean(t);return q(`zstd version: ${e}`),t===""?Ds.Gzip:Ds.ZstdWithoutLong})}function Kl(t){return t===Ds.Gzip?Ly.Gzip:Ly.Zstd}function cde(){return Gm(this,void 0,void 0,function*(){return qm.existsSync(S3)?S3:(yield ade("tar")).toLowerCase().includes("gnu tar")?fu("tar"):""})}function x3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Ym(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Xet),DT.createHash("sha256").update(n.join("|")).digest("hex")}function Ade(){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 I0 from"fs";import{URL as Fct}from"url";var Dc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as Zet}from"node:os";import ett from"node:util";import ttt from"node:process";function ude(t,...e){ttt.stderr.write(`${ett.format(t,...e)}${Zet}`)}import Gy from"node:process";function vT(t){return Gy.env[t]}var lde=typeof Gy.versions.deno=="string"&&Gy.versions.deno.length>0,dde=typeof Gy.versions.bun=="string"&&Gy.versions.bun.length>0,_T=!0;var hde=vT("DEBUG"),gde,R3=[],D3=[],FT=[];hde&&k3(hde);var pde=Object.assign(t=>mde(t),{enable:k3,enabled:v3,disable:rtt,log:ude});function k3(t){gde=t,R3=[],D3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?D3.push(r.substring(1)):R3.push(r);for(let r of FT)r.enabled=v3(r.namespace)}function v3(t){if(t.endsWith("*"))return!0;for(let e of D3)if(fde(t,e))return!1;for(let e of R3)if(fde(t,e))return!0;return!1}function fde(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 rtt(){let t=gde||"";return k3(""),t}function mde(t){let e=Object.assign(r,{enabled:v3(t),destroy:ntt,log:pde.log,namespace:t,extend:stt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return FT.push(e),e}function ntt(){let t=FT.indexOf(this);return t>=0?(FT.splice(t,1),!0):!1}function stt(t){let e=mde(`${this.namespace}:${t}`);return e.log=this.log,e}var Vm=pde;var _3=["verbose","info","warning","error"],Ede={verbose:400,info:300,warning:200,error:100};function Cde(t,e){e.log=(...r)=>{t.log(...r)}}function Ide(t){return _3.includes(t)}function MT(t){let e=new Set,r=vT(t.logLevelEnvVarName),n,s=Vm(t.namespace);s.log=(...u)=>{Vm.log(...u)};function i(u){if(u&&!Ide(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${_3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Vm.enable(l.join(","))}r&&(Ide(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${_3.join(", ")}.`));function o(u){return!!(n&&Ede[u.level]<=Ede[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(Cde(u,d),o(d)){let h=Vm.disable();Vm.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return Cde(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 yde=MT({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),itt=yde.logger;function qy(t){return yde.createClientLogger(t)}function LT(t){return t.toLowerCase()}function ott(t){return String(t).trim().replace(/[\r\n]/g,"")}function*att(t){for(let e of t.values())yield[e.name,e.value]}var F3=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:ott(r)})}get(e){return this._headersMap.get(LT(e))?.value}has(e){return this._ Line truncated
${ltt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Wm(t){return t instanceof ks?!0:pf(t)&&t.name==="RestError"}function si(t,e){return Buffer.from(t,e)}import P3 from"node:http";import O3 from"node:https";import Qde from"node:zlib";import{Transform as dtt}from"node:stream";var ii=qy("ts-http-runtime");var htt={};function Yy(t){return t&&typeof t.pipe=="function"}function wde(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 Sde(t){return t&&typeof t.byteLength=="number"}var OT=class extends dtt{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}},H3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Dc("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 La;ii.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=mtt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,g=new OT(f);g.on("error",E=>{ii.error("Error in upload progress",E)}),Yy(a)?a.pipe(g):g.end(a),a=g}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=ftt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?gtt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new OT(h);f.on("error",g=>{ii.error("Error in download progress",g)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await ptt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Yy(a)&&(A=wde(a));let u=Promise.resolve();Yy(c)&&(u=wde(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{ii.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):O3.request(a,c);u.once("error",l=>{A(new ks(l.message,{code:l.code??ks.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Dc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Yy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Sde(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(ii.error("Unrecognized body type",n),A(new ks("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 O3.globalAgent;let s=e.tlsSettings??htt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(ii.info("No cached TLS Agent exist, creating a new Agent"),i=new O3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function ftt(t){let e=qi();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 gtt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Qde.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Qde.createInflate();return t.pipe(n),n}return t}function ptt(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 ks(`Error reading response as text: ${s.message}`,{code:ks.PARSE_ERROR}))})})}function mtt(t){return t?Buffer.isBuffer(t)?t.length:Yy(t)?null:Sde(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Nde(){return new H3}function HT(){return Nde()}var G3="logPolicy";function GT(t={}){let e=t.logger??ii.info,r=new La({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:G3,asy Line truncated
`;return e}function Urt(t){return t instanceof Uint8Array?t.byteLength:Jy(t)?t.size===-1?void 0:t.size:void 0}function Prt(t){let e=0;for(let r of t){let n=Urt(r);if(n===void 0)return;e+=n}return e}async function Ort(t,e,r){let n=[si(`--${r}`,"utf-8"),...e.flatMap(i=>[si(`\r
`,"utf-8"),si(Lrt(i.headers),"utf-8"),si(`\r
`,"utf-8"),i.body,si(`\r
--${r}`,"utf-8")]),si(`--\r
\r
`,"utf-8")],s=Prt(n);s&&t.headers.set("Content-Length",s),t.body=await Che(n)}var zy="multipartPolicy",Hrt=70,Grt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function qrt(t){if(t.length>Hrt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Grt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function ux(){return{name:zy,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?qrt(r):r=Mrt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Ort(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function lx(){return PT()}var Ihe=MT({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),ner=Ihe.logger;function _o(t){return Ihe.createClientLogger(t)}var vc=_o("core-rest-pipeline");function o8(t={}){return GT({logger:vc.info,...t})}var a8=cx;function c8(t={}){return Ax(t)}import A8 from"node:os";import Zl from"node:process";function yhe(){return"User-Agent"}async function Bhe(t){if(Zl&&Zl.versions){let e=`${A8.type()} ${A8.release()}; ${A8.arch()}`;Zl.versions.bun?t.set("Bun",`${Zl.versions.bun} (${e})`):Zl.versions.deno?t.set("Deno",`${Zl.versions.deno} (${e})`):Zl.versions.node&&t.set("Node",`${Zl.versions.node} (${e})`)}}var dx="1.24.0";function $rt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function bhe(){return yhe()}async function hx(t){let e=new Map;e.set("core-rest-pipeline",dx),await Bhe(e);let r=$rt(e);return t?`${t} ${r}`:r}var Qhe=bhe(),whe="userAgentPolicy";function u8(t={}){let e=hx(t.userAgentPrefix);return{name:whe,async sendRequest(r,n){return r.headers.has(Qhe)||r.headers.set(Qhe,await e),n(r)}}}var She=Symbol("rawContent");function l8(t){return typeof t[She]=="function"}function Nhe(t){return l8(t)?t[She]():t}var fx=zy;function d8(){let t=ux();return{name:fx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)l8(n.body)&&(n.body=Nhe(n.body));return t.sendRequest(e,r)}}}var h8=ox;function f8(){return ax()}function g8(t={}){return VT(t)}function p8(){return WT()}var jy=class extends Error{constructor(e){super(e),this.name="AbortError"}};function m8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new jy(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 ont="The delay was aborted.";function Xm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return m8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??ont})}function ed(t){if(pf(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 The(t){return pf(t)}function Zm(){return gf()}var Jt=_T;function td(t){return r8(t)}function C8(t,e){return ix(t,e)}var xhe="setClientRequestIdPolicy";function I8(t="x-ms-client-request-id"){return{name:xhe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function y8(t){return JT(t)}function B8(t){return zT(t)}var e0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Rhe(t={}){let e=new b8(t.parentContext);return t.span&&(e=e.setValue(e0.span,t.span)),t.namespace&&(e=e.setValue(e0.namespace,t.namespace)),e}var b8=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 khe=pe(Dhe(),1),px=khe.state;function ant(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function cnt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:ant(),tracingContext:Rhe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Ky(){return px.instrumenterImplementation||(px.instrumenterImplementation=cnt()),px.instrumenterImplementation}function $y(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=Ky().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--),!Rst(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",en("InvalidTag",l,vs(t,i))}let A=wst(t,i);if(A===!1)return en("InvalidAttr","Attributes for '"+c+"' have open quote.",vs(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=hfe(u,e);if(d===!0)n=!0;else return en(d.err.code,d.err.msg,vs(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return en("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",vs(t,o));if(r.length===0)return en("InvalidTag","Closing tag '"+c+"' has not been opened.",vs(t,o));{let l=r.pop();if(c!==l.tagName){let d=vs(t,l.tagStartPos);return en("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",vs(t,o))}r.length==0&&(s=!0)}}else return en("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",vs(t,i));else{let l=hfe(u,e);if(l!==!0)return en(l.err.code,l.err.msg,vs(t,i-u.length+l.err.line));if(s===!0)return en("InvalidXml","Multiple possible root nodes found.",vs(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=dfe(t,i);continue}else if(t[i+1]==="?"){if(i=lfe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=Tst(t,i);if(l==-1)return en("InvalidChar","char '&' is not expected.",vs(t,i));i=l}else if(s===!0&&!ufe(t[i]))return en("InvalidXml","Extra text at the end",vs(t,i));t[i]==="<"&&i--}}else{if(ufe(t[i]))continue;return en("InvalidChar","char '"+t[i]+"' is not expected.",vs(t,i))}if(n){if(r.length==1)return en("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",vs(t,r[0].tagStartPos));if(r.length>0)return en("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return en("InvalidXml","Start tag expected.",1);return!0}function ufe(t){return t===" "||t===" "||t===`
`||t==="\r"}function lfe(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 en("InvalidXml","XML declaration allowed only at the start of the document.",vs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function dfe(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 bst='"',Qst="'";function wst(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===bst||t[e]===Qst)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 Sst=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function hfe(t,e){let r=wx(t,Sst),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return en("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 en("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",aB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return en("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",aB(r[s]));let i=r[s][2];if(!xst(i))return en("InvalidAttr","Attribute '"+i+"' is an invalid name.",aB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return en("InvalidAttr","Attribute '"+i+"' is repeated.",aB(r[s]))}return!0}function Nst(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 Tst(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Nst(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 en(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function xst(t){return H8(t)}function Rst(t){return H8(t)}function vs(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 ffe={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"},gfe={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"},pfe={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 Ai("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new uB(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=o0(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=j8(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=K8(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 Ai(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=o0(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=o0(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=K8(t,a,s.removeNSPrefix);if(!u){let V=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${V}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,g=u.closeIndex;if({tagName:l,tagExp:h}=j8(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let I=null,y={},B;B=rit(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,l),I&&(y=tit(I,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let V="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,g+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,V=P.tagContent}let k=new Ai(l);I&&(k[":@"]=I),k.add(s.textNodeName,V),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=j8(s.transformTagName,l,h,s));let V=new Ai(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let V=new Ai(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let V=new Ai(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),r=V}n="",a=g}}}else n+=t[a];return e.child};function cit(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 Ait(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 uit(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 lit(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function dit(t,e,r=">"){Line truncated
`;function Iit(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(r4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function Gfe(t,e,r,n,s){return!r.sanitizeName||bf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function t4(t,e){let r="";e.format&&(r=Cit);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 Ji(a)):a instanceof Ji&&n.push(a)}let s=Iit(t,e),i=new Mc;return qfe(t,e,r,i,n,s)}function qfe(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=e4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=r4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:Gfe(u,!1,e,n,i),h=yit(A[":@"],e);n.push(d,h);let f=bit(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=e4(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],B=Mx(y);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],B=Fx(y);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Hfe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let E=Hfe(A[":@"],e,f,n,i),m=r+`<${d}${E}`,I;f?I=Yfe(A[u],e):I=qfe(A[u],e,g,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!I||I.length===0)&&e.suppressEmptyNode?o+=m+"/>":I&&I.endsWith(">")?o+=m+`>${I}${r}</${d}>`:(o+=m+">",I&&r!==""&&(I.includes("/>")||I.includes("</"))?o+=r+e.indentBy+I+r:o+=I,o+=`</${d}>`),a=!0,n.pop()}return o}function yit(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]=sd(t[s]),n=!0}return n?r:null}function Yfe(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=r4(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=Bit(s[":@"],e),a=Yfe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Bit(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)}="${sd(s)}"`}return r}function r4(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 Hfe(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:Gfe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=e4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${sd(A)}"`}return i}function bit(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 e4(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 n4(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 Qit={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function li(t){if(this.options=Object.assign({},Qit,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 Ji(r)):r instanceof Ji&&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 wit(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 s4(t,e,r,n,s){return!r.sanitizeName||bf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}li.prototype.build=function(t){if(this.options.preserveOrder)return t4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Mc,r=wit(t,this.options);return this.j2x(t,0,e,r).val}};li.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let u=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:s4(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=s4(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 g=t[c][f];if(!(typeof g>"u"))if(g===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(u);let E=this.j2x(g,e+1,r,n);r.pop(),d+=E.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(h+=E.attrStr)}else d+=this.processTextOrObjNode(g,u,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,g);E=this.replaceEntitiesValue(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let m=""+g;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(g,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=s4(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}};li.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+'="'+sd(e)+'"'};function Sit(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}li.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=sd(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]=sd(t[n]),r=!0)}return r?e:null};li.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isA Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Ke.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Ke.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(Ke.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 Sf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new gB(e,r,this)}computeHMACSHA256(e){return Uit("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Nf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var In=_o("storage-common");var Fo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Fo||(Fo={}));var od={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Pit=new Nf("The operation was aborted."),pB=class extends Lc{retryOptions;constructor(e,r,n=od){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:od.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):od.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:od.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:od.maxRetryDelayInMs):od.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:od.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:od.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=id(s.url,bu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(In.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(In.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 In.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 In.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 In.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return In.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(Ke.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')?(In.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 Fo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Fo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return In.info(`RetryPolicy: Delay for ${s}ms`),Wx(s,n,Pit)}};var mB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new pB(e,r,this.retryOptions)}};var Oit="storageBrowserPolicy";function jfe(){return{name:Oit,async sendRequest(t,e){return Jt||((t.method==="GET"||t.method==="HEAD")&&(t.url=id(t.url,bu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Ke.COOKIE),t.headers.delete(Ke.CONTENT_LENGTH)),e(t)}}}var Hit="StorageCorrectContentLengthPolicy";function Kfe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Ke.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Hit,async sendRequest(e,r){return t(e),r(e)}}}var Git="storageRetryPolicy",c0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},qit=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Yit=new Nf("The operation was aborted.");function $fe(t={}){let e=t.retryPolicyType??c0.retryPolicyType,r=t.maxTries??c0.maxTries,n=t.retryDelayInMs??c0.retryDelayInMs,s=t.maxRetryDelayInMs??c0.maxRetryDelayInMs,i=t.secondaryHost??c0.secondaryHost,o=t.tryTimeoutInMs??c0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return In.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of qit)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=Vit("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(Ke.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===Ke.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(Ke.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:Wit,async sendRequest(i,o){return e(i),o(i)}}}var Jit="storageRequestFailureDetailsParserPolicy";function Xfe(){return{name:Jit,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",Qu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ua="",u4="*",jit=1*1024*1024;var Kit=4*jit;var Zfe="AES256",ege="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",tge=["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"],rge=["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"],nge="BlobUsesCustomerSpecifiedEncryption",sge="BlobDoesNotUseCustomerSpecifiedEncryption",ige=["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 EB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function tn(t,e={}){t||(t=new Sr);let r=new EB([],e);return r._credential=t,r}function $it(t){let e=[Xit,oge,Zit,eot,tot,rot,sot];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>not(s));return{wrappedPolicies:P8(r),afterRetry:n}}}}function l4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?O8(e):c4(),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=eB({...r,loggingOptions:{additionalAllowedHeaderNames:tge,additionalAllowedQueryParameters:rge,logger:Ux.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Lx,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:o4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:h8}),s.addPolicy(Kfe()),s.addPolicy($fe(r.retryOptions),{phase:"Retry"}),s.addPolicy(Xfe()),s.addPolicy(jfe());let a=$it(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=d4(t);Vi(c)?s.addPolicy(t0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new qa(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 Xat(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ga(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 qa(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 Zat(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ga(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 qa(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 ect(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ga(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 qa(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 tct(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ga(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 qa(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 rct(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ga(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 qa(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 nct(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ga(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 qa(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 Ff(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Mf(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 RB=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=Zm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ua||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ua||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=>_e(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!==Ua||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ua||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=_e(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!==Ua||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ua||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=>_e(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!==Ua||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ua||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"}};E0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Pf=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"}};Pf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var UB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Sct=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);re(`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 Cpe(t,e,r){return Sct(this,void 0,void 0,function*(){var n;let s=new Ya(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(),q(`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 Xe(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as ype from"buffer";import*as rA from"fs";import*as Bpe from"stream";import*as bpe 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 Nct(t){return t?t>=500:!0}function Tct(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function xct(t){return WR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Ipe(t,e,r){return WR(this,arguments,void 0,function*(n,s,i,o=TT,a=xT,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),!Nct(d)))return l;if(d&&(h=Tct(d),A=`Cache service responded with ${d}`),q(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){q(`${n} - Error is not retryable`);break}yield xct(a),u++}throw Error(`${n} failed: ${A}`)})}function PB(t,e){return WR(this,arguments,void 0,function*(r,n,s=TT,i=xT){return yield Ipe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof wc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function C0(t,e){return WR(this,arguments,void 0,function*(r,n,s=TT,i=xT){return yield Ipe(r,n,o=>o.message.statusCode,s,i)})}var Oo=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 Rct(t,e){return Oo(this,void 0,void 0,function*(){yield bpe.promisify(Bpe.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,q(`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);re(`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||[])q(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function YH(t,e,r){return hi(this,void 0,void 0,function*(){let n=new Fct(t),s=Npe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield wpe(t,e,s):s.concurrentBlobDownloads?yield Qpe(t,e,s):yield jR(t,e):yield jR(t,e)})}function Lpe(t,e,r){return hi(this,void 0,void 0,function*(){let n=qH(),s=Ym(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield PB("reserveCache",()=>hi(this,void 0,void 0,function*(){return n.postJson(HB("caches"),i)}))})}function Fpe(t,e){return`bytes ${t}-${e}/*`}function Pct(t,e,r,n,s){return hi(this,void 0,void 0,function*(){q(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Fpe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Fpe(n,s)},o=yield C0(`uploadChunk (start: ${n}, end: ${s})`,()=>hi(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 Oct(t,e,r,n){return hi(this,void 0,void 0,function*(){let s=Rc(r),i=HB(`caches/${e.toString()}`),o=I0.openSync(r,"r"),a=OH(n),c=x3("uploadConcurrency",a.uploadConcurrency),A=x3("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];q("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>hi(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield Pct(t,i,()=>I0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),h,f)}})))}finally{I0.closeSync(o)}})}function Hct(t,e,r){return hi(this,void 0,void 0,function*(){let n={size:r};return yield PB("commitCache",()=>hi(this,void 0,void 0,function*(){return t.postJson(HB(`caches/${e.toString()}`),n)}))})}function VH(t,e,r,n){return hi(this,void 0,void 0,function*(){if(OH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Cpe(r,e,n)}else{let i=qH();q("Upload cache"),yield Oct(i,t,e,n),q("Commiting cache");let o=Rc(e);re(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Hct(i,t,o);if(!JR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);re("Cache saved successfully")}})}var Rme=pe(M9(),1),nn=pe(ct(),1),Ki=pe(ct(),1),Yf=pe(ct(),1),Vf=pe(ct(),1),Wf=pe(ct(),1);var O9=pe(ct(),1),H9=pe(ct(),1),Nme=pe(ct(),1),Tme=pe(ct(),1),xme=pe(ct(),1);var L9=pe(ct(),1),U9=pe(ct(),1),Qme=pe(ct(),1),wme=pe(ct(),1),Sme=pe(ct(),1),P9=class extends Sme.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,wme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Qme.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?U9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,L9.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,L9.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?U9.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},MD=new P9;var G9=class extends xme.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,Tme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Nme.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?H9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,O9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)MD.internalBinaryWrite(e.scope[i],r.tag(2,O9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?H9.UnknownFieldHandler.onWrite Line truncated
`));let n=yield nG(r,"create");yield sG(n,t)})}var M0=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())})},Ja=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Jf=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},aG="cache write denied:",PD=class t extends Jf{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},_me=RT,OD=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},HD=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 Ja("Path Validation Error: At least one directory or file path is required")}function cG(t){if(t.length>512)throw new Ja(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ja(`Key Validation Error: ${t} cannot contain commas.`)}function Mme(){return OB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Lme(t,e,r,n){return M0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=OB();q(`Cache service version: ${A}`),Fme(s);let u=GH();if(!xpe(u)){re(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),q(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield slt(s,i,o,a,c):yield nlt(s,i,o,a,c)})}function nlt(t,e,r,n){return M0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(q("Resolved Keys:"),q(JSON.stringify(u)),u.length>10)throw new Ja("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)cG(h);let l=yield Hy(),d="";try{let h;try{h=yield Mpe(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(_me)?new OD(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return re("Lookup only - skipping download"),h.cacheKey;d=nb.join(yield Py(),Kl(l)),q(`Archive Path: ${d}`),yield YH(h.archiveLocation,d,a),Yl()&&(yield rb(d,l));let f=Rc(d);return re(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield iG(d,l),re("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===Ja.name)throw h;f instanceof wc&&typeof f.statusCode=="number"&&f.statusCode>=500?No(`Failed to restore: ${h.message}`):Xe(`Failed to restore: ${h.message}`)}finally{try{yield Oy(d)}catch(h){q(`Failed to delete archive: ${h}`)}}})}function slt(t,e,r,n){return M0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(q("Resolved Keys:"),q(JSON.stringify(u)),u.length>10)throw new Ja("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)cG(d);let l="";try{let d=rG(),h=yield Hy(),f={key:i,restoreKeys:o,version:Ym(s,h,c)},g;try{g=yield d.GetCacheEntryDownloadURL(f)}catch(I){let y=(A=I?.message)!==null&&A!==void 0?A:"";throw y.includes(_me)?new OD(y):I}if(!g.ok){q(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?re(`Cache hit for restore-key: ${g.matchedKey}`):re(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return re("Lookup only - skipping download"),g.matchedKey;l=nb.join(yield Py(),Kl(h)),q(`Archive path: ${l}`),q(`Starting download of archive to: ${l}`),yield YH(g.signedDownloadUrl,l,a);let m=Rc(l);return re(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Yl()&&(yield rb(l,h)),yield iG(l,h),re("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===Ja.name)throw d;h instanceof wc&&typeof h.statusCode=="number"&&h.statusCode>=500?No(`Failed to restore: ${d.message}`):Xe(`Failed to restore: ${d.message}`)}finally{try{l&&(yield Oy(l))}catch(d){q(`Failed to delete archive: ${d}`)}}})}function Ume(t,e,r){return M0(this,arguments,void 0,function*(n,s,i,o=!1){let a=OB();q(`Cache service version: ${a}`),Fme(n),cG(s);let c=GH();return Rpe(c)?a==="v2"?yield olt(n,s,i,o):yield ilt(n,s,i,o):(re(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),q(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function ilt(t,e,r){return M0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield Hy(),f=-1,g=yield T3(n);if(q("Cache Paths:"),q(`${JSON.stringify(g)}`),g.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield Py(),m=nb.join(E,Kl(h));q(`Archive Path: ${m}`);try{yield oG(E,g,h),Yl()&&(yield rb(m,h));let I=10*1024*1024*1024 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=ab(),i=Oi(s);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:n})}catch(o){if(o instanceof Error&&o.name==="HttpError")Xe(hlt(o));else throw o}}function hlt(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 flt(t){return`${plt()}
${Elt(t)}`}function glt(){let t=Gme();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function plt(){let t=Hme();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>${qD()}</code> action. Follow the links for upgrade details.
<ul>
${t.map(e=>`<li>${NUr(e)}</li>`).join("")}
${t.map(e=>`<li>${mlt(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 mlt(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function Elt(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=>Ilt(e)).join("")}
</table>
`}function RUr(t){return`
`}function Clt(t){return t.some(e=>e.buildFailed)}function Ilt(t){return`
<tr>
<td>${lat(t.rootProjectName,30)}</td>
<td>${lat(t.requestedTasks,60)}</td>
<td>${Wme(t.rootProjectName,30)}</td>
<td>${Wme(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'>${ylt(t)}</td>
<td>${Blt(t)}</td>
</tr>`}function ylt(t){return t.buildFailed?":x:":":white_check_mark:"}function Blt(t){return t.buildScanFailed?lG({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?lG({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):lG({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function lG({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 Wme(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function blt(){let t=pu;if(t.payload.pull_request==null){re("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;re(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=zme(t),n=Oi(ab()),{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(()=>re(`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 zme(t){return`<!-- gradle-job-summary: ${U0.constructJobCorrelator(t.workflow,t.job,uG())} -->`}var jme=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 Yo from"fs";import*as _u from"path";function Kme(){return Xme().map(e=>{let r=Yo.readFileSync(e,"utf8"),n=JSON.parse(r);return Slt(e,n),n})}function $me(){Xme().forEach(Tlt)}function Xme(){let t=_u.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Yo.existsSync(t)?Yo.readdirSync(t).map(e=>_u.resolve(t,e)).filter(e=>_u.extname(e)===".json"&&!Nlt(e)):[]}function Slt(t,e){let r=_u.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Yo.existsSync(r))return;let n=_u.resolve(r,_u.basename(t));if(Yo.existsSync(n)){let s=Yo.readFileSync(n,"utf8"),i=JSON.parse(s);Object.assign(e,i)}}function Nlt(t){let e=`${t}.processed`;return Yo.existsSync(e)}function Tlt(t){let e=`${t}.processed`;Yo.writeFileSync(e,"")}import*as v0e from"fs";import*as _0e from"path";import{pathToFileURL as Wdt}from"url";import*as H0 from"fs";function dG(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,q(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,q(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,q(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,q(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,q(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as KD from"path";import*as P0 from"path";import jf from"assert";var pd=process.platform==="win32";function Mu(t){if(t=Fu(t),pd&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=P0.dirname(t);return pd&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Fu(e)),e}function JD(t,e){if(jf(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),jf(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),Ab(e))return e;if(pd){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return jf(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(za(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return jf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return jf(Ab(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||pd&&t.endsWith("\\")||(t+=P0.sep),t+e}function Ab(t){return jf(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=za(t),pd?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function ub(t){return jf(t,"isRooted parameter 'itemPath' must not be empty"),t=za(t),pd?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function za(t){return t=t||"",pd?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function Fu(t){return t?(t=za(t),!t.endsWith(P0.sep)||t===P0.sep||pd&&/^[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 Zme=process.platform==="win32";function fG(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=Zme?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=Zme?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 e0e(t,e){let r=ja.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function t0e(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as y0e 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 gb(i));return n.searchPaths.push(...fG(n.patterns)),n})}static stat(e,r,n){return BG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield H0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){q(`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 H0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield H0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){q(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as bG from"crypto";import*as $D from"fs";import*as B0e from"stream";import*as b0e from"util";import*as Q0e from"path";var Hdt=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())})},Gdt=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 w0e(t,e){return Hdt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?re:q,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=bG.createHash("sha256"),f=0;try{for(var g=!0,E=Gdt(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;g=!0){c=m.value,g=!1;let I=c;if(u(I),!I.startsWith(`${d}${Q0e.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if($D.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=bG.createHash("sha256");yield b0e.promisify(B0e.pipeline)($D.createReadStream(I),y),h.write(y.digest()),f++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!g&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var S0e=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 QG(t,e){return S0e(this,void 0,void 0,function*(){return yield jD.create(t,e)})}function N0e(t){return S0e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield QG(e,{followSymbolicLinks:i});return w0e(o,r,s)})}import*as wG from"path";var qdt="Gradle User Home",x0e="BASIC_CACHE_PRIMARY_KEY",R0e="BASIC_CACHE_RESTORED_KEY",Ydt="setup-java",D0e=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],XD=class{async restore(e,r){let n=k0e(e),s=await Vdt();yy(x0e,s);try{let i=await Lme(n,s);i?(yy(R0e,i),re(`Basic caching restored from cache key: ${i}`)):re("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=Tc(x0e),i=Tc(R0e);if(n.readOnly)return{status:"read-only",entries:[mb({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 re(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[mb({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=k0e(e);try{return await Ume(o,s)===-1?(Xe(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[mb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(re(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[mb({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:[mb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(ELine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${D0e}], make sure you have checked out the target repository`);return`${Ydt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Jdt="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.",zdt="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.",NG=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function F0e(t){return t.isCacheDisabled()?(SG("Cache is disabled: will not restore state from previous builds."),new NG):t.getCacheProvider()==="basic"?(SG(zdt),new XD):(SG(Jdt),jdt())}function M0e(t){if(!t.isCacheDisabled())return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function jdt(){let t=Kdt();return await import(Wdt(t).href)}function Kdt(){let t=import.meta.dirname,e=_0e.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(v0e.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function SG(t){console.info(t)}import*as H0e from"util";var nht=pe(O0e(),1);import*as TG from"fs";var wmr=H0e.promisify(TG.readdir);var iht={_useHtmlParser2:!1};function G0(t,e){if(!t)return e??iht;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 XG={};Qa(XG,{contains:()=>h2,extract:()=>Zht,html:()=>jht,merge:()=>uEe,parseHTML:()=>$ht,root:()=>Xht,text:()=>ig,xml:()=>Kht});var bd={};Qa(bd,{DocumentPosition:()=>zo,append:()=>Dht,appendChild:()=>Rht,compareDocumentPosition:()=>oEe,existsOne:()=>sEe,filter:()=>J0,find:()=>A2,findAll:()=>Fht,findOne:()=>u2,findOneChild:()=>_ht,getAttributeValue:()=>Sht,getChildren:()=>W0,getElementById:()=>Pht,getElements:()=>Uht,getElementsByClassName:()=>Oht,getElementsByTagName:()=>sg,getElementsByTagType:()=>Hht,getFeed:()=>$G,getInnerHTML:()=>wht,getName:()=>Tht,getOuterHTML:()=>rEe,getParent:()=>nEe,getSiblings:()=>jG,getText:()=>o2,hasAttrib:()=>Nht,hasChildren:()=>rr,innerText:()=>Bb,isCDATA:()=>q0,isComment:()=>ng,isDocument:()=>Jo,isTag:()=>Qe,isText:()=>mi,nextElementSibling:()=>a2,prepend:()=>vht,prependChild:()=>kht,prevElementSibling:()=>c2,removeElement:()=>Ou,removeSubsets:()=>Ght,replaceElement:()=>xht,testElement:()=>Lht,textContent:()=>Pu,uniqueSort:()=>yd});var Wo={};Qa(Wo,{CDATA:()=>LG,Comment:()=>vG,Directive:()=>kG,Doctype:()=>UG,ElementType:()=>bt,Root:()=>RG,Script:()=>_G,Style:()=>FG,Tag:()=>MG,Text:()=>DG,isTag:()=>xG});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 xG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var RG=bt.Root,DG=bt.Text,kG=bt.Directive,vG=bt.Comment,_G=bt.Script,FG=bt.Style,MG=bt.Tag,LG=bt.CDATA,UG=bt.Doctype;var ZD=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 Y0(this,e)}},Eb=class extends ZD{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},cA=class extends Eb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},eg=class extends Eb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},tg=class extends Eb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},Cb=class extends ZD{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 Cb{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Xi=class extends Cb{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},rg=class extends Cb{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
`:o2(t.children):q0(t)?o2(t.children):mi(t)?t.data:""}function Pu(t){return Array.isArray(t)?t.map(Pu).join(""):rr(t)&&!ng(t)?Pu(t.children):mi(t)?t.data:""}function Bb(t){return Array.isArray(t)?t.map(Bb).join(""):rr(t)&&(t.type===bt.Tag||q0(t))?Bb(t.children):mi(t)?t.data:""}function W0(t){return rr(t)?t.children:[]}function nEe(t){return t.parent||null}function jG(t){let e=nEe(t);if(e!=null)return W0(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 Sht(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function Nht(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Tht(t){return t.name}function a2(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 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 xht(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 Rht(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 Dht(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 kht(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 vht(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 J0(t,e,r=!0,n=1/0){return A2(t,Array.isArray(e)?e:[e],r,n)}function A2(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&&rr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function _ht(t,e){return e.find(t)}function u2(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&&rr(i)&&i.children.length>0){let o=u2(t,i.children,!0);if(o)return o}}return null}function sEe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&sEe(t,r.children))}function Fht(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),rr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var l2={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=>mi(e)&&t(e.data):e=>mi(e)&&e.data===t}};function KG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Mht(t,e){return r=>t(r)||e(r)}function iEe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(l2,r)?l2[r](n):KG(r,n)});return e.length===0?null:e.reduce(Mht)}function Lht(t,e){let r=iEe(t);return r?r(e):!0}function Uht(t,e,r,n=1/0){let s=iEe(t);return s?J0(s,e,r,n):[]}function Pht(t,e,r=!0){return Array.isArray(e)||(e=[e]),u2(KG("id",t),e,r)}function sg(t,e,r=!0,n=1/0){return J0(l2.tag_name(t),e,r,n)}function Oht(t,e,r=!0,n=1/0){return J0(KG("class",t),e,r,n)}function Hht(t,e,r=!0,n=1/0){return J0(l2.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 zo;(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"})(zo||(zo={}));function oEe(t,e){let r=[],n=[];if(t===e)return 0;let s=rr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=rr(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 zo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?zo.FOLLOWING|zo.CONTAINED_BY:zo.FOLLOWING:a===t?zo.PRECEDING|zo.CONTAINS:zo.PRECEDING}function yd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=oEe(e,r);return n&zo.PRECEDING?-1:n&zo.FOLLOWING?1:0}),t}function $G(t){let e=d2(Jht,t);return e?e.name==="feed"?qht(e):Yht(e):null}function qht(t){var e;let r=t.children,n={type:"atom",items:sg("entry",r).map(o=>{var a;let{children:c}=o,A={media:aEe(c)};Ei(A,"id","id",c),Ei(A,"title","title",c);let u=(a=d2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Bd("summary",c)||Bd("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 $o=pe(Qd(),1);var fq={};function gq(t,e){return t===$o.default.falseFunc?$o.default.falseFunc:r=>e.isTag(r)&&t(r)}function pq(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 hq(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 dq=(t,e,r,n,s)=>{let i=s(e,hq(r),n);return i===$o.default.trueFunc?t:i===$o.default.falseFunc?$o.default.falseFunc:o=>i(o)&&t(o)},w2={is:dq,matches:dq,where:dq,not(t,e,r,n,s){let i=s(e,hq(r),n);return i===$o.default.falseFunc?t:i===$o.default.trueFunc?$o.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=hq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(xb))?[fq]:void 0,c=s(e,o,a);if(c===$o.default.falseFunc)return $o.default.falseFunc;let A=gq(c,i);if(a&&c!==$o.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,...pq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function jEe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in w2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return w2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:Q2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,zEe.parse)(A);return w2.is(t,u,r,n,s)}if(typeof c=="function")return lq(c,o,a,1),u=>c(u,a)&&t(u);if(o in rE)return rE[o](t,a,r,n);if(o in Db){let u=Db[o];return lq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Xo=pe(eE(),1);function mq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function KEe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Xo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Xo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Xo.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()),YEe[e.action](t,e,r)}case Xo.SelectorType.Pseudo:return jEe(t,e,r,n,s);case Xo.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 Xo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=mq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=mq(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=mq(A,i));return!1};case Xo.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case Xo.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case Xo.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 Xo.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 Xo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function $Ee(t,e,r){let n=S2(t,e,r);return gq(n,e.adapter)}function S2(t,e,r){let n=typeof t=="string"?(0,$a.parse)(t):t;return N2(n,e,r)}function XEe(t){return t.type===$a.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(XEe)))}var Uft={type:$a.SelectorType.Descendant},Pft={type:"_flexibleDescendant"},Oft={type:$a.SelectorType.Pseudo,name:"scope",data:null};function Hft(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===fq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(fCe,`\r
`)}}).toArray()}var vq={};Qa(vq,{extract:()=>rpt});function tpt(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 rpt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=tpt(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 Nd=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}}};Nd.prototype.cheerio="[cheerio object]";Nd.prototype.splice=Array.prototype.splice;Nd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Nd.prototype,oq,xq,Rq,Dq,kq,vq);function gCe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=G0(s),a=t(n,o,i,null);class c extends Nd{_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&&jo(u))return u;let f=G0(h,o),g=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=jo(g)?g:new c(g,null,f);if(E._root=E,!u)return new c(void 0,E,f);let m=typeof u=="string"&&bb(u)?t(u,f,!1,null).children:npt(u)?[u]:Array.isArray(u)?u:void 0,I=new c(m,E,f);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,B=l?typeof l=="string"?bb(l)?new c([t(l,f,!1,null)],E,f):(y=`${l} ${y}`,E):jo(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(y):I}return Object.assign(A,XG,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function npt(t){return!!t.name||t.type===Wo.Root||t.type===Wo.Text||t.type===Wo.Comment}var spt=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",N;(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"})(N||(N={}));var Us={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function v2(t){return t>=55296&&t<=57343}function pCe(t){return t>=56320&&t<=57343}function mCe(t,e){return(t-55296)*1024+9216+e}function _2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function F2(t){return t>=64976&&t<=65007||spt.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"]]),fRe=new Map([...tj,["\\"," Backslash \\"],["/"," Forward slash /"]]);function gRe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of fRe)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(fRe.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.`);re("Artifact name is valid!")}function rj(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of tj)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(tj.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 CRe=pe(ERe(),1);function kA(){return`@actions/artifact-${CRe.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"}},cl=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"}},ul=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"}};ul.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Zg=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"}};Zg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var ep=class extends Error{};ep.prototype.name="InvalidTokenError";function Zkt(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 evt(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 Zkt(e)}catch{return atob(e)}}function IRe(t,e){if(typeof t!="string")throw new ep("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 ep(`Invalid token specified: missing part #${r+1}`);let s;try{s=evt(n)}catch(i){throw new ep(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new ep(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var h_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function vA(){let t=l_(),e=IRe(t);if(!e.scp)throw h_;let r=e.scp.split(" ");if(r.length===0)throw h_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw h_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return q(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),q(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw h_}function yRe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Sc(r),Sc(encodeURIComponent(r)))}catch(e){q(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function BRe(t){if(typeof t!="object"||t===null){q("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&yRe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&yRe(t.signed_url)}var f_=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())})},nj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=l_();this.baseUrl=nRe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new $n(e,[new hu(i)])}request(e,r,n,s){return f_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;q(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>f_(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 f_(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(),q(`[Response] - ${a.message.statusCode}`),q(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(BRe(A),q(`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(Zg.isUsageErrorMessage(A.msg))throw new Zg;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&q(`Raw Body: ${s}`),a instanceof Zg)throw a;if(ul.isNetworkErrorCode(a?.code))throw new ul(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);re(`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?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return f_(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 _A(t){let e=new nj(kA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new d_(e)}import*as iC from"fs";import{normalize as bRe,resolve as QRe}from"path";function wRe(t){if(!iC.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);re(`Redirecting to blob download url: ${M3e(u)}`);try{re(`Starting download of artifact to: ${r}`);let l=yield L3e(u,r,e?.skipDecompress);re("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,q(`Computed digest: ${l.sha256Digest}`),q(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function O3e(){return ZC(this,arguments,void 0,function*(t=sRe()){return(yield LVt(t))?q(`Artifact destination folder already exists: ${t}`):(q(`Artifact destination folder does not exist, creating: ${t}`),yield D3e.mkdir(t,{recursive:!0})),t})}var PVt=5,OVt=[400,401,403,404,422];function eI(t,e=PVt,r=OVt){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 q(`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 H3e="6.0.0";function xp(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})})}xp.VERSION=H3e;var Y3e=pe(G3e(),1);var yM=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 HVt="0.0.0-development";async function q3e(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 GVt(t,e,r,n){let s=new Y3e.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(qVt.bind(null,t,e,r),n)}async function qVt(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 yM(s.data.errors[0].message,500,{request:n,response:s});return q3e(t,e,i,n)}return s}function Rp(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",q3e.bind(null,r,t)),t.hook.wrap("request",GVt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Rp.VERSION=HVt;var V3e=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 BM(t,e,r,n,s){return V3e(this,void 0,void 0,function*(){var i;let[o,a]=eI(cf),c={log:void 0,userAgent:kA(),previews:void 0,retry:o,request:a},u=yield Oi(s,c,Rp,xp).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 cl(`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],q(`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 W3e(t){return V3e(this,void 0,void 0,function*(){var e;let r=_A(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=vA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:gn.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],q(`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?lo.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 z3e(t,e,r,n,s){return J3e(this,void 0,void 0,function*(){var i;let[o,a]=eI(cf),c={log:void 0,userAgent:kA(),previews:void 0,retry:o,request:a},A=Oi(s,c,Rp,xp),u=yield BM(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 cl(`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 j3e(t){return J3e(this,void 0,void 0,function*(){let e=_A(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=vA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:gn.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],q(`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 re(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var K3e=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())})},bM=aRe(),QM=100,YVt=Math.ceil(bM/QM);function $3e(t,e,r,n){return K3e(this,arguments,void 0,function*(s,i,o,a,c=!1){re(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=eI(cf),d={log:void 0,userAgent:kA(),previews:void 0,retry:u,request:l},h=Oi(a,d,Rp,xp),f=1,{data:g}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:QM,page:f}),E=Math.ceil(g.total_count/QM),m=g.total_count;m>bM&&(Xe(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${bM}. Results will be incomplete as only the first ${bM} artifacts will be returned`),E=YVt);for(let I of g.artifacts)A.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(f++,f;f<=E;f++){q(`Fetching page ${f} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:QM,page:f});for(let y of I.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=Z3e(A)),re(`Found ${A.length} artifact(s)`),{artifacts:A}})}function X3e(){return K3e(this,arguments,void 0,function*(t=!1){let e=_A(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=vA(),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?lo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=Z3e(o)),re(`Found ${o.length} artifact(s)`),{artifacts:o}})}function Z3e(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())})},VVt=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 nh;return KOe(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 B1(this,void 0,void 0,function*(){try{if(tC())throw new nh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=VVt(r,["findBy"]);return U3e(e,n,s,i,o)}return P3e(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 B1(this,void 0,void 0,function*(){try{if(tC())throw new nh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return $3e(r,n,s,i,e?.latest)}return X3e(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 B1(this,void 0,void 0,function*(){try{if(tC())throw new nh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return BM(e,n,s,i,o)}return W3e(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 B1(this,void 0,void 0,function*(){try{if(tC())throw new nh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return z3e(e,i,n,s,o)}return j3e(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 hRr=new tI;import*as wM from"path";import tZ from"fs";var WVt="dependency-graph_";async function t8e(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await e8e(t,!1);return;case"generate-submit-and-upload":await e8e(t,!0);return;case"generate-and-upload":await JVt(t)}}catch(r){e7t(t,e,r)}}async function e8e(t,e){if(n8e()){re("Dependency graph not supported in the ACT environment.");return}let r=await r8e();try{await zVt(r)}catch(n){try{await eZ(r,t)}catch(s){re(String(s))}throw n}e&&await eZ(r,t)}async function JVt(t){if(n8e()){re("Dependency graph not supported in the ACT environment.");return}await eZ(await r8e(),t)}async function r8e(){let r=(await(await QG(`${$Vt()}/**/*.json`)).glob()).filter(n=>!XVt(n));return r.forEach(ZVt),re(`Found dependency graph files: ${r.join(", ")}`),r}async function eZ(t,e){if(t.length===0){re("No dependency graph files found to upload.");return}let r=cb(),n=new tI;for(let s of t){let i=rZ(s);re(`Uploading dependency graph file: ${i}`);let o=`${WVt}${wM.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function zVt(t){if(t.length===0){re("No dependency graph files found to submit.");return}for(let e of t)try{await KVt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=jVt(e,r)),r}}function jVt(t,e){let n=`Dependency submission failed for ${rZ(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 KVt(t){let e=t7t(),r=tZ.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=rZ(t);vce(`Submitted ${i}: ${s.data.message}`)}function $Vt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function XVt(t){let e=`${t}.processed`;return tZ.existsSync(e)}function ZVt(t){let e=`${t}.processed`;tZ.writeFileSync(e,"")}function e7t(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new eC(r);Xe(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function t7t(){return Oi(ab())}function rZ(t){let e=cb();return wM.relative(e,t)}function n8e(){return process.env.ACT!==void 0}function n7t(t=process.platform){return t==="win32"?50:0}async function s8e(t=process.platform){let e=n7t(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>Cz(t));async function s7t(){try{Yme(),qme(),await rRe(new YD,new ib,new VD)&&await t8e(new U0)}catch(t){Cz(t)}await s8e()}s7t();export{s7t 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": ";u3BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+117 -254
View File
@@ -1,104 +1,104 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var V9e=Object.create;var QR=Object.defineProperty;var W9e=Object.getOwnPropertyDescriptor;var z9e=Object.getOwnPropertyNames;var j9e=Object.getPrototypeOf,K9e=Object.prototype.hasOwnProperty;var I=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var X9e=(t,e)=>()=>(t&&(e=t(t=0)),e);var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Oa=(t,e)=>{for(var r in e)QR(t,r,{get:e[r],enumerable:!0})},RAe=(t,e,r,A)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of z9e(e))!K9e.call(t,s)&&s!==r&&QR(t,s,{get:()=>e[s],enumerable:!(A=W9e(e,s))||A.enumerable});return t};var Fr=(t,e,r)=>(r=t!=null?V9e(j9e(t)):{},RAe(e||!t||!t.__esModule?QR(r,"default",{value:t,enumerable:!0}):r,t)),xr=t=>RAe(QR({},"__esModule",{value:!0}),t);var MAe=E(BC=>{"use strict";var hur=I("net"),AJe=I("tls"),RO=I("http"),FAe=I("https"),sJe=I("events"),Eur=I("assert"),nJe=I("util");BC.httpOverHttp=iJe;BC.httpsOverHttp=oJe;BC.httpOverHttps=aJe;BC.httpsOverHttps=cJe;function iJe(t){var e=new Al(t);return e.request=RO.request,e}function oJe(t){var e=new Al(t);return e.request=RO.request,e.createSocket=xAe,e.defaultPort=443,e}function aJe(t){var e=new Al(t);return e.request=FAe.request,e}function cJe(t){var e=new Al(t);return e.request=FAe.request,e.createSocket=xAe,e.defaultPort=443,e}function Al(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||RO.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(A,s,n,i){for(var o=UAe(s,n,i),a=0,c=e.requests.length;a<c;++a){var u=e.requests[a];if(u.host===o.host&&u.port===o.port){e.requests.splice(a,1),u.request.onSocket(A);return}}A.destroy(),e.removeSocket(A)})}nJe.inherits(Al,sJe.EventEmitter);Al.prototype.addRequest=function(e,r,A,s){var n=this,i=SO({request:e},n.options,UAe(r,A,s));if(n.sockets.length>=this.maxSockets){n.requests.push(i);return}n.createSocket(i,function(o){o.on("free",a),o.on("close",c),o.on("agentRemove",c),e.onSocket(o);function a(){n.emit("free",o,i)}function c(u){n.removeSocket(o),o.removeListener("free",a),o.removeListener("close",c),o.removeListener("agentRemove",c)}})};Al.prototype.createSocket=function(e,r){var A=this,s={};A.sockets.push(s);var n=SO({},A.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),Rg("making CONNECT request");var i=A.request(n);i.useChunkedEncodingByDefault=!1,i.once("response",o),i.once("upgrade",a),i.once("connect",c),i.once("error",u),i.end();function o(l){l.upgrade=!0}function a(l,g,d){process.nextTick(function(){c(l,g,d)})}function c(l,g,d){if(i.removeAllListeners(),g.removeAllListeners(),l.statusCode!==200){Rg("tunneling socket could not be established, statusCode=%d",l.statusCode),g.destroy();var h=new Error("tunneling socket could not be established, statusCode="+l.statusCode);h.code="ECONNRESET",e.request.emit("error",h),A.removeSocket(s);return}if(d.length>0){Rg("got illegal response body from proxy"),g.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),A.removeSocket(s);return}return Rg("tunneling connection has established"),A.sockets[A.sockets.indexOf(s)]=g,r(g)}function u(l){i.removeAllListeners(),Rg(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var g=new Error("tunneling socket could not be established, cause="+l.message);g.code="ECONNRESET",e.request.emit("error",g),A.removeSocket(s)}};Al.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var A=this.requests.shift();A&&this.createSocket(A,function(s){A.request.onSocket(s)})}};function xAe(t,e){var r=this;Al.prototype.createSocket.call(r,t,function(A){var s=t.request.getHeader("host"),n=SO({},r.options,{socket:A,servername:s?s.replace(/:.*$/,""):t.host}),i=AJe.connect(0,n);r.sockets[r.sockets.indexOf(A)]=i,e(i)})}function UAe(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function SO(t){for(var e=1,r=arguments.length;e<r;++e){var A=arguments[e];if(typeof A=="object")for(var s=Object.keys(A),n=0,i=s.length;n<i;++n){var o=s[n];A[o]!==void 0&&(t[o]=A[o])}}return t}var Rg;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Rg=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:Rg=function(){};BC.debug=Rg});var bR=E((Cur,LAe)=>{LAe.exports=MAe()});var Jr=E((Bur,vAe)=>{vAe.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Jt=E((Iur,ose)=>{"use strict";var _Ae=Symbol.for("undici.error.UND_ERR"),rA=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[_Ae]===!0}[_Ae]=!0},PAe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),TO=class extends rA{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[PAe]===!0}[PAe]=!0},OAe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),kO=class extends rA{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[OAe]===!0}[OAe]=!0},HAe=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),FO=class extends rA{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[HAe]===!0}[HAe]=!0},GAe=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),xO=class extends rA{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[GAe]===!0}[GAe]=!0},YAe=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),UO=class extends rA{constructor(e,r,A,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function wVe(t,e){let{headersList:r}=e,A=(r.get("referrer-policy",!0)??"").split(","),s="";if(A.length>0)for(let n=A.length;n!==0;n--){let i=A[n-1].trim();if(cVe.has(i)){s=i;break}}s!==""&&(t.referrerPolicy=s)}function DVe(){return"allowed"}function NVe(){return"success"}function RVe(){return"success"}function SVe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function TVe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&yH(t.origin)&&!yH(wm(t))&&(e=null);break;case"same-origin":JR(t,wm(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function RC(t,e){return t}function kVe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:RC(t.domainLookupStartTime,r),domainLookupEndTime:RC(t.domainLookupEndTime,r),connectionStartTime:RC(t.connectionStartTime,r),connectionEndTime:RC(t.connectionEndTime,r),secureConnectionStartTime:RC(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function FVe(t){return RC(hVe.now(),t)}function xVe(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function mne(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function UVe(t){return{referrerPolicy:t.referrerPolicy}}function MVe(t){let e=t.referrerPolicy;Yh(e);let r=null;if(t.referrer==="client"){let o=fne();if(!o||o.origin==="null")return"no-referrer";r=new URL(o)}else t.referrer instanceof URL&&(r=t.referrer);let A=mH(r),s=mH(r,!0);A.toString().length>4096&&(A=s);let n=JR(t,A),i=bm(A)&&!bm(t.url);switch(e){case"origin":return s??mH(r,!0);case"unsafe-url":return A;case"same-origin":return n?s:"no-referrer";case"origin-when-cross-origin":return n?A:s;case"strict-origin-when-cross-origin":{let o=wm(t);return JR(A,o)?A:bm(A)&&!bm(o)?"no-referrer":s}default:return i?"no-referrer":s}}function mH(t,e){return Yh(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function bm(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let A=new URL(r);return!!(A.protocol==="https:"||A.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(A.hostname)||A.hostname==="localhost"||A.hostname.includes("localhost.")||A.hostname.endsWith(".localhost"))}}function LVe(t,e){if(qR===void 0)return!0;let r=yne(e);if(r==="no metadata"||r.length===0)return!0;let A=_Ve(r),s=PVe(r,A);for(let n of s){let i=n.algo,o=n.hash,a=qR.createHash(i).update(t).digest("base64");if(a[a.length-1]==="="&&(a[a.length-2]==="="?a=a.slice(0,-2):a=a.slice(0,-1)),OVe(a,o))return!0}return!1}var vVe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function yne(t){let e=[],r=!0;for(let A of t.split(" ")){r=!1;let s=vVe.exec(A);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let n=s.groups.algo.toLowerCase();Bne.includes(n)&&e.push(s.groups)}return r===!0?"no metadata":e}function _Ve(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let A=t[r];if(A.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;A.algo[3]==="3"&&(e="sha384")}}return e}function PVe(t,e){if(t.length===1)return t;let r=0;for(let A=0;A<t.length;++A)t[A].algo===e&&(t[r++]=t[A]);return t.length=r,t}function OVe(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function HVe(t){}function JR(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function GVe(){let t,e;return{promise:new Promise((A,s)=>{t=A,e=s}),resolve:t,reject:e}}function YVe(t){return t.controller.state==="aborted"}function qVe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function JVe(t){return CVe[t.toLowerCase()]??t}function VVe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Yh(typeof e=="string"),e}var WVe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function bne(t,e,r=0,A=1){class s{ Line truncated
`);function yWe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function bWe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let A=t.charCodeAt(r);if(!(A>=48&&A<=57||A>=65&&A<=90||A>=97&&A<=122||A===39||A===45||A===95))return!1}return!0}function wWe(t,e){WR(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let A=Buffer.from(`--${r}`,"utf8"),s=[],n={position:0};for(;t[n.position]===13&&t[n.position+1]===10;)n.position+=2;let i=t.length;for(;t[i-1]===10&&t[i-2]===13;)i-=2;for(i!==t.length&&(t=t.subarray(0,i));;){if(t.subarray(n.position,n.position+A.length).equals(A))n.position+=A.length;else return"failure";if(n.position===t.length-2&&zR(t,pWe,n)||n.position===t.length-4&&zR(t,mWe,n))return s;if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let o=DWe(t,n);if(o==="failure")return"failure";let{name:a,filename:c,contentType:u,encoding:l}=o;n.position+=2;let g;{let h=t.indexOf(A.subarray(2),n.position);if(h===-1)return"failure";g=t.subarray(n.position,h-4),n.position+=g.length,l==="base64"&&(g=Buffer.from(g.toString(),"base64"))}if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let d;c!==null?(u??="text/plain",yWe(u)||(u=""),d=new IWe([g],c,{type:u})):d=hWe(Buffer.from(g)),WR(Lne(a)),WR(typeof d=="string"&&Lne(d)||fWe(d)),s.push(CWe(a,d,c))}}function DWe(t,e){let r=null,A=null,s=null,n=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:A,contentType:s,encoding:n};let i=TC(o=>o!==10&&o!==13&&o!==58,t,e);if(i=TH(i,!0,!0,o=>o===9||o===32),!EWe.test(i.toString())||t[e.position]!==58)return"failure";switch(e.position++,TC(o=>o===32||o===9,t,e),dWe(i)){case"content-disposition":{if(r=A=null,!zR(t,QWe,e)||(e.position+=17,r=Pne(t,e),r===null))return"failure";if(zR(t,_ne,e)){let o=e.position+_ne.length;if(t[o]===42&&(e.position+=1,o+=1),t[o]!==61||t[o+1]!==34||(e.position+=12,A=Pne(t,e),A===null))return"failure"}break}case"content-type":{let o=TC(a=>a!==10&&a!==13,t,e);o=TH(o,!1,!0,a=>a===9||a===32),s=vne(o);break}case"content-transfer-encoding":{let o=TC(a=>a!==10&&a!==13,t,e);o=TH(o,!1,!0,a=>a===9||a===32),n=vne(o);break}default:TC(o=>o!==10&&o!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Pne(t,e){WR(t[e.position-1]===34);let r=TC(A=>A!==10&&A!==13&&A!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function TC(t,e,r){let A=r.position;for(;A<e.length&&t(e[A]);)++A;return e.subarray(r.position,r.position=A)}function TH(t,e,r,A){let s=0,n=t.length-1;if(e)for(;s<t.length&&A(t[s]);)s++;if(r)for(;n>0&&A(t[n]);)n--;return s===0&&n===t.length-1?t:t.subarray(s,n+1)}function zR(t,e,r){if(t.length<e.length)return!1;for(let A=0;A<e.length;A++)if(e[A]!==t[r.position+A])return!1;return!0}One.exports={multipartFormDataParser:wWe,validateBoundary:bWe}});var xC=E((qur,Xne)=>{"use strict";var Rm=Qt(),{ReadableStreamFrom:NWe,isBlobLike:Gne,isReadableStreamLike:RWe,readableStreamClose:SWe,createDeferredPromise:TWe,fullyReadBody:kWe,extractMimeType:FWe,utf8DecodeBytes:Jne}=Di(),{FormData:Yne}=Nm(),{kState:FC}=Sg(),{webidl:xWe}=Ts(),{Blob:UWe}=I("node:buffer"),kH=I("node:assert"),{isErrored:Vne,isDisturbed:MWe}=I("node:stream"),{isArrayBuffer:LWe}=I("node:util/types"),{serializeAMimeType:vWe}=Un(),{multipartFormDataParser:_We}=Hne(),FH;try{let t=I("node:crypto");FH=e=>t.randomInt(0,e)}catch{FH=t=>Math.floor(Math.random(t))}var jR=new TextEncoder;function PWe(){}var Wne=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,zne;Wne&&(zne=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!MWe(e)&&!Vne(e)&&e.cancel("Response object has been garbage collected").catch(PWe)}));function jne(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Gne(t)?r=t.stream():r=new ReadableStream({async pull(a){let c=typeof s=="string"?jR.encode(s):s;c.byteLength&&a.enqueue(c),queueMicrotask(()=>SWe(a))},start(){},type:"bytes"}),kH(RWe(r));let A=null,s=null,n=null,i=null;if(typeof t=="string")s=t,i="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),i="application/x-www-form-urlencoded;charset=UTF-8";else if(LWe(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Rm.isFormDataLike(t)){let a=`----formdata-undici-0${`${FH(1e11)}`.padStart(11,"0")}`,c=`--${a}\r
Content-Disposition: form-data`;let u=Q=>Q.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=Q=>Q.replace(/\r?\n|\r/g,`\r
`),g=[],d=new Uint8Array([13,10]);n=0;let h=!1;for(let[Q,C]of t)if(typeof C=="string"){let p=jR.encode(c+`; name="${u(l(Q))}"\r
var mne=Object.create;var UB=Object.defineProperty;var pne=Object.getOwnPropertyDescriptor;var Ene=Object.getOwnPropertyNames;var Cne=Object.getPrototypeOf,Ine=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)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},an=(t,e)=>{for(var r in e)UB(t,r,{get:e[r],enumerable:!0})},Bne=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ene(e))!Ine.call(t,n)&&n!==r&&UB(t,n,{get:()=>e[n],enumerable:!(s=pne(e,n))||s.enumerable});return t};var ce=(t,e,r)=>(r=t!=null?mne(Cne(t)):{},Bne(e||!t||!t.__esModule?UB(r,"default",{value:t,enumerable:!0}):r,t));var _F=m(Ac=>{"use strict";var Rqe=Q("net"),Sne=Q("tls"),HB=Q("http"),PF=Q("https"),Tne=Q("events"),kqe=Q("assert"),Dne=Q("util");Ac.httpOverHttp=xne;Ac.httpsOverHttp=Rne;Ac.httpOverHttps=kne;Ac.httpsOverHttps=Fne;function xne(t){var e=new Ci(t);return e.request=HB.request,e}function Rne(t){var e=new Ci(t);return e.request=HB.request,e.createSocket=vF,e.defaultPort=443,e}function kne(t){var e=new Ci(t);return e.request=PF.request,e}function Fne(t){var e=new Ci(t);return e.request=PF.request,e.createSocket=vF,e.defaultPort=443,e}function Ci(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||HB.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=OF(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)})}Dne.inherits(Ci,Tne.EventEmitter);Ci.prototype.addRequest=function(e,r,s,n){var i=this,o=GB({request:e},i.options,OF(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)}})};Ci.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=GB({},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")),Ao("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,g,h){process.nextTick(function(){c(l,g,h)})}function c(l,g,h){if(o.removeAllListeners(),g.removeAllListeners(),l.statusCode!==200){Ao("tunneling socket could not be established, statusCode=%d",l.statusCode),g.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(h.length>0){Ao("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 Ao("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=g,r(g)}function u(l){o.removeAllListeners(),Ao(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var g=new Error("tunneling socket could not be established, cause="+l.message);g.code="ECONNRESET",e.request.emit("error",g),s.removeSocket(n)}};Ci.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 vF(t,e){var r=this;Ci.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=GB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=Sne.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function OF(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function GB(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 Ao;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ao=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)}:Ao=function(){};Ac.debug=Ao});var YB=m((Mqe,HF)=>{HF.exports=_F()});var $e=m((Uqe,GF)=>{GF.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((Lqe,gM)=>{"use strict";var YF=Symbol.for("undici.error.UND_ERR"),et=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[YF]===!0}[YF]=!0},qF=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),qB=class extends et{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[qF]===!0}[qF]=!0},VF=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),VB=class extends et{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[VF]===!0}[VF]=!0},JF=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),JB=class extends et{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[JF]===!0}[JF]=!0},WF=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),WB=class extends et{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[WF]===!0}[WF]=!0},zF=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),zB=class extends et{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 Koe(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(Foe.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function Xoe(){return"allowed"}function joe(){return"success"}function Zoe(){return"success"}function $oe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function eae(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&&OQ(t.origin)&&!OQ(cd(t))&&(e=null);break;case"same-origin":Kf(t,cd(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Ec(t,e){return t}function tae(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Ec(t.domainLookupStartTime,r),domainLookupEndTime:Ec(t.domainLookupEndTime,r),connectionStartTime:Ec(t.connectionStartTime,r),connectionEndTime:Ec(t.connectionEndTime,r),secureConnectionStartTime:Ec(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function rae(t){return Ec(voe.now(),t)}function sae(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 SU(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function nae(t){return{referrerPolicy:t.referrerPolicy}}function iae(t){let e=t.referrerPolicy;wa(e);let r=null;if(t.referrer==="client"){let a=BU();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=vQ(r),n=vQ(r,!0);s.toString().length>4096&&(s=n);let i=Kf(t,s),o=Ad(s)&&!Ad(t.url);switch(e){case"origin":return n??vQ(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=cd(t);return Kf(s,a)?s:Ad(s)&&!Ad(a)?"no-referrer":n}default:return o?"no-referrer":n}}function vQ(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 Ad(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 oae(t,e){if(zf===void 0)return!0;let r=TU(e);if(r==="no metadata"||r.length===0)return!0;let s=Aae(r),n=cae(r,s);for(let i of n){let o=i.algo,a=i.hash,A=zf.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)),uae(A,a))return!0}return!1}var aae=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function TU(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=aae.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();yU.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function Aae(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 cae(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 uae(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 lae(t){}function Kf(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function dae(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function gae(t){return t.controller.state==="aborted"}function hae(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function fae(t){return Hoe[t.toLowerCase()]??t}function mae(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 pae=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function DU(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function Wae(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function zae(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 Kae(t,e){jf(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&&Zf(t,Vae,i)||i.position===t.length-4&&Zf(t,Jae,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=Xae(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let g;{let f=t.indexOf(s.subarray(2),i.position);if(f===-1)return"failure";g=t.subarray(i.position,f-4),i.position+=g.length,l==="base64"&&(g=Buffer.from(g.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",Wae(u)||(u=""),h=new Yae([g],c,{type:u})):h=vae(Buffer.from(g)),jf(HU(A)),jf(typeof h=="string"&&HU(h)||_ae(h)),n.push(Hae(A,h,c))}}function Xae(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=Ic(a=>a!==10&&a!==13&&a!==58,t,e);if(o=JQ(o,!0,!0,a=>a===9||a===32),!Oae.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Ic(a=>a===32||a===9,t,e),Pae(o)){case"content-disposition":{if(r=s=null,!Zf(t,qae,e)||(e.position+=17,r=qU(t,e),r===null))return"failure";if(Zf(t,YU,e)){let a=e.position+YU.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=qU(t,e),s===null))return"failure"}break}case"content-type":{let a=Ic(A=>A!==10&&A!==13,t,e);a=JQ(a,!1,!0,A=>A===9||A===32),n=GU(a);break}case"content-transfer-encoding":{let a=Ic(A=>A!==10&&A!==13,t,e);a=JQ(a,!1,!0,A=>A===9||A===32),i=GU(a);break}default:Ic(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function qU(t,e){jf(t[e.position-1]===34);let r=Ic(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 Ic(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function JQ(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 Zf(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}VU.exports={multipartFormDataParser:Kae,validateBoundary:zae}});var yc=m((aVe,rL)=>{"use strict";var dd=Ee(),{ReadableStreamFrom:jae,isBlobLike:WU,isReadableStreamLike:Zae,readableStreamClose:$ae,createDeferredPromise:eAe,fullyReadBody:tAe,extractMimeType:rAe,utf8DecodeBytes:XU}=Wr(),{FormData:zU}=ld(),{kState:Qc}=co(),{webidl:sAe}=Vt(),{Blob:nAe}=Q("node:buffer"),WQ=Q("node:assert"),{isErrored:jU,isDisturbed:iAe}=Q("node:stream"),{isArrayBuffer:oAe}=Q("node:util/types"),{serializeAMimeType:aAe}=br(),{multipartFormDataParser:AAe}=JU(),zQ;try{let t=Q("node:crypto");zQ=e=>t.randomInt(0,e)}catch{zQ=t=>Math.floor(Math.random(t))}var $f=new TextEncoder;function cAe(){}var ZU=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,$U;ZU&&($U=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!iAe(e)&&!jU(e)&&e.cancel("Response object has been garbage collected").catch(cAe)}));function eL(t,e=!1){let r=null;t instanceof ReadableStream?r=t:WU(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?$f.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>$ae(A))},start(){},type:"bytes"}),WQ(Zae(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(oAe(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(dd.isFormDataLike(t)){let A=`----formdata-undici-0${`${zQ(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=y=>y.replace(/\r?\n|\r/g,`\r
`),g=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[y,E]of t)if(typeof E=="string"){let b=$f.encode(c+`; name="${u(l(y))}"\r
\r
${l(C)}\r
`);g.push(p),n+=p.byteLength}else{let p=jR.encode(`${c}; name="${u(l(Q))}"`+(C.name?`; filename="${u(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
${l(E)}\r
`);g.push(b),i+=b.byteLength}else{let b=$f.encode(`${c}; name="${u(l(y))}"`+(E.name?`; filename="${u(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);g.push(p,C,d),typeof C.size=="number"?n+=p.byteLength+C.size+d.byteLength:h=!0}let B=jR.encode(`--${a}--\r
`);g.push(B),n+=B.byteLength,h&&(n=null),s=t,A=async function*(){for(let Q of g)Q.stream?yield*Q.stream():yield Q},i=`multipart/form-data; boundary=${a}`}else if(Gne(t))s=t,n=t.size,t.type&&(i=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Rm.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:NWe(t)}if((typeof s=="string"||Rm.isBuffer(s))&&(n=Buffer.byteLength(s)),A!=null){let a;r=new ReadableStream({async start(){a=A(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await a.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!Vne(r)){let g=new Uint8Array(u);g.byteLength&&c.enqueue(g)}return c.desiredSize>0},async cancel(c){await a.return()},type:"bytes"})}return[{stream:r,source:s,length:n},i]}function OWe(t,e=!1){return t instanceof ReadableStream&&(kH(!Rm.isDisturbed(t),"The body has already been consumed."),kH(!t.locked,"The stream is locked.")),jne(t,e)}function HWe(t,e){let[r,A]=e.stream.tee();return e.stream=r,{stream:A,length:e.length,source:e.source}}function GWe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function YWe(t){return{blob(){return kC(this,r=>{let A=qne(this);return A===null?A="":A&&(A=vWe(A)),new UWe([r],{type:A})},t)},arrayBuffer(){return kC(this,r=>new Uint8Array(r).buffer,t)},text(){return kC(this,Jne,t)},json(){return kC(this,JWe,t)},formData(){return kC(this,r=>{let A=qne(this);if(A!==null)switch(A.essence){case"multipart/form-data":{let s=_We(r,A);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new Yne;return n[FC]=s,n}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),n=new Yne;for(let[i,o]of s)n.append(i,o);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return kC(this,r=>new Uint8Array(r),t)}}}function qWe(t){Object.assign(t.prototype,YWe(t))}async function kC(t,e,r){if(xWe.brandCheck(t,r),Kne(t))throw new TypeError("Body is unusable: Body has already been read");GWe(t[FC]);let A=TWe(),s=i=>A.reject(i),n=i=>{try{A.resolve(e(i))}catch(o){s(o)}};return t[FC].body==null?(n(Buffer.allocUnsafe(0)),A.promise):(await kWe(t[FC].body,n,s),A.promise)}function Kne(t){let e=t[FC].body;return e!=null&&(e.stream.locked||Rm.isDisturbed(e.stream))}function JWe(t){return JSON.parse(Jne(t))}function qne(t){let e=t[FC].headersList,r=FWe(e);return r==="failure"?null:r}Xne.exports={extractBody:jne,safelyExtractBody:OWe,cloneBody:HWe,mixinBody:qWe,streamRegistry:zne,hasFinalizationRegistry:Wne,bodyUnusable:Kne}});var aie=E((Jur,oie)=>{"use strict";var Je=I("node:assert"),st=Qt(),{channels:Zne}=QC(),xH=hH(),{RequestContentLengthMismatchError:qh,ResponseContentLengthMismatchError:VWe,RequestAbortedError:sie,HeadersTimeoutError:WWe,HeadersOverflowError:zWe,SocketError:tS,InformationalError:UC,BodyTimeoutError:jWe,HTTPParserError:KWe,ResponseExceededMaxSizeError:XWe}=Jt(),{kUrl:nie,kReset:Mn,kClient:vH,kParser:lA,kBlocking:km,kRunning:Hs,kPending:ZWe,kSize:$ne,kWriting:kg,kQueue:Ha,kNoRef:Sm,kKeepAliveDefaultTimeout:$We,kHostHeader:eze,kPendingIdx:tze,kRunningIdx:Do,kError:No,kPipelining:$R,kSocket:MC,kKeepAliveTimeoutValue:rS,kMaxHeadersSize:UH,kKeepAliveMaxTimeout:rze,kKeepAliveTimeoutThreshold:Aze,kHeadersTimeout:sze,kBodyTimeout:nze,kStrictContentLength:_H,kMaxRequests:eie,kCounter:ize,kMaxResponseSize:oze,kOnError:aze,kResume:Tg,kHTTPContext:iie}=Jr(),Mc=zse(),cze=Buffer.alloc(0),KR=Buffer[Symbol.species],XR=st.addListener,uze=st.removeAllListeners,MH;async function lze(){let t=process.env.JEST_WORKER_ID?CH():void 0,e;try{e=await WebAssembly.compile(Xse())}catch{e=await WebAssembly.compile(t||CH())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,A,s)=>0,wasm_on_status:(r,A,s)=>{Je(es.ptr===r);let n=A-vc+Lc.byteOffset;return es.onStatus(new KR(Lc.buffer,n,s))||0},wasm_on_message_begin:r=>(Je(es.ptr===r),es.onMessageBegin()||0),wasm_on_header_field:(r,A,s)=>{Je(es.ptr===r);let n=A-vc+Lc.byteOffset;return es.onHeaderField(new KR(Lc.buffer,n,s))||0},wasm_on_header_value:(r,A,s)=>{Je(es.ptr===r);let n=A-vc+Lc.byteOffset;return es.onHeaderValue(new KR(Lc.buffer,n,s))||0},wasm_on_headers_complete:(r,A,s,n)=>(Je(es.ptr===r),es.onHeadersComplete(A,!!s,!!n)||0),wasm_on_body:(r,A,s)=>{Je(es.ptr===r);let n=A-vc+Lc.byteOffset;return es.onBody(new KR(Lc.buffer,n,s))||0},wasm_on_message_complete:r=>(Je(es.ptr===r),es.onMessageComplete()||0)}})}var LH=null,PH=lze();PH.catch();var es=null,Lc=null,ZR=0,vc=null,gze=0,Tm=1,LC=2|Tm,eS=4|Tm,OH=8|gze,HH=class{constructor(e,r,{exports:A}){Je(Number.isFinite(e[UH])&&e[UH]>0),this.llhttp=A,this.ptr=this.llhttp.llhttp_alloc(Mc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?B+=`host: ${s}\r
`:B+=t[eze],n?B+=`connection: upgrade\r
upgrade: ${n}\r
`:t[$R]&&!d[Mn]?B+=`connection: keep-alive\r
`:B+=`connection: close\r
`,Array.isArray(c))for(let Q=0;Q<c.length;Q+=2){let C=c[Q+0],p=c[Q+1];if(Array.isArray(p))for(let w=0;w<p.length;w++)B+=`${C}: ${p[w]}\r
`;else B+=`${C}: ${p}\r
`}return Zne.sendHeaders.hasSubscribers&&Zne.sendHeaders.publish({request:e,headers:B,socket:d}),!a||g===0?rie(h,null,t,e,d,u,B,l):st.isBuffer(a)?rie(h,a,t,e,d,u,B,l):st.isBlobLike(a)?typeof a.stream=="function"?Aie(h,a.stream(),t,e,d,u,B,l):Bze(h,a,t,e,d,u,B,l):st.isStream(a)?Cze(h,a,t,e,d,u,B,l):st.isIterable(a)?Aie(h,a,t,e,d,u,B,l):Je(!1),!0}function Cze(t,e,r,A,s,n,i,o){Je(n!==0||r[Hs]===0,"stream body cannot be pipelined");let a=!1,c=new AS({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i}),u=function(h){if(!a)try{!c.write(h)&&this.pause&&this.pause()}catch(B){st.destroy(this,B)}},l=function(){a||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!a){let h=new sie;queueMicrotask(()=>d(h))}},d=function(h){if(!a){if(a=!0,Je(s.destroyed||s[kg]&&r[Hs]<=1),s.off("drain",l).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("close",g),!h)try{c.end()}catch(B){h=B}c.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?st.destroy(e,h):st.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",g),e.resume&&e.resume(),s.on("drain",l).on("error",d),e.errorEmitted??e.errored?setImmediate(()=>d(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>d(null)),(e.closeEmitted??e.closed)&&setImmediate(g)}function rie(t,e,r,A,s,n,i,o){try{e?st.isBuffer(e)&&(Je(n===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${i}content-length: ${n}\r
`);g.push(b,E,h),typeof E.size=="number"?i+=b.byteLength+E.size+h.byteLength:f=!0}let p=$f.encode(`--${A}--\r
`);g.push(p),i+=p.byteLength,f&&(i=null),n=t,s=async function*(){for(let y of g)y.stream?yield*y.stream():yield y},o=`multipart/form-data; boundary=${A}`}else if(WU(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(dd.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:jae(t)}if((typeof n=="string"||dd.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(!jU(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 uAe(t,e=!1){return t instanceof ReadableStream&&(WQ(!dd.isDisturbed(t),"The body has already been consumed."),WQ(!t.locked,"The stream is locked.")),eL(t,e)}function lAe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function dAe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function gAe(t){return{blob(){return Bc(this,r=>{let s=KU(this);return s===null?s="":s&&(s=aAe(s)),new nAe([r],{type:s})},t)},arrayBuffer(){return Bc(this,r=>new Uint8Array(r).buffer,t)},text(){return Bc(this,XU,t)},json(){return Bc(this,fAe,t)},formData(){return Bc(this,r=>{let s=KU(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=AAe(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new zU;return i[Qc]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new zU;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 Bc(this,r=>new Uint8Array(r),t)}}}function hAe(t){Object.assign(t.prototype,gAe(t))}async function Bc(t,e,r){if(sAe.brandCheck(t,r),tL(t))throw new TypeError("Body is unusable: Body has already been read");dAe(t[Qc]);let s=eAe(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[Qc].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await tAe(t[Qc].body,i,n),s.promise)}function tL(t){let e=t[Qc].body;return e!=null&&(e.stream.locked||dd.isDisturbed(e.stream))}function fAe(t){return JSON.parse(XU(t))}function KU(t){let e=t[Qc].headersList,r=rAe(e);return r==="failure"?null:r}rL.exports={extractBody:eL,safelyExtractBody:uAe,cloneBody:lAe,mixinBody:hAe,streamRegistry:$U,hasFinalizationRegistry:ZU,bodyUnusable:tL}});var EL=m((AVe,pL)=>{"use strict";var j=Q("node:assert"),ee=Ee(),{channels:sL}=uc(),KQ=xQ(),{RequestContentLengthMismatchError:Na,ResponseContentLengthMismatchError:nL,RequestAbortedError:dL,InvalidArgumentError:mAe,HeadersTimeoutError:pAe,HeadersOverflowError:EAe,SocketError:bc,InformationalError:wc,BodyTimeoutError:CAe,HTTPParserError:IAe,ResponseExceededMaxSizeError:BAe}=Se(),{kUrl:gL,kReset:wr,kClient:sm,kParser:We,kBlocking:fd,kRunning:yt,kPending:hL,kSize:iL,kWriting:uo,kQueue:An,kNoRef:gd,kKeepAliveDefaultTimeout:QAe,kHostHeader:yAe,kPendingIdx:bAe,kRunningIdx:bs,kError:cr,kPipelining:nm,kSocket:Ta,kKeepAliveTimeoutValue:om,kMaxHeadersSize:XQ,kKeepAliveMaxTimeout:wAe,kKeepAliveTimeoutThreshold:NAe,kHeadersTimeout:SAe,kBodyTimeout:TAe,kStrictContentLength:$Q,kMaxRequests:oL,kCounter:DAe,kMaxResponseSize:xAe,kOnError:aL,kResume:wi,kHTTPContext:fL}=$e(),zr=$M(),AL=Buffer.alloc(0),em=Buffer[Symbol.species],tm=ee.addListener,RAe=ee.removeAllListeners,Da=Symbol("kIdleSocketValidation"),Sa=Symbol("kIdleSocketValidationTimeout"),sy=Symbol("kSocketUsed"),jQ;async function kAe(){let t=process.env.JEST_WORKER_ID?FQ():void 0,e;try{e=await WebAssembly.compile(rU())}catch{e=await WebAssembly.compile(t||FQ())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{j(ot.ptr===r);let i=s-Ln+Un.byteOffset;return ot.onStatus(new em(Un.buffer,i,n))||0},wasm_on_message_begin:r=>(j(ot.ptr===r),ot.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{j(ot.ptr===r);let i=s-Ln+Un.byteOffset;return ot.onHeaderField(new em(Un.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{j(ot.ptr===r);let i=s-Ln+Un.byteOffset;return ot.onHeaderValue(new em(Un.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(j(ot.ptr===r),ot.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{j(ot.ptr===r);let i=s-Ln+Un.byteOffset;return ot.onBody(new em(Un.buffer,i,n))||0},wasm_on_message_complete:r=>(j(ot.ptr===r),ot.onMessageComplete()||0)}})}var ZQ=null,ey=kAe();ey.catch();var ot=null,Un=null,rm=0,Ln=null,FAe=0,hd=1,Nc=2|hd,im=4|hd,ty=8|FAe,ry=class{constructor(e,r,{exports:s}){j(Number.isFinite(e[XQ])&&e[XQ]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(zr.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeo Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[yAe],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[nm]&&!h[wr]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let y=0;y<c.length;y+=2){let E=c[y+0],b=c[y+1];if(Array.isArray(b))for(let N=0;N<b.length;N++)p+=`${E}: ${b[N]}\r
`;else p+=`${E}: ${b}\r
`}return sL.sendHeaders.hasSubscribers&&sL.sendHeaders.publish({request:e,headers:p,socket:h}),!A||g===0?uL(f,null,t,e,h,u,p,l):ee.isBuffer(A)?uL(f,A,t,e,h,u,p,l):ee.isBlobLike(A)?typeof A.stream=="function"?lL(f,A.stream(),t,e,h,u,p,l):_Ae(f,A,t,e,h,u,p,l):ee.isStream(A)?OAe(f,A,t,e,h,u,p,l):ee.isIterable(A)?lL(f,A,t,e,h,u,p,l):j(!1),!0}function OAe(t,e,r,s,n,i,o,a){j(i!==0||r[yt]===0,"stream body cannot be pipelined");let A=!1,c=new am({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){ee.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new dL;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,j(n.destroyed||n[uo]&&r[yt]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?ee.destroy(e,f):ee.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(g)}function uL(t,e,r,s,n,i,o,a){try{e?ee.isBuffer(e)&&(j(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[wr]=!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"):(j(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[wi]()}catch(A){t(A)}}async function _Ae(t,e,r,s,n,i,o,a){j(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[wr]=!0),r[wi]()}catch(A){t(A)}}async function lL(t,e,r,s,n,i,o,a){j(i!==0||r[yt]===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)=>{j(A===null),n[cr]?h(n[cr]):A=g});n.on("close",c).on("drain",c);let l=new am({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[cr])throw n[cr];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{n.off("close",c).off("drain",c)}}var am=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[uo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[cr])throw r[cr];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[$Q])throw new Na;process.emitWarning(new Na)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[wr]=!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[We].timeout&&r[We].timeoutType===Nc&&r[We].timeout.refresh&&r[We].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[uo]=!1,e[cr])throw e[cr];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[$Q])throw new Na;process.emitWarning(new Na)}e[We].timeout&&e[We].timeoutType===Nc&&e[We].timeout.refresh&&e[We].timeout.refresh(),s[wi]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[uo]=!1,e&&(j(s[yt]<=1,"pipeline should only contain this request"),n(e))}};pL.exports=MAe});var NL=m((cVe,wL)=>{"use strict";var ws=Q("node:assert"),{pipeline:HAe}=Q("node:stream"),Ie=Ee(),{RequestContentLengthMismatchError:ny,RequestAbortedError:CL,SocketError:md,InformationalError:iy}=Se(),{kUrl:Am,kReset:um,kClient:Sc,kRunning:lm,kPending:GAe,kQueue:lo,kPendingIdx:oy,kRunningIdx:cn,kError:ln,kSocket:Mt,kStrictContentLength:YAe,kOnError:ay,kMaxConcurrentStreams:bL,kHTTP2Session:un,kResume:go,kSize:qAe,kHTTPContext:VAe}=$e(),Ni=Symbol("open streams"),IL,BL=!1,cm;try{cm=Q("node:http2")}catch{cm={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:JAe,HTTP2_HEADER_METHOD:WAe,HTTP2_HEADER_PATH:zAe,HTTP2_HEADER_SCHEME:KAe,HTTP2_HEADER_CONTENT_LENGTH:XAe,HTTP2_HEADER_EXPECT:jAe,HTTP2_HEADER_STATUS:ZAe}}=cm;function $Ae(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 ece(t,e){t[Mt]=e,BL||(BL=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=cm.connect(t[Am],{createConnection:()=>e,peerMaxConcurrentStreams:t[bL]});r[Ni]=0,r[Sc]=t,r[Mt]=e,Ie.addListener(r,"error",rce),Ie.addListener(r,"frameError",sce),Ie.addListener(r,"end",nce),Ie.addListener(r,"goaway",ice),Ie.addListener(r,"close",function(){let{[Sc]:n}=this,{[Mt]:i}=n,o=this[Mt][ln]||this[ln]||new md("closed",Ie.getSocketInfo(i));if(n[un]=null,n.destroyed){ws(n[GAe]===0);let a=n[lo].splice(n[cn]);for(let A=0;A<a.length;A++){let c=a[A];Ie.errorRequest(n,c,o)}}}),r.unref(),t[un]=r,e[un]=r,Ie.addListener(e,"error",function(n){ws(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ln]=n,this[Sc][ay](n)}),Ie.addListener(e,"end",function(){Ie.destroy(this,new md("other side closed",Ie.getSocketInfo(this)))}),Ie.addListener(e,"close",function(){let n=this[ln]||new md("closed",Ie.getSocketInfo(this));t[Mt]=null,this[un]!=null&&this[un].destroy(n),t[oy]=t[cn],ws(t[lm]===0),t.emit("disconnect",t[Am],[t],n),t[go]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return ace(t,...n)},resume(){tce(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function tce(t){let e=t[Mt];e?.destroyed===!1&&(t[qAe]===0&&t[bL]===0?(e.unref(),t[un].unref()):(e.ref(),t[un].ref()))}function rce(t){ws(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Mt][ln]=t,this[Sc][ay](t)}function sce(t,e,r){if(r===0){let s=new iy(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Mt][ln]=s,this[Sc][ay](s)}}function nce(){let t=new md("other side closed",Ie.getSocketInfo(this[Mt]));this.destroy(t),Ie.destroy(this[Mt],t)}function ice(t){let e=this[ln]||new md(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ie.getSocketInfo(this)),r=this[Sc];if(r[Mt]=null,r[VAe]=null,this[un]!=null&&(this[un].destroy(e),this[un]=null),Ie.destroy(this[Mt],e),r[cn]<r[lo].length){let s=r[lo][r[cn]];r[lo][r[cn]++]=null,Ie.errorRequest(r,s,e),r[oy]=r[cn]}ws(r[lm]===0),r.emit("disconnect",r[Am],[r],e),r[go]()}function oce(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function ace(t,e){let r=t[un],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Ie.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let x=0;x<c.length;x+=2){let k=c[x+0],P=c[x+1];if(Array.isArray(P))for(let F=0;F<P.length;F++)l[k]?l[k]+=`,${P[F]}`:l[k]=P[F];else l[k]=P}let g,{hostname:h,port:f}=t[Am];l[JAe]=i||`${h}${f?`:${f}`:""}`,l[WAe]=s;let p=x=>{e.aborted||e.completed||(x=x||new CL,Ie.errorRequest(t,e,x),g!=null&&Ie.destroy(g,x),Ie.destroy(u,x),t[lo][t[cn]++]=null,t[go]())};try{e.onConnect(p)}catch(x){Ie.errorRequest(t,e,x)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),g=r.request(l,{endStream:!1,signal:A}),g.id&&!g.pending?(e.onUpgrade(null,null,g),++r[Ni],t[lo][t[cn]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++r[Ni],t[lo][t[cn]++]=null}),g.once("close",()=>{r[Ni]-=1,r[Ni]===0&&r.unref()}),!0;l[zAe]=n,l[KAe]="https";let y=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let E=Ie.bodyLength(u);if(Ie.isFormDataLike(u)){IL??=yc().extractBody;let[x,k]=IL(u);l["content-type"]=k,u=x.stream,E=x.length}if(E==null&&(E=e.contentLength),(E===0||!y)&&(E=null),oce(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[YAe])return Ie.errorRequest(t,e,new ny),!1;process.emitWarning(new ny)}E!=null&&(ws(u,"no body must not have content length"),l[XAe]=`${E}`),r.ref();let b=s==="GET"||s==="HEAD"||u===null;return a?(l[jAe]="100-continue",g=r.request(l,{endStream:b,signal:A}),g.once("continue",N)):(g=r. Line truncated
`,this[Fce]=A??3e5,this[kce]=n??3e5,this[Mce]=b??!0,this[Uce]=x,this[ly]=P,this[fo]=null,this[_ce]=v>-1?v:-1,this[Gce]=De??100,this[ht]=null,this[dn]=[],this[Ti]=0,this[gn]=0,this[Id]=he=>gy(this,he),this[Hce]=he=>vL(this,he)}get pipelining(){return this[fm]}set pipelining(e){this[fm]=e,this[Id](!0)}get[yd](){return this[dn].length-this[gn]}get[Qd](){return this[gn]-this[Ti]}get[Bd](){return this[dn].length-this[Ti]}get[wce](){return!!this[ht]&&!this[Dc]&&!this[ht].destroyed}get[uy](){return!!(this[ht]?.busy(null)||this[Bd]>=(PL(this)||1)||this[yd]>0)}[bce](e){OL(this),this.once("connect",e)}[Oce](e,r){let s=e.origin||this[vn].origin,n=new Ece(s,e,r);return this[dn].push(n),this[Ra]||(xa.bodyLength(n.body)==null&&xa.isIterable(n.body)?(this[Ra]=1,queueMicrotask(()=>gy(this))):this[Id](!0)),this[Ra]&&this[mo]!==2&&this[uy]&&(this[mo]=2),this[mo]<2}async[Pce](){return new Promise(e=>{this[Bd]?this[fo]=e:e(null)})}async[vce](e){return new Promise(r=>{let s=this[dn].splice(this[gn]);for(let i=0;i<s.length;i++){let o=s[i];xa.errorRequest(this,o,e)}let n=()=>{this[fo]&&(this[fo](),this[fo]=null),r(null)};this[ht]?(this[ht].destroy(e,n),this[ht]=null):queueMicrotask(n),this[Id]()})}},Vce=hm();function vL(t,e){if(t[Qd]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Si(t[gn]===t[Ti]);let r=t[dn].splice(t[Ti]);for(let s=0;s<r.length;s++){let n=r[s];xa.errorRequest(t,n,e)}Si(t[Bd]===0)}}async function OL(t){Si(!t[Dc]),Si(!t[ht]);let{host:e,hostname:r,protocol:s,port:n}=t[vn];if(r[0]==="["){let i=r.indexOf("]");Si(i!==-1);let o=r.substring(1,i);Si(LL.isIP(o)),r=o}t[Dc]=!0,Tc.beforeConnect.hasSubscribers&&Tc.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ht]?.version,servername:t[ho],localAddress:t[Cd]},connector:t[Ed]});try{let i=await new Promise((o,a)=>{t[Ed]({host:e,hostname:r,protocol:s,port:n,servername:t[ho],localAddress:t[Cd]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){xa.destroy(i.on("error",ML),new Bce);return}Si(i);try{t[ht]=i.alpnProtocol==="h2"?await qce(t,i):await Yce(t,i)}catch(o){throw i.destroy().on("error",ML),o}t[Dc]=!1,i[Lce]=0,i[ly]=t[ly],i[yce]=t,i[Sce]=null,Tc.connected.hasSubscribers&&Tc.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ht]?.version,servername:t[ho],localAddress:t[Cd]},connector:t[Ed],socket:i}),t.emit("connect",t[vn],[t])}catch(i){if(t.destroyed)return;if(t[Dc]=!1,Tc.connectError.hasSubscribers&&Tc.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ht]?.version,servername:t[ho],localAddress:t[Cd]},connector:t[Ed],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Si(t[Qd]===0);t[yd]>0&&t[dn][t[gn]].servername===t[ho];){let o=t[dn][t[gn]++];xa.errorRequest(t,o,i)}else vL(t,i);t.emit("connectionError",t[vn],[t],i)}t[Id]()}function UL(t){t[mo]=0,t.emit("drain",t[vn],[t])}function gy(t,e){t[Ra]!==2&&(t[Ra]=2,Jce(t,e),t[Ra]=0,t[Ti]>256&&(t[dn].splice(0,t[Ti]),t[gn]-=t[Ti],t[Ti]=0))}function Jce(t,e){for(;;){if(t.destroyed){Si(t[yd]===0);return}if(t[fo]&&!t[Bd]){t[fo](),t[fo]=null;return}if(t[ht]&&t[ht].resume(),t[uy])t[mo]=2;else if(t[mo]===2){e?(t[mo]=1,queueMicrotask(()=>UL(t))):UL(t);continue}if(t[yd]===0||t[Qd]>=(PL(t)||1))return;let r=t[dn][t[gn]];if(t[vn].protocol==="https:"&&t[ho]!==r.servername){if(t[Qd]>0)return;t[ho]=r.servername,t[ht]?.destroy(new Ice("servername changed"),()=>{t[ht]=null,gy(t)})}if(t[Dc])return;if(!t[ht]){OL(t);return}if(t[ht].destroyed||t[ht].busy(r))return;!r.aborted&&t[ht].write(r)?t[gn]++:t[dn].splice(t[gn],1)}}_L.exports=dy});var hy=m((hVe,HL)=>{"use strict";var mm=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)}};HL.exports=class{constructor(){this.head=this.tail=new mm}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new mm),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var YL=m((fVe,GL)=>{var{kFree:Wce,kConnected:zce,kPending:Kce,kQueued:Xce,kRunning:jce,kSize:Zce}=$e(),ka=Symbol("pool"),fy=class{constructor(e){this[ka]=e}get connected(){return this[ka][zce]}get free(){return this[ka][Wce]}get pending(){return this[ka][Kce]}get queued(){return this[ka][Xce]}get running(){return this[ka][jce]}get size(){return this[ka][Zce]}};GL.exports=fy});var By=m((mVe,$L)=>{"use strict";var $ce=hc(),eue=hy(),{kConnected:my,kSize:qL,kRunning:VL,kPending:JL,kQueued:bd,kBusy:tue,kFree:rue,kUrl:sue,kClose:nue,kDestroy:iue,kDispatch:oue}=$e(),aue=YL(),Nr=Symbol("clients"),ur=Symbol("needDrain"),wd=Symbol("queue"),py=Symbol("closed resolve"),Ey=Symbol("onDrain"),WL=Symbol("onConnect"),zL=Symbol("onDisconnect"),KL=Symbol("onConnectionError"),Cy=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())}};o3.exports=Bb});var Mm=m((qVe,l3)=>{"use strict";var A3=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Fde}=Se(),Mde=kc();u3()===void 0&&c3(new Mde);function c3(t){if(!t||typeof t.dispatch!="function")throw new Fde("Argument agent must implement Agent");Object.defineProperty(globalThis,A3,{value:t,writable:!0,enumerable:!1,configurable:!1})}function u3(){return globalThis[A3]}l3.exports={setGlobalDispatcher:c3,getGlobalDispatcher:u3}});var Um=m((JVe,d3)=>{"use strict";d3.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 h3=m((WVe,g3)=>{"use strict";var Ude=gm();g3.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 Ude(r,o,n,i);return r(a,A)}}});var m3=m((zVe,f3)=>{"use strict";var Lde=bm();f3.exports=t=>e=>function(s,n){return e(s,new Lde({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var E3=m((KVe,p3)=>{"use strict";var Pde=Ee(),{InvalidArgumentError:vde,RequestAbortedError:Ode}=Se(),_de=Um(),Qb=class extends _de{#e=1024*1024;#t=null;#r=!1;#n=!1;#i=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new vde("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#n=!0,this.#s=e}onHeaders(e,r,s,n){let o=Pde.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Ode(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#n?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#s??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#r=!0,this.#n?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#n){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Hde({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new Qb({maxSize:i},n);return e(s,o)}}p3.exports=Hde});var B3=m((XVe,I3)=>{"use strict";var{isIP:Gde}=Q("node:net"),{lookup:Yde}=Q("node:dns"),qde=Um(),{InvalidArgumentError:Yc,InformationalError:Vde}=Se(),C3=Math.pow(2,31)-1,yb=class{#e=0;#t=0;#r=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#n,this.pick=e.pick??this.#i}get full(){return this.#r.size===this.#t}runLookup(e,r,s){let n=this.#r.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new Vde("No DNS entries found"));return}this.setRecords(e,a);let A=this.#r.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#r.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#n(e,r,s){Yde(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===C3?(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===C3?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 bb(this,e,r)}},bb=class extends qde{#e=null;#t=null;#r=null;#n=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#i=r,this.#n=s,this.#t={...i},this.#e=e,this.#r=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,s)=>{if(r)return this.#n.onError(r);le Line truncated
${i}`;break;case"retry":$4(i)&&(r[n]=i);break;case"id":eO(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&$4(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&eO(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}}};tO.exports={EventSourceStream:g1}});var uO=m((S7e,cO)=>{"use strict";var{pipeline:$me}=Q("node:stream"),{fetching:epe}=Pd(),{makeRequest:tpe}=Jc(),{webidl:Fi}=Vt(),{EventSourceStream:rpe}=rO(),{parseMIMEType:spe}=br(),{createFastMessageEvent:npe}=Zc(),{isNetworkError:sO}=Ud(),{delay:ipe}=l1(),{kEnumerableProperty:Wa}=Ee(),{environmentSettingsObject:nO}=Wr(),iO=!1,oO=3e3,jd=0,aO=1,Zd=2,ope="anonymous",ape="use-credentials",su=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#n=jd;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),Fi.util.markAsUncloneable(this);let s="EventSource constructor";Fi.argumentLengthCheck(arguments,1,s),iO||(iO=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Fi.converters.USVString(e,s,"url"),r=Fi.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:oO};let n=nO,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=ope;r.withCredentials&&(o=ape,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=nO.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=tpe(a),this.#A()}get readyState(){return this.#n}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#n===Zd)return;this.#n=jd;let e={request:this.#i,dispatcher:this.#a},r=s=>{sO(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(sO(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?spe(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#n=aO,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new rpe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(npe(A.type,A.options))}});$me(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=epe(e)}async#c(){this.#n!==Zd&&(this.#n=jd,this.dispatchEvent(new Event("error")),await ipe(this.#o.reconnectionTime),this.#n===jd&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Fi.brandCheck(this,t),this.#n!==Zd&&(this.#n=Zd,this.#s.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}},AO={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:jd,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:aO,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Zd,writable:!1}};Object.defineProperties(su,AO);Object.defineProperties(su.prototype,AO);Object.defineProperties(su.prototype,{close:Wa,onerror:Wa,onmessage:Wa,onopen:Wa,readyState:Wa,url:Wa,withCredentials:Wa});Fi.converters.EventSourceInitDict=Fi.dictionaryConverter([{key:"withCredentials",converter:Fi.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Fi.converters.any}]);cO.exports={EventSource:su,defaultReconnectionTime:oO}});var yp=m((T7e,ie)=>{"use strict";var Ape=xc(),lO=rd(),cpe=Rc(),upe=AP(),lpe=kc(),dpe=My(),gpe=kP(),hpe=OP(),dO=Se(),Qp=Ee(),{InvalidArgumentError:Bp}=dO,nu=wv(),fpe=nd(),mpe=fb(),ppe=a3(),Epe=Eb(),Cpe=rb(),Ipe=bm(),{getGlobalDispatcher:gO,setGlobalDispatcher:Bpe}=Mm(),Qpe=Um(),ype=gm(),bpe=hm();Object.assign(lO.prototype,nu);ie.exports.Dispatcher=lO;ie.exports.Client=Ape;ie.exports.Pool=cpe;ie.exports.BalancedPool=upe;ie.exports.Agent=lpe;ie.exports.ProxyAgent=dpe;ie.exports.EnvHttpProxyAgent=gpe;ie.exports.RetryAgent=hpe;ie.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 b5=m(y5=>{"use strict";var EN=Gi().Buffer;y5._dbcs=Yi;var Jt=-1,Q5=-2,Os=-10,mr=-1e3,Nu=new Array(256),Rg=-1;for(U0=0;U0<256;U0++)Nu[U0]=Jt;var U0;function Yi(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]=Nu.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(Nu.slice(0));var i=this.decodeTables.length;this.decodeTables.push(Nu.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[mr-o[s]],A=48;A<=57;A++){if(a[A]===Jt)a[A]=mr-n;else if(a[A]>mr)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[mr-a[A]],u=129;u<=254;u++){if(c[u]===Jt)c[u]=mr-i;else{if(c[u]===mr-i)continue;if(c[u]>mr)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[mr-c[u]],g=48;g<=57;g++)l[g]===Jt&&(l[g]=Q5)}}}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 ewe(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(O1e.has(n)){r=n;break}}return r}function twe(t,e){let r=ewe(e);r!==""&&(t.referrerPolicy=r)}function rwe(){return"allowed"}function swe(){return"success"}function nwe(){return"success"}function iwe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function owe(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&&PS(t.origin)&&!PS(gA(t))&&(e=null);break;case"same-origin":Hg(t,gA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Ru(t,e){return t}function awe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Ru(t.domainLookupStartTime,r),domainLookupEndTime:Ru(t.domainLookupEndTime,r),connectionStartTime:Ru(t.connectionStartTime,r),connectionEndTime:Ru(t.connectionEndTime,r),secureConnectionStartTime:Ru(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Awe(t){return Ru(Y1e.now(),t)}function cwe(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 $9(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function uwe(t){return{referrerPolicy:t.referrerPolicy}}function lwe(t){let e=t.referrerPolicy;Gg(e);let r=null;if(t.referrer==="client"){let i=z9();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Vo.is.URL(t.referrer)&&(r=t.referrer);let s=LS(r),n=LS(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??LS(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=gA(t);return dA(s)&&!dA(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=gA(t);return Hg(s,i)?s:dA(s)&&!dA(i)?"no-referrer":n}case"same-origin":return Hg(t,s)?s:"no-referrer";case"origin-when-cross-origin":return Hg(t,s)?s:n;case"no-referrer-when-downgrade":{let i=gA(t);return dA(s)&&!dA(i)?"no-referrer":s}}}function LS(t,e=!1){return Gg(Vo.is.URL(t)),t=new URL(t),sG(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var dwe=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)$/),gwe=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function eG(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),gwe(t)):dwe(t)}function hwe(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||eG(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function dA(t){return Vo.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:hwe(t.origin):!1}function fwe(t){}function Hg(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function mwe(t){return t.controller.state==="aborted"}function pwe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Ewe(t){return V1e[t.toLowerCase()]??t}var Cwe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function tG(t,e,r=0,s=1){class n{#e;#t;#r;constructor(o,a){this.#e=o,this.#t=a,this.#r=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#r,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[s]:u}=a[o];this.#r=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,Cwe),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 Iwe(t,e,r,s=0,n=1){let i=tG(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Vo.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Vo.brandCheck(this,e),i(this,"value")}},en Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Gs(a=>JS(a)&&a!==59,t,e);i=qS.decode(o)}return{name:s,value:i,extended:n}}function qwe(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 Lr("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=Gs(a=>a!==10&&a!==13&&a!==58,t,e);if(o=VS(o,!0,!0,a=>a===9||a===32),!Lwe.test(o.toString()))throw Lr("header name does not match the field-name token production");if(t[e.position]!==58)throw Lr("expected :");switch(e.position++,Gs(a=>a===32||a===9,t,e),Uwe(o)){case"content-disposition":{r=s=null;let a=!1;if(Gs(c=>JS(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw Lr("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let c=Ywe(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(c.extended?(s=c.value,a=!0):a||(s=c.value))}if(r===null)throw Lr("name attribute is required in content-disposition header");break}case"content-type":{let a=Gs(A=>A!==10&&A!==13,t,e);a=VS(a,!1,!0,A=>A===9||A===32),n=cG(a);break}case"content-transfer-encoding":{let a=Gs(A=>A!==10&&A!==13,t,e);a=VS(a,!1,!0,A=>A===9||A===32),i=cG(a);break}default:Gs(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Lr("expected CRLF");e.position+=2}}function Gs(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function VS(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 Vwe(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 Lr(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function Jwe(t){return t<=31||t===127}function Wwe(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 JS(t){return t<=127&&t!==32&&t!==9&&!Jwe(t)&&!Wwe(t)}uG.exports={multipartFormDataParser:Gwe,validateBoundary:Hwe}});var Yg=m((Lje,dG)=>{"use strict";function zwe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}dG.exports={createDeferredPromise:zwe}});var Mu=m((Pje,pG)=>{"use strict";var KS=ue(),{ReadableStreamFrom:Kwe,readableStreamClose:Xwe,fullyReadBody:jwe,extractMimeType:Zwe}=As(),{FormData:gG,setFormDataState:$we}=oE(),{webidl:yn}=Wt(),WS=Q("node:assert"),{isErrored:zS,isDisturbed:eNe}=Q("node:stream"),{isUint8Array:tNe}=Q("node:util/types"),{serializeAMimeType:rNe}=Hs(),{multipartFormDataParser:sNe}=lG(),{createDeferredPromise:nNe}=Yg(),{parseJSONFromBytes:iNe}=Ji(),{utf8DecodeBytes:oNe}=eE(),{runtimeFeatures:aNe}=Wi(),ANe=aNe.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),aE=new TextEncoder;function cNe(){}var uNe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!eNe(e)&&!zS(e)&&e.cancel("Response object has been garbage collected").catch(cNe)});function fG(t,e=!1){let r=null,s=null;yn.is.ReadableStream(t)?r=t:yn.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),WS(yn.is.ReadableStream(r));let n=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(yn.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(yn.is.BufferSource(t))i=yn.util.getCopyOfBytesHeldByBufferSource(t);else if(yn.is.FormData(t)){let c=`----formdata-undici-0${`${ANe(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),g=E=>E.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[E,b]of t)if(typeof b=="string"){let N=aE.encode(u+`; name="${l(g(E))}"\r
\r
${g(p)}\r
`);d.push(w),i+=w.byteLength}else{let w=tk.encode(`${u}; name="${l(g(C))}"`+(p.name?`; filename="${l(p.name)}"`:"")+`\r
Content-Type: ${p.type||"application/octet-stream"}\r
${g(b)}\r
`);h.push(N),o+=N.byteLength}else{let N=aE.encode(`${u}; name="${l(g(E))}"`+(b.name?`; filename="${l(b.name)}"`:"")+`\r
Content-Type: ${b.type||"application/octet-stream"}\r
\r
`);d.push(w,p,h),typeof p.size=="number"?i+=w.byteLength+p.size+h.byteLength:B=!0}let Q=tk.encode(`--${c}--\r
`);d.push(Q),i+=Q.byteLength,B&&(i=null),n=t,s=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${c}`}else if(rc.is.Blob(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(wq.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=rc.is.ReadableStream(t)?t:Sgt(t)}return(typeof n=="string"||Mgt(n))&&(s=()=>(i=typeof n=="string"?Buffer.byteLength(n):n.length,n)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(bq(r))break;l.length&&A.enqueue(new Uint8Array(l))}else c?.length&&!bq(r)&&A.enqueue(typeof c=="string"?tk.encode(c):new Uint8Array(c));queueMicrotask(()=>Tgt(A))})(),[{stream:r,source:n,length:i},o]}function Jgt(t,e=!1){return rc.is.ReadableStream(t)&&(yq(!wq.isDisturbed(t),"The body has already been consumed."),yq(!t.locked,"The stream is locked.")),ABe(t,e)}function Vgt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function Wgt(t,e){return{blob(){return qB(this,A=>{let s=rBe(e(this));return s===null?s="":s&&(s=Lgt(s)),new Blob([A],{type:s})},t,e)},arrayBuffer(){return qB(this,A=>new Uint8Array(A).buffer,t,e)},text(){return qB(this,Ogt,t,e)},json(){return qB(this,Pgt,t,e)},formData(){return qB(this,A=>{let s=rBe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let n=vgt(A,s),i=new tBe;return xgt(i,n),i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(A.toString()),i=new tBe;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return qB(this,A=>new Uint8Array(A),t,e)}}}function zgt(t,e){Object.assign(t.prototype,Wgt(t,e))}function qB(t,e,r,A){try{rc.brandCheck(t,r)}catch(o){return Promise.reject(o)}if(t=A(t),sBe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=_gt(),n=s.reject,i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t.body==null?(i(Buffer.allocUnsafe(0)),s.promise):(kgt(t.body,i,n),s.promise)}function sBe(t){let e=t.body;return e!=null&&(e.stream.locked||wq.isDisturbed(e.stream))}function rBe(t){let e=t.headersList,r=Fgt(e);return r==="failure"?null:r}nBe.exports={extractBody:ABe,safelyExtractBody:Jgt,cloneBody:Vgt,mixinBody:zgt,streamRegistry:qgt,bodyUnusable:sBe}});var fBe=E((bBr,EBe)=>{"use strict";var Ke=I("node:assert"),$e=ot(),{channels:iBe}=od(),Dq=l4(),{RequestContentLengthMismatchError:NE,ResponseContentLengthMismatchError:jgt,RequestAbortedError:gBe,HeadersTimeoutError:Kgt,HeadersOverflowError:Xgt,SocketError:cb,InformationalError:VB,BodyTimeoutError:Zgt,HTTPParserError:$gt,ResponseExceededMaxSizeError:edt}=ut(),{kUrl:dBe,kReset:Vn,kClient:xq,kParser:hA,kBlocking:ub,kRunning:zs,kPending:tdt,kSize:oBe,kWriting:ld,kQueue:Ac,kNoRef:ob,kKeepAliveDefaultTimeout:rdt,kHostHeader:Adt,kPendingIdx:sdt,kRunningIdx:zo,kError:jo,kPipelining:sk,kSocket:WB,kKeepAliveTimeoutValue:ik,kMaxHeadersSize:ndt,kKeepAliveMaxTimeout:idt,kKeepAliveTimeoutThreshold:odt,kHeadersTimeout:adt,kBodyTimeout:cdt,kStrictContentLength:Sq,kMaxRequests:aBe,kCounter:udt,kMaxResponseSize:ldt,kOnError:gdt,kResume:ud,kHTTPContext:hBe,kClosed:Tq}=Er(),Xc=nCe(),ddt=Buffer.alloc(0),rk=Buffer[Symbol.species],hdt=$e.removeAllListeners,Nq;function Edt(){let t=process.env.JEST_WORKER_ID?$4():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(aCe())}catch{}return e||(e=new WebAssembly.Module(t||$4())),new WebAssembly.Instance(e,{env:{wasm_on_url:(A,s,n)=>0,wasm_on_status:(A,s,n)=>{Ke(ts.ptr===A);let i=s-$c+Zc.byteOffset;return ts.onStatus(new rk(Zc.buffer,i,n))},wasm_on_message_begin:A=>(Ke(ts.ptr===A),ts.onMessageBegin()),wasm_on_header_field:(A,s,n)=>{Ke(ts.ptr===A);let i=s-$c+Zc.byteOffset;return ts.onHeaderField(new rk(Zc.buffer,i,n))},wasm_on_header_value:(A,s,n)=>{Ke(ts.ptr===A);let i=s-$c+Zc.byteOffset;return ts.onHeaderValue(new rk(Zc.buffer,i,n))},wasm_on_headers_complete:(A,s,n,i)=>(Ke(ts.ptr===A),ts.onHeadersComplete(s,n===1,i===1)),wasm_on_body:(A,s,n)=>{Ke(ts.ptr===A);let i=s-$c+Zc.byteOffset;return ts.onBody(new rk(Zc.buffer,i,n))},wasm_on_message_complete:A=>(Ke(ts.ptr===A),ts.onMessageComplete())}})}var Rq=null,ts=null,Zc=null,Ak=0,$c=null,fdt=0,ab=1,zB=2|ab,nk=4|ab,kq=8|fdt,Fq=class{constructor(e,r,{exports:A}){this.llhttp=A,this.ptr=this.llhttp.llhttp_alloc(Xc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[ndt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[ldt]}setTi Line truncated
`;if(typeof s=="string"?B+=`host: ${s}\r
`:B+=t[Adt],n?B+=`connection: upgrade\r
upgrade: ${n}\r
`:t[sk]&&!d[Vn]?B+=`connection: keep-alive\r
`:B+=`connection: close\r
`,Array.isArray(c))for(let Q=0;Q<c.length;Q+=2){let C=c[Q+0],p=c[Q+1];if(Array.isArray(p))for(let w=0;w<p.length;w++)B+=`${C}: ${p[w]}\r
`;else B+=`${C}: ${p}\r
`}return iBe.sendHeaders.hasSubscribers&&iBe.sendHeaders.publish({request:e,headers:B,socket:d}),!a||g===0?uBe(h,null,t,e,d,u,B,l):$e.isBuffer(a)?uBe(h,a,t,e,d,u,B,l):$e.isBlobLike(a)?typeof a.stream=="function"?lBe(h,a.stream(),t,e,d,u,B,l):Ndt(h,a,t,e,d,u,B,l):$e.isStream(a)?Ddt(h,a,t,e,d,u,B,l):$e.isIterable(a)?lBe(h,a,t,e,d,u,B,l):Ke(!1),!0}function Ddt(t,e,r,A,s,n,i,o){Ke(n!==0||r[zs]===0,"stream body cannot be pipelined");let a=!1,c=new ok({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i}),u=function(h){if(!a)try{!c.write(h)&&this.pause&&this.pause()}catch(B){$e.destroy(this,B)}},l=function(){a||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!a){let h=new gBe;queueMicrotask(()=>d(h))}},d=function(h){if(!a){if(a=!0,Ke(s.destroyed||s[ld]&&r[zs]<=1),s.off("drain",l).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("close",g),!h)try{c.end()}catch(B){h=B}c.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?$e.destroy(e,h):$e.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",g),e.resume&&e.resume(),s.on("drain",l).on("error",d),e.errorEmitted??e.errored?setImmediate(d,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(d,null),(e.closeEmitted??e.closed)&&setImmediate(g)}function uBe(t,e,r,A,s,n,i,o){try{e?$e.isBuffer(e)&&(Ke(n===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${i}content-length: ${n}\r
`);h.push(N,b,f),typeof b.size=="number"?o+=N.byteLength+b.size+f.byteLength:p=!0}let y=aE.encode(`--${c}--\r
`);h.push(y),o+=y.byteLength,p&&(o=null),i=t,n=async function*(){for(let E of h)E.stream?yield*E.stream():yield E},a=`multipart/form-data; boundary=${c}`}else if(yn.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(KS.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=yn.is.ReadableStream(t)?t:Kwe(t)}return(typeof i=="string"||tNe(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(zS(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!zS(r)&&s.enqueue(typeof c=="string"?aE.encode(c):new Uint8Array(c));queueMicrotask(()=>Xwe(s))})(),[{stream:r,source:i,length:o},a]}function lNe(t,e=!1){return yn.is.ReadableStream(t)&&(WS(!KS.isDisturbed(t),"The body has already been consumed."),WS(!t.locked,"The stream is locked.")),fG(t,e)}function dNe(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function gNe(t,e){return{blob(){return Fu(this,s=>{let n=hG(e(this));return n===null?n="":n&&(n=rNe(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return Fu(this,s=>new Uint8Array(s).buffer,t,e)},text(){return Fu(this,oNe,t,e)},json(){return Fu(this,iNe,t,e)},formData(){return Fu(this,s=>{let n=hG(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=sNe(s,n),o=new gG;return $we(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new gG;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 Fu(this,s=>new Uint8Array(s),t,e)}}}function hNe(t,e){Object.assign(t.prototype,gNe(t,e))}function Fu(t,e,r,s){try{yn.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),mG(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=nNe(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(jwe(t.body,o,i),n.promise)}function mG(t){let e=t.body;return e!=null&&(e.stream.locked||KS.isDisturbed(e.stream))}function hG(t){let e=t.headersList,r=Zwe(e);return r==="failure"?null:r}pG.exports={extractBody:fG,safelyExtractBody:lNe,cloneBody:dNe,mixinBody:hNe,streamRegistry:uNe,bodyUnusable:mG}});var kG=m((vje,RG)=>{"use strict";var re=Q("node:assert"),K=ue(),{channels:EG}=Yo(),XS=xN(),{RequestContentLengthMismatchError:hA,ResponseContentLengthMismatchError:CG,RequestAbortedError:SG,InvalidArgumentError:fNe,HeadersTimeoutError:mNe,HeadersOverflowError:pNe,SocketError:fA,InformationalError:Uu,BodyTimeoutError:ENe,HTTPParserError:CNe,ResponseExceededMaxSizeError:INe}=Ae(),{kUrl:TG,kReset:Pr,kClient:dE,kParser:Xe,kBlocking:Jg,kRunning:St,kPending:sT,kSize:IG,kWriting:Jo,kQueue:bn,kNoRef:qg,kKeepAliveDefaultTimeout:BNe,kHostHeader:QNe,kPendingIdx:yNe,kRunningIdx:Ys,kError:pr,kPipelining:uE,kSocket:pA,kKeepAliveTimeoutValue:gE,kMaxHeadersSize:bNe,kKeepAliveMaxTimeout:wNe,kKeepAliveTimeoutThreshold:NNe,kHeadersTimeout:SNe,kBodyTimeout:TNe,kStrictContentLength:$S,kMaxRequests:BG,kCounter:DNe,kMaxResponseSize:xNe,kOnError:QG,kResume:Ki,kHTTPContext:DG,kClosed:eT}=Ue(),cs=p9(),yG=Buffer.alloc(0),AE=Buffer[Symbol.species],RNe=K.removeAllListeners,EA=Symbol("kIdleSocketValidation"),mA=Symbol("kIdleSocketValidationTimeout"),nT=Symbol("kSocketUsed"),jS;function kNe(){let t=process.env.JEST_WORKER_ID?yS():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(I9())}catch{}return e||(e=new WebAssembly.Module(t||yS())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{re(ct.ptr===s);let o=n-Xn+Kn.byteOffset;return ct.onStatus(new AE(Kn.buffer,o,i))},wasm_on_message_begin:s=>(re(ct.ptr===s),ct.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{re(ct.ptr===s);let o=n-Xn+Kn.byteOffset;return ct.onHeaderField(new AE(Kn.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{re(ct.ptr===s);let o=n-Xn+Kn.byteOffset;return ct.onHeaderValue(new AE(Kn.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(re(ct.ptr===s),ct.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{re(ct.ptr===s);let o=n-Xn+Kn.byteOffset;return ct.onBody(new AE(Kn.buffer,o,i))},wasm_on_message_complete:s=>(re(ct.ptr===s),ct.onMessageComplete())}})}var ZS=null,ct=null,Kn=null,cE=0,Xn=null,FNe=0,Vg=1,Lu=2|Vg,lE=4|Vg,tT=8|FNe,rT=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(cs.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[bNe],this.shouldKeepAlive=!1,this.paused=!1,this.r Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[QNe],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[uE]&&!h[Pr]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let y=0;y<c.length;y+=2){let E=c[y+0],b=c[y+1];if(Array.isArray(b))for(let N=0;N<b.length;N++)p+=`${E}: ${b[N]}\r
`;else p+=`${E}: ${b}\r
`}return EG.sendHeaders.hasSubscribers&&EG.sendHeaders.publish({request:e,headers:p,socket:h}),!A||g===0?wG(f,null,t,e,h,u,p,l):K.isBuffer(A)?wG(f,A,t,e,h,u,p,l):K.isBlobLike(A)?typeof A.stream=="function"?NG(f,A.stream(),t,e,h,u,p,l):VNe(f,A,t,e,h,u,p,l):K.isStream(A)?qNe(f,A,t,e,h,u,p,l):K.isIterable(A)?NG(f,A,t,e,h,u,p,l):re(!1),!0}function qNe(t,e,r,s,n,i,o,a){re(i!==0||r[St]===0,"stream body cannot be pipelined");let A=!1,c=new hE({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){K.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new SG;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,re(n.destroyed||n[Jo]&&r[St]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?K.destroy(e,f):K.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(g)}function wG(t,e,r,s,n,i,o,a){try{e?K.isBuffer(e)&&(re(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[Pr]=!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"):(re(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Ki]()}catch(A){t(A)}}async function VNe(t,e,r,s,n,i,o,a){re(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new hA;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(a),s.uncork(),A.onBodySent(a),A.onRequestSent(),!o&&A.reset!==!1&&(s[Vn]=!0),r[ud]()}catch(a){t(a)}}async function lBe(t,e,r,A,s,n,i,o){Ke(n!==0||r[zs]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let g=a;a=null,g()}}let u=()=>new Promise((g,d)=>{Ke(a===null),s[jo]?d(s[jo]):a=g});s.on("close",c).on("drain",c);let l=new ok({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i});try{for await(let g of e){if(s[jo])throw s[jo];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{s.off("close",c).off("drain",c)}}var ok=class{constructor({abort:e,socket:r,request:A,contentLength:s,client:n,expectsPayload:i,header:o}){this.socket=r,this.request=A,this.contentLength=s,this.client=n,this.bytesWritten=0,this.expectsPayload=i,this.header=o,this.abort=e,r[ld]=!0}write(e){let{socket:r,request:A,contentLength:s,client:n,bytesWritten:i,expectsPayload:o,header:a}=this;if(r[jo])throw r[jo];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&i+c>s){if(n[Sq])throw new NE;process.emitWarning(new NE)}r.cork(),i===0&&(!o&&A.reset!==!1&&(r[Vn]=!0),s===null?r.write(`${a}transfer-encoding: chunked\r
`,"latin1"):r.write(`${a}content-length: ${s}\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[Pr]=!0),r[Ki]()}catch(A){t(A)}}async function NG(t,e,r,s,n,i,o,a){re(i!==0||r[St]===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)=>{re(A===null),n[pr]?h(n[pr]):A=g});n.on("close",c).on("drain",c);let l=new hE({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[pr])throw n[pr];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{n.off("close",c).off("drain",c)}}var hE=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[Jo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[pr])throw r[pr];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[$S])throw new hA;process.emitWarning(new hA)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Pr]=!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[Xe].timeout&&r[Xe].timeoutType===Lu&&r[Xe].timeout.refresh&&r[Xe].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Jo]=!1,e[pr])throw e[pr];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[$S])throw new hA;process.emitWarning(new hA)}e[Xe].timeout&&e[Xe].timeoutType===Lu&&e[Xe].timeout.refresh&&e[Xe].timeout.refresh(),s[Ki]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Jo]=!1,e&&(re(s[St]<=1,"pipeline should only contain this request"),n(e))}};RG.exports=MNe});var HG=m((Oje,_G)=>{"use strict";var Vs=Q("node:assert"),{pipeline:JNe}=Q("node:stream"),fe=ue(),{RequestContentLengthMismatchError:AT,RequestAbortedError:WNe,SocketError:Xg,InformationalError:Wo,InvalidArgumentError:zNe}=Ae(),{kUrl:Kg,kReset:EE,kClient:us,kRunning:jg,kPending:KNe,kQueue:zo,kPendingIdx:uT,kRunningIdx:wn,kError:ls,kSocket:it,kStrictContentLength:XNe,kOnError:Pu,kMaxConcurrentStreams:mE,kPingInterval:FG,kHTTP2Session:Xi,kHTTP2InitialWindowSize:jNe,kHTTP2ConnectionWindowSize:ZNe,kResume:jn,kSize:$Ne,kHTTPContext:lT,kClosed:cT,kBodyTimeout:eSe,kEnableConnectProtocol:Wg,kRemoteSettings:zg,kHTTP2Stream:fE,kHTTP2SessionState:dT}=Ue(),{channels:MG}=Yo(),qs=Symbol("open streams"),UG,pE;try{pE=Q("node:http2")}catch{pE={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:tSe,HTTP2_HEADER_METHOD:LG,HTTP2_HEADER_PATH:PG,HTTP2_HEADER_SCHEME:iT,HTTP2_HEADER_CONTENT_LENGTH:rSe,HTTP2_HEADER_EXPECT:sSe,HTTP2_HEADER_STATUS:oT,HTTP2_HEADER_PROTOCOL:nSe,NGHTTP2_REFUSED_STREAM:iSe,NGHTTP2_CANCEL:oSe}}=pE;function aT(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 aSe(t,e){t[it]=e;let r=t[jNe],s=t[ZNe],n=pE.connect(t[Kg],{createConnection:()=>e,peerMaxConcurrentStreams:t[mE],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[it]=e,n[qs]=0,n[us]=t,n[it]=e,n[dT]={ping:{interval:t[FG]===0?null:setInterval(lSe,t[FG],n).unref()}},n[Wg]=!1,n[zg]=!1,s&&fe.addListener(n,"connect",cSe.bind(n,s)),fe.addListener(n,"error",dSe),fe.addListener(n,"frameError",gSe),fe.addListener(n,"end",hSe),fe.addListener(n,"goaway",fSe),fe.addListener(n,"close",mSe),fe.addListener(n,"remoteSettings",uSe),n.unref(),t[Xi]=n,e[Xi]=n,fe.addListener(e,"error",ESe),fe.addListener(e,"end",CSe),fe.addListener(e,"close",pSe),e[cT]=!1,e.on("close",ISe),{version:"h2",defaultPipelining:1/0,write(i){return QSe(t,i)},resume(){ASe(t)},destroy(i,o){e[cT]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[jg]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[zg]===!1||fe.bodyLength(i.body)!==0&&(fe.isStream(i.body)||fe.isAsyncIterable(i.body)||fe.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[zg]===!1;return!1}}}function ASe(t){let e=t[it];e?.destroyed===!1&&(t[$Ne]===0||t[mE]===0?(e.unref(),t[Xi].unref()):(e.ref(),t[Xi].ref()))}function cSe(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function uSe(t){if(this[us][mE]=t.maxConcurrentStreams??this[us][mE],this[zg]===!0&&this[Wg]===!0&&t.enableConnectProtocol===!1){let e=new Wo("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[it][ls]=e,this[us][Pu](e);return}this[Wg]=t.enableConnectProtocol??this[Wg],this[zg]=!0,this[us][jn]()}function lSe(t){let e=t[dT];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[us],o=this[us];if(s!=null){let a=new Wo(`HTTP/2: "PING" errored - type ${s.message}`);o[ls]=a,i[Pu](a)}else i.emit("ping",n)}}function dSe(t){Vs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[it][ls]=t,this[us][Pu](t)}function gSe(t,e,r){if(r===0){let s=new Wo(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[it][ls]=s,this[us][Pu](s)}}function hSe(){let t=new Xg("other side closed",fe.getSocketInfo(this[it]));this.destroy(t),fe.destroy(this[it],t)}function fSe(t){let e=this[ls]||new Xg(`HTTP/2: "GOAWAY" frame received with code ${t}`,fe.getSocketInfo(this[it])),r=this[us];if(r[it]=null,r[lT]=null,this.close(),this[Xi]=null,fe.destroy(this[it],e),r[wn]<r[zo].length){let s=r[zo][r[wn]];r[zo][r[wn]++]=null,fe.errorRequest(r,s,e),r[uT]=r[wn]}Vs(r[jg]===0),r.emit("disconnect",r[Kg],[r],e),r.emit("connectionError",r[Kg],[r],e),r[jn]()}function mSe(){let{[us]:t,[dT]:e}=this,{[it]:r}=t,s=this[it][ls]||this[ls]||new Xg("closed",fe.getSocketInfo(r));if(t[it]=null,t[lT]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Vs(t[KNe]===0);let n=t[zo].splice(t[wn]);for(let i=0;i<n.length;i++){let o=n[i];fe.errorRequest(t,o,s)}}}function pSe(){let t=this[ls]||new Xg("closed",fe.getSocketInfo(this)),e=this[Xi][us];e[it]=null,e[lT]=null,this[Xi]!==null&&this[Xi].destroy(t),e[uT]=e[wn],Vs(e[jg]===0),e.emit("disconnect",e[Kg],[e],t),e[jn]()}function ESe(t){Vs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ls]=t,this[us][Pu](t)}function CSe(){fe.destroy(this,new Xg("other side closed",fe.getSocketInfo(this)))}function ISe() Line truncated
`;MG.sendHeaders.publish({request:e,headers:F,socket:s[it]})}let x=n==="GET"||n==="HEAD"||g===null;A?(h[sSe]="100-continue",f=s.request(h,{endStream:x,signal:c}),f[fE]=!0,f.once("continue",P)):(f=s.request(h,{endStream:x,signal:c}),f[fE]=!0,P()),++s[qs],f.setTimeout(r);let k=!1;return f.once("response",F=>{let{[oT]:v,..._}=F;if(e.onResponseStarted(),k=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(v),aT(_),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",me=>{e.aborted||e.completed||e.onData(me)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),k?(!e.aborted&&!e.completed&&e.onComplete({}),t[zo][t[wn]++]=null,t[jn]()):(E(new Wo("HTTP/2: stream half-closed (remote)")),t[zo][t[wn]++]=null,t[uT]=t[wn],t[jn]())}),f.once("close",()=>{f.removeAllListeners("data"),s[qs]-=1,s[qs]===0&&s.unref()}),f.once("error",function(F){f.removeAllListeners("data"),E(F)}),f.once("frameError",(F,v)=>{f.removeAllListeners("data"),E(new Wo(`HTTP/2: "frameError" received - type ${F}, code ${v}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let F=new Wo(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[qs]-=1,s[qs]===0&&s.unref(),E(F)}),f.once("trailers",F=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(F))}),!0;function P(){!g||N===0?vG(E,f,null,t,e,t[it],N,b):fe.isBuffer(g)?vG(E,f,g,t,e,t[it],N,b):fe.isBlobLike(g)?typeof g.stream=="function"?OG(E,f,g.stream(),t,e,t[it],N,b):bSe(E,f,g,t,e,t[it],N,b):fe.isStream(g)?ySe(E,t[it],b,f,g,t,e,N):fe.isIterable(g)?OG(E,f,g,t,e,t[it],N,b):Vs(!1)}}function vG(t,e,r,s,n,i,o,a){try{r!=null&&fe.isBuffer(r)&&(Vs(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[EE]=!0),n.onRequestSent(),s[jn]()}catch(A){t(A)}}function ySe(t,e,r,s,n,i,o,a){Vs(a!==0||i[jg]===0,"stream body cannot be pipelined");let A=JNe(n,s,u=>{u?(fe.destroy(A,u),t(u)):(fe.removeAllListeners(A),o.onRequestSent(),r||(e[EE]=!0),i[jn]())});fe.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function bSe(t,e,r,s,n,i,o,a){Vs(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new AT;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[EE]=!0),s[jn]()}catch(A){t(A)}}async function OG(t,e,r,s,n,i,o,a){Vs(o!==0||s[jg]===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)=>{Vs(A===null),i[ls]?g(i[ls]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[ls])throw i[ls];let g=e.write(l);n.onBodySent(l),g||await u()}e.end(),n.onRequestSent(),a||(i[EE]=!0),s[jn]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}_G.exports=aSe});var Zo=m((_je,KG)=>{"use strict";var ji=Q("node:assert"),VG=Q("node:net"),Zg=Q("node:http"),CA=ue(),{ClientStats:wSe}=iS(),{channels:vu}=Yo(),NSe=i9(),SSe=cA(),{InvalidArgumentError:je,InformationalError:TSe,ClientDestroyedError:DSe}=Ae(),xSe=uA(),{kUrl:Zn,kServerName:jo,kClient:RSe,kBusy:hT,kConnect:kSe,kResuming:IA,kRunning:rh,kPending:sh,kSize:$g,kQueue:Nn,kConnected:FSe,kConnecting:Ou,kNeedDrain:Xo,kKeepAliveDefaultTimeout:GG,kHostHeader:MSe,kPendingIdx:Sn,kRunningIdx:$i,kError:USe,kPipelining:CE,kKeepAliveTimeoutValue:LSe,kMaxHeadersSize:PSe,kKeepAliveMaxTimeout:vSe,kKeepAliveTimeoutThreshold:OSe,kHeadersTimeout:_Se,kBodyTimeout:HSe,kStrictContentLength:GSe,kConnector:eh,kMaxRequests:fT,kCounter:YSe,kClose:qSe,kDestroy:VSe,kDispatch:JSe,kLocalAddress:th,kMaxResponseSize:WSe,kOnError:zSe,kHTTPContext:mt,kMaxConcurrentStreams:KSe,kHTTP2InitialWindowSize:XSe,kHTTP2ConnectionWindowSize:jSe,kResume:Zi,kPingInterval:ZSe}=Ue(),$Se=kG(),eTe=HG(),Ko=Symbol("kClosedResolve"),tTe=Zg&&Zg.maxHeaderSize&&Number.isInteger(Zg.maxHeaderSize)&&Zg.maxHeaderSize>0?()=>Zg.maxHeaderSize:()=>{throw new je("http module not available or http.maxHeaderSize invalid")},YG=()=>{};function JG(t){return t[CE]??t[mt]?.defaultPipelining??1}var mT=class extends SSe{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:g,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:y,strictContentLength:E,maxCachedSessions:b,connect:N,maxRequestsPerClient:x,localAddress:k,maxResponseSize:P,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:v,maxConcurrentStreams:_,allowH2:me,useH2c:De,initialWindowSize:oe,connectionWindowSize:pe,pingInterval:he,webSocket:Bt}={}){if(c!==void 0)throw new je("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new je("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new je("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new je("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new je("uns Line truncated
`,this[HSe]=a??3e5,this[_Se]=s??3e5,this[GSe]=E??!0,this[fT]=x,this[Ko]=null,this[WSe]=P>-1?P:-1,this[mt]=null,this[KSe]=_??100,this[XSe]=oe??262144,this[jSe]=pe??524288,this[ZSe]=he??6e4,this[Nn]=[],this[$i]=0,this[Sn]=0,this[Zi]=Qt=>pT(this,Qt),this[zSe]=Qt=>WG(this,Qt)}get pipelining(){return this[CE]}set pipelining(e){this[CE]=e,this[Zi](!0)}get stats(){return new wSe(this)}get[sh](){return this[Nn].length-this[Sn]}get[rh](){return this[Sn]-this[$i]}get[$g](){return this[Nn].length-this[$i]}get[FSe](){return!!this[mt]&&!this[Ou]&&!this[mt].destroyed}get[hT](){return!!(this[mt]?.busy(null)||this[$g]>=(JG(this)||1)||this[sh]>0)}[kSe](e){zG(this),this.once("connect",e)}[JSe](e,r){let s=new NSe(this[Zn].origin,e,r);return this[Nn].push(s),this[IA]||(CA.bodyLength(s.body)==null&&CA.isIterable(s.body)?(this[IA]=1,queueMicrotask(()=>pT(this))):this[Zi](!0)),this[IA]&&this[Xo]!==2&&this[hT]&&(this[Xo]=2),this[Xo]<2}[qSe](){return new Promise(e=>{this[$g]?this[Ko]=e:e(null)})}[VSe](e){return new Promise(r=>{let s=this[Nn].splice(this[Sn]);for(let i=0;i<s.length;i++){let o=s[i];CA.errorRequest(this,o,e)}let n=()=>{this[Ko]&&(this[Ko](),this[Ko]=null),r(null)};this[mt]?(this[mt].destroy(e,n),this[mt]=null):queueMicrotask(n),this[Zi]()})}};function WG(t,e){if(t[rh]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ji(t[Sn]===t[$i]);let r=t[Nn].splice(t[$i]);for(let s=0;s<r.length;s++){let n=r[s];CA.errorRequest(t,n,e)}ji(t[$g]===0)}}function zG(t){ji(!t[Ou]),ji(!t[mt]);let{host:e,hostname:r,protocol:s,port:n}=t[Zn];if(r[0]==="["){let i=r.indexOf("]");ji(i!==-1);let o=r.substring(1,i);ji(VG.isIPv6(o)),r=o}t[Ou]=!0,vu.beforeConnect.hasSubscribers&&vu.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[mt]?.version,servername:t[jo],localAddress:t[th]},connector:t[eh]});try{t[eh]({host:e,hostname:r,protocol:s,port:n,servername:t[jo],localAddress:t[th]},(i,o)=>{if(i){gT(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Zi]();return}if(t.destroyed){CA.destroy(o.on("error",YG),new DSe),t[Zi]();return}ji(o);try{t[mt]=o.alpnProtocol==="h2"?eTe(t,o):$Se(t,o)}catch(a){o.destroy().on("error",YG),gT(t,a,{host:e,hostname:r,protocol:s,port:n}),t[Zi]();return}t[Ou]=!1,o[YSe]=0,o[fT]=t[fT],o[RSe]=t,o[USe]=null,vu.connected.hasSubscribers&&vu.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[mt]?.version,servername:t[jo],localAddress:t[th]},connector:t[eh],socket:o}),t.emit("connect",t[Zn],[t]),t[Zi]()})}catch(i){gT(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Zi]()}}function gT(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[Ou]=!1,vu.connectError.hasSubscribers&&vu.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[mt]?.version,servername:t[jo],localAddress:t[th]},connector:t[eh],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ji(t[rh]===0);t[sh]>0&&t[Nn][t[Sn]].servername===t[jo];){let o=t[Nn][t[Sn]++];CA.errorRequest(t,o,e)}else WG(t,e);t.emit("connectionError",t[Zn],[t],e)}}function qG(t){t[Xo]=0,t.emit("drain",t[Zn],[t])}function pT(t,e){t[IA]!==2&&(t[IA]=2,rTe(t,e),t[IA]=0,t[$i]>256&&(t[Nn].splice(0,t[$i]),t[Sn]-=t[$i],t[$i]=0))}function rTe(t,e){for(;;){if(t.destroyed){ji(t[sh]===0);return}if(t[Ko]&&!t[$g]){t[Ko](),t[Ko]=null;return}if(t[mt]&&t[mt].resume(),t[hT])t[Xo]=2;else if(t[Xo]===2){e?(t[Xo]=1,queueMicrotask(()=>qG(t))):qG(t);continue}if(t[sh]===0||t[rh]>=(JG(t)||1))return;let r=t[Nn][t[Sn]];if(r===null)return;if(t[Zn].protocol==="https:"&&t[jo]!==r.servername){if(t[rh]>0)return;t[jo]=r.servername,t[mt]?.destroy(new TSe("servername changed"),()=>{t[mt]=null,pT(t)})}if(t[Ou])return;if(!t[mt]){zG(t);return}if(t[mt].destroyed||t[mt].busy(r))return;!r.aborted&&t[mt].write(r)?t[Sn]++:t[Nn].splice(t[Sn],1)}}KG.exports=mT});var ET=m((Gje,XG)=>{"use strict";var IE=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)}};XG.exports=class{constructor(){this.head=this.tail=new IE}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new IE),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 BE=m((Yje,iY)=>{"use strict";var{PoolStats:sTe}=iS(),nTe=cA(),iTe=ET(),{kConnected:CT,kSize:jG,kRunning:ZG,kPending:$G,kQueued:nh,kBusy:oTe,kFree:aTe,kUrl:ATe,kClose:cTe,kDestroy:uTe,kDispatch:lTe}=Ue(),Ht=Symbol("clients"),Er=Symbol("needDrain"),ih=Symbol("queue"),IT=Symbol("closed resolve"),BT=Symbol("onDrain"),eY=Symbol("onConnect"),tY=Symbol("onDisconnect"),rY=Symbol("onConnectionError"),QT=Symbol("get dispatcher"),sY=Symbol("add client"),nY=Symbol("remove client"),yT=class extends nTe{[ih]=new iTe;[nh]=0;[Ht]=[];[Er]=!1;[BT](e,r,s){le 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())}};xV.exports=H2});var Y2=m((IZe,MV)=>{"use strict";var{InvalidArgumentError:axe}=Ae(),{runtimeFeatures:Axe}=Wi();function cxe(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 RV=Axe.has("crypto")?Q("node:crypto"):null,uxe=RV?.hash?t=>RV.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function FV(t){return Array.isArray(t)&&(t.length&1)===0}function lxe(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 dxe(t){let e={};if(!t)return e;if(FV(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 kV=["record","playback","update"];function gxe(t){if(!kV.includes(t))throw new axe(`Invalid snapshot mode: ${t}. Must be one of: ${kV.join(", ")}`)}MV.exports={createHeaderFilters:cxe,hashId:uxe,isUndiciHeaders:FV,normalizeHeaders:dxe,isUrlExcludedFactory:lxe,validateSnapshotMode:gxe}});var YV=m((BZe,GV)=>{"use strict";var{writeFile:hxe,readFile:fxe,mkdir:mxe}=Q("node:fs/promises"),{dirname:pxe,resolve:UV}=Q("node:path"),{setTimeout:Exe,clearTimeout:LV}=Q("node:timers"),{InvalidArgumentError:PV,UndiciError:Cxe}=Ae(),{hashId:Ixe,isUrlExcludedFactory:Bxe,normalizeHeaders:vV,createHeaderFilters:OV}=Y2();function ph(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||vV(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:_V(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function _V(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 HV(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 Eh(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 Ixe(r)}var q2=class{#e;#t;#r=new Map;#n;#i=1/0;#s=!1;#a;constructor(e={}){this.#n=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=OV(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=Bxe(e.excludeUrls),this.#s&&this.#n&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=ph(e,this.#a,this.matchOptions),n=Eh(s),i=vV(r.headers),o={statusCode:r.statusCode,headers:HV(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#r.size>=this.#i&&!this.#r.has(n)){let A=this.#r.keys().next().value;this.#r.delete(A)}let a=this.#r.get(n);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#r.set(n,{request:s,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#n&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=ph(e,this.#a,this.matchOptions),s=Eh(r),n=this.#r.get(s);if(!n)return;let i=n.callCount||0,o=Math.min(i,n.responses.length-1);return n.callCount=i+1,{...n,response:n.responses[o]}}async loadSnapshots(e){let r=e||this.#n;if(!r)throw new PV("Snapshot path is required");try{let s=await fxe(UV(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 Cxe(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#n;if(!r)throw new PV("Snapshot path is required");let s=UV(r);await mxe(pxe(s),{recursive:!0});let n=Array.from(this.#r.entries()).map(([i,o])=>({hash:i,snapshot:o}));await hxe(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${gs} (
-- 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${gs}_getValuesQuery ON cacheInterceptorV${gs}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${gs}_deleteByUrlQuery ON cacheInterceptorV${gs}(deleteAt);
`),this.#n=this.#r.prepare(`
SELECT
id,
body,
@@ -132,14 +132,14 @@ ${e.format(r)}`.trim())}};$Qe.exports=c9});var l9=E((AIr,A0e)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${Yi}
FROM cacheInterceptorV${gs}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#r.prepare(`
UPDATE cacheInterceptorV${Yi} SET
`),this.#i=this.#r.prepare(`
UPDATE cacheInterceptorV${gs} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -151,8 +151,8 @@ ${e.format(r)}`.trim())}};$Qe.exports=c9});var l9=E((AIr,A0e)=>{"use strict";var
staleAt = ?
WHERE
id = ?
`),this.#n=this.#r.prepare(`
INSERT INTO cacheInterceptorV${Yi} (
`),this.#s=this.#r.prepare(`
INSERT INTO cacheInterceptorV${gs} (
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${gs} WHERE url = ?`),this.#A=this.#r.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${gs}`),this.#a=this.#r.prepare(`DELETE FROM cacheInterceptorV${gs} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#r.prepare(`
DELETE FROM cacheInterceptorV${gs}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${Yi}
ORDER BY cachedAt DESC
FROM cacheInterceptorV${gs}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#r.close()}get(e){U9(e);let r=this.#g(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){U9(e);let A=this.#l(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,n=s?.byteLength;if(n&&n>this.#e)return;let i=this.#g(e,!0);i?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,i.id):(this.#u(),this.#n.run(A,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){U9(e),QIt(r);let A=0,s=[],n=this;return new IIt({decodeStrings:!0,write(i,o,a){A+=i.byteLength,A<n.#e?s.push(i):this.destroy(),a()},final(i){n.set(e,{...r,body:s}),i()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#i.run(this.#l(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#o.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#a.get();return e}#l(e){return`${e.origin}/${e.path}`}#g(e,r=!1){let A=this.#l(e),{headers:s,method:n}=e,i=this.#A.all(A,n);if(i.length===0)return;let o=Date.now();for(let a of i){if(o>=a.deleteAt&&!r)return;let c=!0;if(a.vary){let u=JSON.parse(a.vary);for(let l in u)if(!pIt(s[l],u[l])){c=!1;break}}if(c)return a}}};function pIt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,A)=>r===e[A]):t===e}});var PE=E((DIr,Cpe)=>{"use strict";var{kConstruct:mIt}=Er(),{kEnumerableProperty:gI}=ot(),{iteratorMixin:yIt,isValidHeaderName:Ob,isValidHeaderValue:gpe}=_i(),{webidl:Lt}=Fs(),L9=I("node:assert"),Jk=I("node:util");function lpe(t){return t===10||t===13||t===9||t===32}function dpe(t){let e=0,r=t.length;for(;r>e&&lpe(t.charCodeAt(r-1));)--r;for(;r>e&&lpe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function hpe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let A=e[r];if(A.length!==2)throw Lt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${A.length}.`});v9(t,A[0],A[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let A=0;A<r.length;++A)v9(t,r[A],e[r[A]])}else throw Lt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function v9(t,e,r){if(r=dpe(r),Ob(e)){if(!gpe(r))throw Lt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Lt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(fpe(t)==="immutable")throw new TypeError("immutable");return Wk(t).append(e,r,!1)}function bIt(t){let e=Wk(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],A=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=A;for(let n=0;n<A.length;++n){let{0:i,1:o}=A[n];if(i==="set-cookie")for(let a=0;a<s.length;++a)r.push([i,s[a]]);else r.push([i,o])}return e.sortedMap=r}function Epe(t,e){return t[0]<e[0]?-1:1}var Vk=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,A){this.sortedMap=null;let s=A?e:e.toLowerCase(),n=this.headersMap.get(s);if(n){let i=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:n.name,value:`${n.value}${i}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,A){this.sortedMap=null;let s=A?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:A}of this.headersMap.values())e[r]=A;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${n}`;break;case"retry":yye(n)&&(r[s]=n);break;case"id":bye(n)&&(r[s]=n);break;case"event":n.length>0&&(r[s]=n);break}}processEvent(e){e.retry&&yye(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&bye(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};wye.exports={EventSourceStream:IJ}});var Uye=E((XIr,xye)=>{"use strict";var{pipeline:Omt}=I("node:stream"),{fetching:Hmt}=Jb(),{makeRequest:Gmt}=hI(),{webidl:In}=Fs(),{EventSourceStream:Ymt}=Dye(),{parseMIMEType:qmt}=Vo(),{createFastMessageEvent:Jmt}=B2(),{isNetworkError:Nye}=Gb(),{kEnumerableProperty:WE}=ot(),{environmentSettingsObject:Rye}=_i(),Sye=!1,Tye=3e3,Xb=0,kye=1,Zb=2,Vmt="anonymous",Wmt="use-credentials",bI=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#A=Xb;#s=null;#n=null;#o;#i;constructor(e,r={}){super(),In.util.markAsUncloneable(this);let A="EventSource constructor";In.argumentLengthCheck(arguments,1,A),Sye||(Sye=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=In.converters.USVString(e),r=In.converters.EventSourceInitDict(r,A,"eventSourceInitDict"),this.#o=r.node.dispatcher||r.dispatcher,this.#i={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=Rye,n;try{n=new URL(e,s.settingsObject.baseUrl),this.#i.origin=n.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#t=n.href;let i=Vmt;r.withCredentials===!0&&(i=Wmt,this.#r=!0);let o={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};o.client=Rye.settingsObject,o.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],o.cache="no-store",o.initiator="other",o.urlList=[new URL(this.#t)],this.#s=Gmt(o),this.#a()}get readyState(){return this.#A}get url(){return this.#t}get withCredentials(){return this.#r}#a(){if(this.#A===Zb)return;this.#A=Xb;let e={request:this.#s,dispatcher:this.#o},r=A=>{if(!Nye(A))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=A=>{if(Nye(A))if(A.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=A.headersList.get("content-type",!0),n=s!==null?qmt(s):"failure",i=n!=="failure"&&n.essence==="text/event-stream";if(A.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#A=kye,this.dispatchEvent(new Event("open")),this.#i.origin=A.urlList[A.urlList.length-1].origin;let o=new Ymt({eventSourceSettings:this.#i,push:a=>{this.dispatchEvent(Jmt(a.type,a.options))}});Omt(A.body.stream,o,a=>{a?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=Hmt(e)}#c(){this.#A!==Zb&&(this.#A=Xb,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#A===Xb&&(this.#i.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#i.lastEventId,!0),this.#a())},this.#i.reconnectionTime)?.unref())}close(){In.brandCheck(this,t),this.#A!==Zb&&(this.#A=Zb,this.#n.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=In.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=In.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=In.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},Fye={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Xb,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:kye,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Zb,writable:!1}};Object.defineProperties(bI,Fye);Object.defineProperties(bI.prototype,Fye);Object.defineProperties(bI.prototype,{close:WE,onerror:WE,onmessage:WE,onopen:WE,readyState:WE,url:WE,withCredentials:WE});In.converters.EventSourceInitDict=In.dictionaryConverter([{key:"withCredentials",converter:In.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:In.converters.any},{key:"node",converter:In.dictionaryConverter([{key:"reconnectionTime",converter:In.converters["unsigned long"],defaultValue:()=>Tye},{key:"dispatcher",converter:In.converters.any}]),defaultValue:()=>({})}]);xye.exports={EventSource:bI,defaultReconnectionTime:Tye}});var Oye=E((ZIr,Ee)=>{"use strict";var zmt=Bd(),Lye=Zy(),jmt=ZB(),Kmt=ZBe(),Xmt=rIe(),Zmt=FE(),$mt=h5(),eyt=DIe(),tyt=FIe(),ryt=MIe(),vye=ut(),F2=ot(),{InvalidArgumentError:k2}=vye,wI=fQe(),Ayt=HB(),syt=Z5(),{MockCallHistory:nyt,MockCal Line truncated
`)}close(){this.#r.close()}get(e){ED(e);let r=this.#d(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){ED(e);let s=this.#l(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#d(e,!0);o?this.#i.run(n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(s,e.method,n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){ED(e),bke(r);let s=0,n=[],i=this;return new yke({decodeStrings:!0,write(o,a,A){s+=o.byteLength,s<i.#e?n.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:n}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#l(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#l(e){return`${e.origin}/${e.path}`}#d(e,r=!1){let s=this.#l(e),{headers:n,method:i}=e,o=this.#n.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)continue;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!wke(n[l],u[l])){c=!1;break}}if(c)return A}}};function wke(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var PA=m((YZe,lJ)=>{"use strict";var{kConstruct:Nke}=Ue(),{kEnumerableProperty:sl}=ue(),{iteratorMixin:Ske,isValidHeaderName:wh,isValidHeaderValue:oJ}=As(),{webidl:be}=Wt(),ID=Q("node:assert"),ZE=Q("node:util");function iJ(t){return t===10||t===13||t===9||t===32}function aJ(t){let e=0,r=t.length;for(;r>e&&iJ(t.charCodeAt(r-1));)--r;for(;r>e&&iJ(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function AJ(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw be.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});BD(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)BD(t,r[s],e[r[s]])}else throw be.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function BD(t,e,r){if(r=aJ(r),wh(e)){if(!oJ(r))throw be.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw be.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(uJ(t)==="immutable")throw new TypeError("immutable");return eC(t).append(e,r,!1)}function Tke(t){let e=eC(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 cJ(t,e){return t[0]<e[0]?-1:1}var $E=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase(),i=this.headersMap.get(n);if(i){let o=n==="cookie"?"; ":", ";this.headersMap.set(n,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(n,{name:e,value:r});n==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase();n==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(n,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:s}of this.headersMap.values())e[r]=s;return e}rawValues(){return this.headersMap.val Line truncated
${i}`;break;case"retry":mz(i)&&(r[n]=i);break;case"id":pz(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&mz(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&pz(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}}};Ez.exports={EventSourceStream:ax}});var Sz=m((h$e,Nz)=>{"use strict";var{pipeline:qLe}=Q("node:stream"),{fetching:VLe}=xh(),{makeRequest:JLe}=il(),{webidl:Ir}=Wt(),{EventSourceStream:WLe}=Cz(),{parseMIMEType:zLe}=Hs(),{createFastMessageEvent:KLe}=wC(),{isNetworkError:Iz}=Sh(),{kEnumerableProperty:VA}=ue(),{environmentSettingsObject:Bz}=As(),Qz=!1,yz=3e3,Ph=0,bz=1,vh=2,XLe="anonymous",jLe="use-credentials",fl=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#n=Ph;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),Ir.util.markAsUncloneable(this);let s="EventSource constructor";Ir.argumentLengthCheck(arguments,1,s),Qz||(Qz=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ir.converters.USVString(e),r=Ir.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=Bz,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=XLe;r.withCredentials===!0&&(o=jLe,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Bz.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=JLe(a),this.#A()}get readyState(){return this.#n}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#n===vh)return;this.#n=Ph;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!Iz(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(Iz(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?zLe(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#n=bz,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new WLe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(KLe(A.type,A.options))}});qLe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=VLe(e)}#c(){this.#n!==vh&&(this.#n=Ph,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#n===Ph&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){Ir.brandCheck(this,t),this.#n!==vh&&(this.#n=vh,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Ir.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=Ir.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=Ir.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},wz={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Ph,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:bz,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:vh,writable:!1}};Object.defineProperties(fl,wz);Object.defineProperties(fl.prototype,wz);Object.defineProperties(fl.prototype,{close:VA,onerror:VA,onmessage:VA,onopen:VA,readyState:VA,url:VA,withCredentials:VA});Ir.converters.EventSourceInitDict=Ir.dictionaryConverter([{key:"withCredentials",converter:Ir.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ir.converters.any},{key:"node",converter:Ir.dictionaryConverter([{key:"reconnectionTime",converter:Ir.converters["unsigned long"],defaultValue:()=>yz},{key:"dispatcher",converter:Ir.converters.any}]),defaultValue:()=>({})}]);Nz.exports={EventSource:fl,defaultReconnectionTime:yz}});var Fz=m((f$e,H)=>{"use strict";var ZLe=Zo(),Dz=Lg(),$Le=BA(),ePe=gY(),tPe=pY(),rPe=bA(),sPe=VT(),nPe=HT(),iPe=rq(),oPe=cq(),aPe=dq(),xz=Ae(),vC=ue(),{InvalidArgumentError:PC}=xz,ml=Wq(),APe=uA(),cPe=x2(),{MockCallHistory:uPe,MockCallHistoryLog:lPe}=F2(),dPe=G2( 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 BPe(e,r).catch(s=>{throw Tz?kz(s,Tz):s&&typeof s=="object"&&Error.captureStackTrace(s,H.exports.fetch),s})};H.exports.Headers=PA().Headers;H.exports.Response=Sh().Response;H.exports.Request=il().Request;H.exports.FormData=oE().FormData;var{setGlobalOrigin:QPe,getGlobalOrigin:yPe}=NS();H.exports.setGlobalOrigin=QPe;H.exports.getGlobalOrigin=yPe;var{CacheStorage:bPe}=hW(),{kConstruct:wPe}=Ue();H.exports.caches=new bPe(wPe);var{deleteCookie:NPe,getCookies:SPe,getSetCookies:TPe,setCookie:DPe,parseCookie:xPe}=NW();H.exports.deleteCookie=NPe;H.exports.getCookies=SPe;H.exports.getSetCookies=TPe;H.exports.setCookie=DPe;H.exports.parseCookie=xPe;var{parseMIMEType:RPe,serializeAMimeType:kPe}=Hs();H.exports.parseMIMEType=RPe;H.exports.serializeAMimeType=kPe;var{CloseEvent:FPe,ErrorEvent:MPe,MessageEvent:UPe}=wC(),{WebSocket:LPe,ping:PPe}=iz();H.exports.WebSocket=LPe;H.exports.CloseEvent=FPe;H.exports.ErrorEvent=MPe;H.exports.MessageEvent=UPe;H.exports.ping=PPe;H.exports.WebSocketStream=gz().WebSocketStream;H.exports.WebSocketError=rx().WebSocketError;H.exports.request=Oh(ml.request);H.exports.stream=Oh(ml.stream);H.exports.pipeline=Oh(ml.pipeline);H.exports.connect=Oh(ml.connect);H.exports.upgrade=Oh(ml.upgrade);H.exports.MockClient=cPe;H.exports.MockCallHistory=uPe;H.exports.MockCallHistoryLog=lPe;H.exports.MockPool=gPe;H.exports.MockAgent=dPe;H.exports.SnapshotAgent=hPe;H.exports.mockErrors=fPe;var{EventSource:vPe}=Sz();H.exports.EventSource=vPe;function OPe(){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=OPe});var _h=m(da=>{"use strict";da.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");da.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");da.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";da.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);da.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);da.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());da.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 Uz=m((E$e,Mz)=>{"use strict";var{asciiLowercase:OC,solelyContainsHTTPTokenCodePoints:_Pe,soleyContainsHTTPQuotedStringTokenCodePoints:HPe}=_h();Mz.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=OC(String(e)),this._map.get(e)}has(e){return e=OC(String(e)),this._map.has(e)}set(e,r){if(e=OC(String(e)),r=String(r),!_Pe(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!HPe(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=OC(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 vz=m((C$e,Pz)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:GPe,removeTrailingHTTPWhitespace:Lz,isHTTPWhitespaceChar:YPe,solelyContainsHTTPTokenCodePoints:Ax,soleyContainsHTTPQuotedStringTokenCodePoints:qPe,asciiLowercase:cx,collectAnHTTPQuotedString:VPe}=_h();Pz.exports=t=>{t=GPe(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!Ax(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=Lz(s),s.length===0||!Ax(s))return null;let n={type:cx(r),subtype:cx(s),parameters:new Map};for(;e<t.length;){for(++e;YPe(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=cx(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=VPe(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=Lz(o),o==="")continue}i.length>0&&Ax(i)&&qPe(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var _z=m((I$e,Oz)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:JPe}=_h();Oz.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+="=",(!JPe(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var qz=m((Q$e,Yz)=>{"use strict";var WPe=Uz(),zPe=vz(),KPe=_z(),{asciiLowercase:Hz,solelyContainsHTTPTokenCodePoints:Gz}=_h();Yz.exports=class{constructor(e){e=String(e);let r=zPe(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 WPe(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=Hz(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Gz(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=Hz(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Gz(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return KPe(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 eK=m(YC=>{"use strict";Object.defineProperty(YC,"__esModule",{value:!0});YC.getProxyUrl=lve;YC.checkBypass=$z;function lve(t){let e=t.protocol==="https:";if($z(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 GC(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new GC(`http://${r}`)}else return}function $z(t){if(!t.hostname)return!1;let e=t.hostname;if(dve(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`,k,k,b,s);var P=b.type==="*"?Ox:b.type==="?"?vx:"\\"+b.type;n=!0,s=s.slice(0,b.reStart)+P+"\\("+k}f(),i&&(s+="\\\\");var F=!1;switch(s.charAt(0)){case"[":case".":case"(":F=!0}for(var v=a.length-1;v>-1;v--){var _=a[v],me=s.slice(0,_.reStart),De=s.slice(_.reStart,_.reEnd-8),oe=s.slice(_.reEnd-8,_.reEnd),pe=s.slice(_.reEnd);oe+=pe;var he=me.split("(").length-1,Bt=pe;for(p=0;p<he;p++)Bt=Bt.replace(/\)[+*?]?/,"");pe=Bt;var Qt="";pe===""&&e!==ZC&&(Qt="$");var mi=me+De+pe+Qt+oe;s=mi}if(s!==""&&n&&(s="(?=.)"+s),F&&(s=g+s),e===ZC)return[s,n];if(!n)return s8e(t);var pi=r.nocase?"i":"";try{var FB=new RegExp("^"+s+"$",pi)}catch{return new RegExp("$.")}return FB._glob=t,FB._src=s,FB}ps.makeRe=function(t,e){return new Dt(t,e||{}).makeRe()};Dt.prototype.makeRe=r8e;function r8e(){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?Ox:e.dot?z3e:K3e,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===zA?r:typeof o=="string"?n8e(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}ps.match=function(t,e,r){r=r||{};var s=new Dt(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};Dt.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;Jh.sep!=="/"&&(e=e.split(Jh.sep).join("/")),e=e.split(uX),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};Dt.prototype.matchOne=function(t,e,r){return e.indexOf(zA)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};Dt.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===zA){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===zA){a=i;break}var A=e.slice(n,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(s,s+A.length);if(!this._matchOne(l,A,r,0,0))return!1;s+=A.length}var g=0;if(u.length){if(u.length+s>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))g=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;g=u.length+1}}if(!c.length){var f=!!g;for(i=s;i<t.length-g;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var y=[[[],0]],E=y[0],b=0,N=[0],x=0;x<c.length;x++){var k=c[x];k===zA?(N.push(b),E=[[],0],y.push(E)):(E[0].push(k),b++)}for(var P=y.length-1,F=t.length-g,v=0;v<y.length;v++)y[v][1]=F-(N[P--]+y[v][0].length);return!!this._matchGlobStarBodySections(t,y,s,0,r,0,!!g)};Dt.prototype._matchGlobStarBodySections=function(t,e,r,s,n,i,o){var a=e[s];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var g=this._matchOne(t.slice(0,r+u.length),u,n,r,0);if(g&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,s+1,n,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return n||null};Dt.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===zA)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 s8e(t){return t.replace(/\\(.)/g,"$1")}function n8e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Il=m((ytt,fX)=>{"use strict";var c8e="2.0.0",u8e=Number.MAX_SAFE_INTEGER||9007199254740991,l8e=16,d8e=250,g8e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];fX.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:l8e,MAX_SAFE_BUILD_LENGTH:d8e,MAX_SAFE_INTEGER:u8e,RELEASE_TYPES:g8e,SEMVER_SPEC_VERSION:c8e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Wh=m((btt,mX)=>{"use strict";var h8e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};mX.exports=h8e});var Bl=m((Ai,pX)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:_x,MAX_SAFE_BUILD_LENGTH:f8e,MAX_LENGTH:m8e}=Il(),p8e=Wh();Ai=pX.exports={};var E8e=Ai.re=[],C8e=Ai.safeRe=[],G=Ai.src=[],I8e=Ai.safeSrc=[],Y=Ai.t={},B8e=0,Hx="[a-zA-Z0-9-]",Q8e=[["\\s",1],["\\d",m8e],[Hx,f8e]],y8e=t=>{for(let[e,r]of Q8e)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+"+BI.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=X6e()+e+" "+t[0]}function X6e(){return Yt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function j6e(...t){return process.stderr.write(II.formatWithOptions(Yt.inspectOpts,...t)+`
`)}function Z6e(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function $6e(){return process.env.DEBUG}function e_e(t){t.inspectOpts={};let e=Object.keys(Yt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Yt.inspectOpts[e[r]]}BI.exports=CR()(Yt);var{formatters:RZ}=BI.exports;RZ.o=function(t){return this.inspectOpts.colors=this.useColors,II.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};RZ.O=function(t){return this.inspectOpts.colors=this.useColors,II.inspect(t,this.inspectOpts)}});var QI=m((int,QR)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?QR.exports=wZ():QR.exports=kZ()});var UZ=m(qr=>{"use strict";var t_e=qr&&qr.__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]})),r_e=qr&&qr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),FZ=qr&&qr.__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)&&t_e(e,t,r);return r_e(e,t),e};Object.defineProperty(qr,"__esModule",{value:!0});qr.req=qr.json=qr.toBuffer=void 0;var s_e=FZ(Q("http")),n_e=FZ(Q("https"));async function MZ(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}qr.toBuffer=MZ;async function i_e(t){let r=(await MZ(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}qr.json=i_e;function o_e(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?n_e:s_e).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}qr.req=o_e});var bR=m(Es=>{"use strict";var PZ=Es&&Es.__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]})),a_e=Es&&Es.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vZ=Es&&Es.__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)&&PZ(e,t,r);return a_e(e,t),e},A_e=Es&&Es.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&PZ(e,t,r)};Object.defineProperty(Es,"__esModule",{value:!0});Es.Agent=void 0;var c_e=vZ(Q("net")),LZ=vZ(Q("http")),u_e=Q("https");A_e(UZ(),Es);var ci=Symbol("AgentBaseInternalState"),yR=class extends LZ.Agent{constructor(e){super(e),this[ci]={}}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 c_e.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)?u_e.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 LZ.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[ci].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[ci].currentSocket;if(this[ci].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ci].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ci]&&(this[ci].defaultPort=e)}get protocol(){return this[ci].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ci]&&(this[ci].protocol=e)}};Es.Agent=yR});var OZ=m(Sl=>{"use strict";var l_e=Sl&&Sl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Sl,"__esModule",{value:!0});Sl.parseProxyResponse=void 0;var d_e=l_e(QI()),yI=(0,d_e.default)("https-proxy-agent:parse-proxy-response");function g_e(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(),yI("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),yI("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let l=Buffer.concat(n,s),g=l.indexOf(`\r
\r
`);if(g===-1){kL("have not received end of HTTP headers yet..."),n();return}let d=l.slice(0,g).toString("ascii").split(`\r
`),h=d.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let B=h.split(" "),Q=+B[1],C=B.slice(2).join(" "),p={};for(let w of d){if(!w)continue;let k=w.indexOf(":");if(k===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let J=w.slice(0,k).toLowerCase(),j=w.slice(k+1).trimStart(),H=p[J];typeof H=="string"?p[J]=[H,j]:Array.isArray(H)?H.push(j):p[J]=j}kL("got proxy server response: %o %o",h,p),i(),e({connect:{statusCode:Q,statusText:C,headers:p},buffered:l})}t.on("error",a),t.on("end",o),n()})}P0.parseProxyResponse=Azt});var bHe=E(wa=>{"use strict";var szt=wa&&wa.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),nzt=wa&&wa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),mHe=wa&&wa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&szt(e,t,r);return nzt(e,t),e},yHe=wa&&wa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wa,"__esModule",{value:!0});wa.HttpsProxyAgent=void 0;var FL=mHe(I("net")),IHe=mHe(I("tls")),izt=yHe(I("assert")),ozt=yHe(TL()),azt=nZ(),czt=I("url"),uzt=BHe(),uN=(0,ozt.default)("https-proxy-agent"),QHe=t=>t.servername===void 0&&t.host&&!FL.isIP(t.host)?{...t,servername:t.host}:t,xL=class extends azt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new czt.URL(e):e,this.proxyHeaders=r?.headers??{},uN("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let A=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?pHe(r,"headers"):null,host:A,port:s}}async connect(e,r){let{proxy:A}=this;if(!r.host)throw new TypeError('No "host" provided');let s;A.protocol==="https:"?(uN("Creating `tls.Socket`: %o",this.connectOpts),s=IHe.connect(QHe(this.connectOpts))):(uN("Creating `net.Socket`: %o",this.connectOpts),s=FL.connect(this.connectOpts));let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},i=FL.isIPv6(r.host)?`[${r.host}]`:r.host,o=`CONNECT ${i}:${r.port} HTTP/1.1\r
`;if(A.username||A.password){let g=`${decodeURIComponent(A.username)}:${decodeURIComponent(A.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(g).toString("base64")}`}n.Host=`${i}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let g of Object.keys(n))o+=`${g}: ${n[g]}\r
`;let a=(0,uzt.parseProxyResponse)(s);s.write(`${o}\r
`);let{connect:c,buffered:u}=await a;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",lzt),r.secureEndpoint?(uN("Upgrading socket connection to TLS"),IHe.connect({...pHe(QHe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new FL.Socket({writable:!1});return l.readable=!0,e.once("socket",g=>{uN("Replaying proxy buffer for failed request"),(0,izt.default)(g.listenerCount("data")>0),g.push(u),g.push(null)}),l}};xL.protocols=["http","https"];wa.HttpsProxyAgent=xL;function lzt(t){t.resume()}function pHe(t,...e){let r={},A;for(A in t)e.includes(A)||(r[A]=t[A]);return r}});var NHe=E(Da=>{"use strict";var gzt=Da&&Da.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),dzt=Da&&Da.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),DHe=Da&&Da.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&gzt(e,t,r);return dzt(e,t),e},hzt=Da&&Da.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Da,"__esModule",{value:!0});Da.HttpProxyAgent=void 0;var Ezt=DHe(I("net")),fzt=DHe(I("tls")),Czt=hzt(TL()),Bzt=I("events"),Izt=nZ(),wHe=I("url"),O0=(0,Czt.default)("http-proxy-agent"),UL=class extends Izt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new wHe.URL(e):e,this.proxyHeaders=r?.headers??{},O0("Creating new HttpProxyAgent instance: %o",this.proxy.href);let A=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Qzt(r,"headers"):null,host:A,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:A}=this,s=r.secureEndpoint?"https:":"http:",n=e.getHeader("host")||"localhost",i=`${s}//${n}`,o=new wHe.URL(e.path,i);r.port!==80&&(o.port=String(r.port)),e.path=String(o);let a=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(A.username||A.password){let c=`${decodeURIComponent(A.username)}:${decodeURIComponent(A.password)}`;a["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}a["Proxy-Connection"]||(a["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(a)){let u=a[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let A,s;O0("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(O0("Patching connection write() output buffer with updated header"),A=e.outputData[0].data,s=A.indexOf(`\r
`);if(g===-1){yI("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,g).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),y=+p[1],E=p.slice(2).join(" "),b={};for(let N of h){if(!N)continue;let x=N.indexOf(":");if(x===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${N}"`));let k=N.slice(0,x).toLowerCase(),P=N.slice(x+1).trimStart(),F=b[k];typeof F=="string"?b[k]=[F,P]:Array.isArray(F)?F.push(P):b[k]=P}yI("got proxy server response: %o %o",f,b),o(),e({connect:{statusCode:y,statusText:E,headers:b},buffered:l})}t.on("error",A),t.on("end",a),i()})}Sl.parseProxyResponse=g_e});var VZ=m(en=>{"use strict";var h_e=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]})),f_e=en&&en.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),YZ=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)&&h_e(e,t,r);return f_e(e,t),e},qZ=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(en,"__esModule",{value:!0});en.HttpsProxyAgent=void 0;var bI=YZ(Q("net")),_Z=YZ(Q("tls")),m_e=qZ(Q("assert")),p_e=qZ(QI()),E_e=bR(),C_e=Q("url"),I_e=OZ(),sf=(0,p_e.default)("https-proxy-agent"),HZ=t=>t.servername===void 0&&t.host&&!bI.isIP(t.host)?{...t,servername:t.host}:t,wI=class extends E_e.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new C_e.URL(e):e,this.proxyHeaders=r?.headers??{},sf("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?GZ(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:"?(sf("Creating `tls.Socket`: %o",this.connectOpts),n=_Z.connect(HZ(this.connectOpts))):(sf("Creating `net.Socket`: %o",this.connectOpts),n=bI.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=bI.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,I_e.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",B_e),r.secureEndpoint?(sf("Upgrading socket connection to TLS"),_Z.connect({...GZ(HZ(r),"host","path","port"),socket:n})):n;n.destroy();let l=new bI.Socket({writable:!1});return l.readable=!0,e.once("socket",g=>{sf("Replaying proxy buffer for failed request"),(0,m_e.default)(g.listenerCount("data")>0),g.push(u),g.push(null)}),l}};wI.protocols=["http","https"];en.HttpsProxyAgent=wI;function B_e(t){t.resume()}function GZ(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var zZ=m(tn=>{"use strict";var Q_e=tn&&tn.__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]})),y_e=tn&&tn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),WZ=tn&&tn.__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)&&Q_e(e,t,r);return y_e(e,t),e},b_e=tn&&tn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(tn,"__esModule",{value:!0});tn.HttpProxyAgent=void 0;var w_e=WZ(Q("net")),N_e=WZ(Q("tls")),S_e=b_e(QI()),T_e=Q("events"),D_e=bR(),JZ=Q("url"),Tl=(0,S_e.default)("http-proxy-agent"),NI=class extends D_e.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new JZ.URL(e):e,this.proxyHeaders=r?.headers??{},Tl("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?x_e(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 JZ.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;Tl("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Tl("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),Tl("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Tl("Creating `tls.Socket`: %o",this.connectOpts),i=N_e.connect(this.connectOpts)):(Tl("Creating `net.Socket`: %o",this.connectOpts),i=w_e.connect(this.connectOpts)),await(0,T_e.once)(i,"connect"),i}};NI.protocols=["http","https"];tn.HttpProxyAgent=NI;function x_e(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var f$=m(TI=>{"use strict";Object.defineProperty(TI,"__esModule",{value:!0});TI.state=void 0;TI.state={instrumenterImplementation:void 0}});var S$=m(kI=>{"use strict";Object.defineProperty(kI,"__esModule",{value:!0});kI.state=void 0;kI.state={operationRequestMap:new WeakMap}});var ise=m((rQt,rGe)=>{rGe.exports={name:"@actions/cache",version:"6.2.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var ase=m((sQt,ose)=>{var sGe=ise();ose.exports={version:sGe.version}});var JI=m(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.isJsonObject=vl.typeofJsonValue=void 0;function lGe(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}vl.typeofJsonValue=lGe;function dGe(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}vl.isJsonObject=dGe});var zI=m(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.base64encode=Ol.base64decode=void 0;var ao="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),WI=[];for(let t=0;t<ao.length;t++)WI[ao[t].charCodeAt(0)]=t;WI[45]=ao.indexOf("+");WI[95]=ao.indexOf("/");function gGe(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=WI[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)}Ol.base64decode=gGe;function hGe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=ao[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=ao[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=ao[n|s>>6],e+=ao[s&63],r=0;break}return r&&(e+=ao[n],e+="=",r==1&&(e+="=")),e}Ol.base64encode=hGe});var Ase=m(KI=>{"use strict";Object.defineProperty(KI,"__esModule",{value:!0});KI.utf8read=void 0;var wk=t=>String.fromCharCode.apply(String,t);function fGe(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(wk(s)),n=0);return r.length?(n&&r.push(wk(s.slice(0,n))),r.join("")):wk(s.slice(0,n))}KI.utf8read=fGe});var df=m(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.WireType=li.mergeBinaryOptions=li.UnknownFieldHandler=void 0;var mGe;(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])})(mGe=li.UnknownFieldHandler||(li.UnknownFieldHandler={}));function pGe(t,e){return Object.assign(Object.assign({},t),e)}li.mergeBinaryOptions=pGe;var EGe;(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"})(EGe=li.WireType||(li.WireType={}))});var jI=m(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.varint32read=Vr.varint32write=Vr.int64toString=Vr.int64fromString=Vr.varint64write=Vr.varint64read=void 0;function CGe(){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")}Vr.varint64read=CGe;function IGe(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)}}Vr.varint64write=IGe;var XI=65536*65536;function BGe(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>=XI&&(n=n+(s/XI|0),s=s%XI)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Vr.int64fromString=BGe;function QGe(t,e){if(e>>>0<=2097151)return""+(XI*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let g=u?String(u):"";return l?"0000000".slice(g.length)+g:g}return c(a,0)+c(o,a)+c(i,1)}Vr.int64toString=QGe;function yGe(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)}}Vr.varint32write=yGe;function bGe(){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}Vr.varint32read=bGe});var Ia=m(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.PbLong=Ca.PbULong=Ca.detectBi=void 0;var gf=jI(),Ye;function cse(){let t=new DataView(new ArrayBuffer(8));Ye=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}Ca.detectBi=cse;cse();function use(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var lse=/^-?[0-9]+$/,$I=4294967296,ZI=2147483648,eB=c Line truncated
`)}};bB.RpcError=Zk});var eF=m(NB=>{"use strict";Object.defineProperty(NB,"__esModule",{value:!0});NB.mergeRpcOptions=void 0;var Hse=Ct();function JYe(t,e){if(!e)return t;let r={};wB(t,r),wB(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Hse.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Hse.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},wB(t.meta,r.meta),wB(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}NB.mergeRpcOptions=JYe;function wB(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 rF=m(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.Deferred=sc.DeferredState=void 0;var hi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(hi=sc.DeferredState||(sc.DeferredState={}));var tF=class{constructor(e=!0){this._state=hi.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!==hi.PENDING)throw new Error(`cannot resolve ${hi[this.state].toLowerCase()}`);this._resolve(e),this._state=hi.RESOLVED}reject(e){if(this.state!==hi.PENDING)throw new Error(`cannot reject ${hi[this.state].toLowerCase()}`);this._reject(e),this._state=hi.REJECTED}resolvePending(e){this._state===hi.PENDING&&this.resolve(e)}rejectPending(e){this._state===hi.PENDING&&this.reject(e)}};sc.Deferred=tF});var nF=m(SB=>{"use strict";Object.defineProperty(SB,"__esModule",{value:!0});SB.RpcOutputStreamController=void 0;var Gse=rF(),nc=Ct(),sF=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){nc.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){nc.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){nc.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(){nc.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;nc.assert(e,"bad state"),nc.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 Gse.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;nc.assert(s.state==Gse.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};SB.RpcOutputStreamController=sF});var oF=m(Jl=>{"use strict";var WYe=Jl&&Jl.__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(Jl,"__esModule",{value:!0});Jl.UnaryCall=void 0;var iF=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 WYe(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}})}};Jl.UnaryCall=iF});var AF=m(Wl=>{"use strict";var zYe=Wl&&Wl.__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(Wl,"__esModule",{value:!0});Wl.ServerStreamingCall=void 0;var aF=class{constructor(e Line truncated
`:Up(t.children):ou(t)?Up(t.children):Rr(t)?t.data:""}function Pi(t){return Array.isArray(t)?t.map(Pi).join(""):_e(t)&&!ja(t)?Pi(t.children):Rr(t)?t.data:""}function ag(t){return Array.isArray(t)?t.map(ag).join(""):_e(t)&&(t.type===Qe.Tag||ou(t))?ag(t.children):Rr(t)?t.data:""}function cu(t){return _e(t)?t.children:[]}function zO(t){return t.parent||null}function H1(t){let e=zO(t);if(e!=null)return cu(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 _0e(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function H0e(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function G0e(t){return t.name}function Lp(t){let{next:e}=t;for(;e!==null&&!q(e);)({next:e}=e);return e}function Pp(t){let{prev:e}=t;for(;e!==null&&!q(e);)({prev:e}=e);return e}function vi(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 Y0e(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 q0e(t,e){if(vi(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 V0e(t,e){vi(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 J0e(t,e){if(vi(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 W0e(t,e){vi(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 uu(t,e,r=!0,s=1/0){return vp(t,Array.isArray(e)?e:[e],r,s)}function vp(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&&_e(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function z0e(t,e){return e.find(t)}function Op(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&&_e(i)&&i.children.length>0){let o=Op(t,i.children,!0);if(o)return o}}return null}function KO(t,e){return(Array.isArray(e)?e:[e]).some(r=>q(r)&&t(r)||_e(r)&&KO(t,r.children))}function K0e(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),_e(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var _p={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=>Rr(e)&&t(e.data):e=>Rr(e)&&e.data===t}};function G1(t,e){return typeof e=="function"?r=>q(r)&&e(r.attribs[t]):r=>q(r)&&r.attribs[t]===e}function X0e(t,e){return r=>t(r)||e(r)}function XO(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(_p,r)?_p[r](s):G1(r,s)});return e.length===0?null:e.reduce(X0e)}function j0e(t,e){let r=XO(t);return r?r(e):!0}function Z0e(t,e,r,s=1/0){let n=XO(t);return n?uu(n,e,r,s):[]}function $0e(t,e,r=!0){return Array.isArray(e)||(e=[e]),Op(G1("id",t),e,r)}function Za(t,e,r=!0,s=1/0){return uu(_p.tag_name(t),e,r,s)}function eEe(t,e,r=!0,s=1/0){return uu(G1("class",t),e,r,s)}function tEe(t,e,r=!0,s=1/0){return uu(_p.tag_type(t),e,r,s)}function rEe(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 Rs;(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"})(Rs||(Rs={}));function jO(t,e){let r=[],s=[];if(t===e)return 0;let n=_e(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=_e(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 Rs.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?Rs.FOLLOWING|Rs.CONTAINED_BY:Rs.FOLLOWING:a===t?Rs.PRECEDING|Rs.CONTAINS:Rs.PRECEDING}function Ro(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=jO(e,r);return s&Rs.PRECEDING?-1:s&Rs.FOLLOWING?1:0}),t}function Y1(t){let e=Hp(aEe,t);return e?e.name==="feed"?sEe(e):nEe(e):null}function sEe(t){var e;let r=t.children,s={type:"atom",items:Za("entry",r).map(o=>{var a;let{children:A}=o,c={media:ZO(A)};kr(c,"id","id",A),kr(c,"title","title",A);let u=(a=Hp("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=ko("summary",A)||ko("content",A);l&&(c.descript Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Po=Fr(Zg(),1);var H3={};function G3(t,e){return t===Po.default.falseFunc?Po.default.falseFunc:r=>e.isTag(r)&&t(r)}function Y3(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let A=r.indexOf(t);return A<0||A===r.length-1?[]:r.slice(A+1).filter(e.isTag)}function O3(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var P3=(t,e,r,A,s)=>{let n=s(e,O3(r),A);return n===Po.default.trueFunc?t:n===Po.default.falseFunc?Po.default.falseFunc:i=>n(i)&&t(i)},j1={is:P3,matches:P3,where:P3,not(t,e,r,A,s){let n=s(e,O3(r),A);return n===Po.default.falseFunc?t:n===Po.default.trueFunc?Po.default.falseFunc:i=>!n(i)&&t(i)},has(t,e,r,A,s){let{adapter:n}=r,i=O3(r);i.relativeSelector=!0;let o=e.some(u=>u.some(ky))?[H3]:void 0,a=s(e,i,o);if(a===Po.default.falseFunc)return Po.default.falseFunc;let c=G3(a,n);if(o&&a!==Po.default.trueFunc){let{shouldTestNextSiblings:u=!1}=a;return l=>{if(!t(l))return!1;o[0]=l;let g=n.getChildren(l),d=u?[...g,...Y3(l,n)]:g;return n.existsOne(c,d)}}return u=>t(u)&&n.existsOne(c,n.getChildren(u))}};function Nde(t,e,r,A,s){var n;let{name:i,data:o}=e;if(Array.isArray(o)){if(!(i in j1))throw new Error(`Unknown pseudo-class :${i}(${o})`);return j1[i](t,o,r,A,s)}let a=(n=r.pseudos)===null||n===void 0?void 0:n[i],c=typeof a=="string"?a:z1[i];if(typeof c=="string"){if(o!=null)throw new Error(`Pseudo ${i} doesn't have any arguments`);let u=(0,Dde.parse)(c);return j1.is(t,u,r,A,s)}if(typeof a=="function")return _3(a,i,o,1),u=>a(u,o)&&t(u);if(i in RB)return RB[i](t,o,r,A);if(i in xy){let u=xy[i];return _3(u,i,o,2),l=>u(l,r,o)&&t(l)}throw new Error(`Unknown pseudo-class :${i}`)}var Oo=Fr(DB(),1);function q3(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function Rde(t,e,r,A,s){let{adapter:n,equals:i}=r;switch(e.type){case Oo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Oo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Oo.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),mde[e.action](t,e,r)}case Oo.SelectorType.Pseudo:return Nde(t,e,r,A,s);case Oo.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:o}=e;return(!r.xmlMode||r.lowerCaseTags)&&(o=o.toLowerCase()),function(c){return n.getName(c)===o&&t(c)}}case Oo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=q3(u,n);)if(t(u))return!0;return!1};let o=new WeakSet;return function(c){let u=c;for(;u=q3(u,n);)if(!o.has(u)){if(n.isTag(u)&&t(u))return!0;o.add(u)}return!1}}case"_flexibleDescendant":return function(a){let c=a;do if(t(c))return!0;while(c=q3(c,n));return!1};case Oo.SelectorType.Parent:return function(a){return n.getChildren(a).some(c=>n.isTag(c)&&t(c))};case Oo.SelectorType.Child:return function(a){let c=n.getParent(a);return c!=null&&n.isTag(c)&&t(c)};case Oo.SelectorType.Sibling:return function(a){let c=n.getSiblings(a);for(let u=0;u<c.length;u++){let l=c[u];if(i(a,l))break;if(n.isTag(l)&&t(l))return!0}return!1};case Oo.SelectorType.Adjacent:return n.prevElementSibling?function(a){let c=n.prevElementSibling(a);return c!=null&&t(c)}:function(a){let c=n.getSiblings(a),u;for(let l=0;l<c.length;l++){let g=c[l];if(i(a,g))break;n.isTag(g)&&(u=g)}return!!u&&t(u)};case Oo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function Sde(t,e,r){let A=K1(t,e,r);return G3(A,e.adapter)}function K1(t,e,r){let A=typeof t=="string"?(0,Za.parse)(t):t;return X1(A,e,r)}function Tde(t){return t.type===Za.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(Tde)))}var Mst={type:Za.SelectorType.Descendant},Lst={type:"_flexibleDescendant"},vst={type:Za.SelectorType.Pseudo,name:"scope",data:null};function _st(t,{adapter:e},r){let A=!!r?.every(s=>{let n=e.isTag(s)&&e.getParent(s);return s===H3||n&&e.isTag(n)});fo Line truncated
`)})):{name:s,value:n.replace(Vde,`\r
`)}}).toArray()}var iY={};Oa(iY,{extract:()=>$nt});function Znt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function $nt(t){let e={};for(let r in t){let A=t[r],s=Array.isArray(A),{selector:n,value:i}=Znt(s?A[0]:A),o=typeof i=="function"?i:typeof i=="string"?a=>this._make(a).prop(i):a=>this._make(a).extract(i);if(s)e[r]=this._findBySelector(n,Number.POSITIVE_INFINITY).map((a,c)=>o(c,r,e)).get();else{let a=this._findBySelector(n,1);e[r]=a.length>0?o(a[0],r,e):void 0}}return e}var td=class{constructor(e,r,A){if(this.length=0,this.options=A,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};td.prototype.cheerio="[cheerio object]";td.prototype.splice=Array.prototype.splice;td.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(td.prototype,x3,rY,AY,sY,nY,iY);function Wde(t,e){return function r(A,s,n=!0){if(A==null)throw new Error("cheerio.load() expects a string");let i=hB(s),o=t(A,i,n,null);class a extends td{_make(l,g){let d=c(l,g);return d.prevObject=this,d}_parse(l,g,d,h){return t(l,g,d,h)}_render(l){return e(l,this.options)}}function c(u,l,g=o,d){if(u&&vo(u))return u;let h=hB(d,i),B=typeof g=="string"?[t(g,h,!1,null)]:"length"in g?g:[g],Q=vo(B)?B:new a(B,null,h);if(Q._root=Q,!u)return new a(void 0,Q,h);let C=typeof u=="string"&&wy(u)?t(u,h,!1,null).children:eit(u)?[u]:Array.isArray(u)?u:void 0,p=new a(C,Q,h);if(C)return p;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let w=u,k=l?typeof l=="string"?wy(l)?new a([t(l,h,!1,null)],Q,h):(w=`${l} ${w}`,Q):vo(l)?l:new a(Array.isArray(l)?l:[l],Q,h):Q;return k?k.find(w):p}return Object.assign(c,w3,{load:r,_root:o,_options:i,fn:a.prototype,prototype:a.prototype}),c}}function eit(t){return!!t.name||t.type===Uo.Root||t.type===Uo.Text||t.type===Uo.Comment}var tit=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),yr="\uFFFD",R;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(R||(R={}));var En={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function AT(t){return t>=55296&&t<=57343}function zde(t){return t>=56320&&t<=57343}function jde(t,e){return(t-55296)*1024+9216+e}function sT(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function nT(t){return t>=64976&&t<=65007||tit.has(t)}var q;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Ms=ce(Mo(),1);var ow={};function aw(t,e){return t===Ms.default.falseFunc?Ms.default.falseFunc:r=>e.isTag(r)&&t(r)}function Aw(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 iw(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 nw=(t,e,r,s,n)=>{let i=n(e,iw(r),s);return i===Ms.default.trueFunc?t:i===Ms.default.falseFunc?Ms.default.falseFunc:o=>i(o)&&t(o)},e0={is:nw,matches:nw,where:nw,not(t,e,r,s,n){let i=n(e,iw(r),s);return i===Ms.default.falseFunc?t:i===Ms.default.trueFunc?Ms.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=iw(r);o.relativeSelector=!0;let a=e.some(u=>u.some(hg))?[ow]:void 0,A=n(e,o,a);if(A===Ms.default.falseFunc)return Ms.default.falseFunc;let c=aw(A,i);if(a&&A!==Ms.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let g=i.getChildren(l),h=u?[...g,...Aw(l,i)]:g;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function _6(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in e0))throw new Error(`Unknown pseudo-class :${o}(${a})`);return e0[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:$p[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,O6.parse)(c);return e0.is(t,u,r,s,n)}if(typeof A=="function")return sw(A,o,a,1),u=>A(u,a)&&t(u);if(o in Cu)return Cu[o](t,a,r,s);if(o in mg){let u=mg[o];return sw(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Us=ce(pu(),1);function cw(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function H6(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case Us.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Us.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Us.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()),U6[e.action](t,e,r)}case Us.SelectorType.Pseudo:return _6(t,e,r,s,n);case Us.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 Us.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=cw(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=cw(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=cw(c,i));return!1};case Us.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case Us.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case Us.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 Us.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let g=c[l];if(o(A,g))break;i.isTag(g)&&(u=g)}return!!u&&t(u)};case Us.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function G6(t,e,r){let s=t0(t,e,r);return aw(s,e.adapter)}function t0(t,e,r){let s=typeof t=="string"?(0,Cn.parse)(t):t;return r0(s,e,r)}function Y6(t){return t.type===Cn.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(Y6)))}var ZEe={type:Cn.SelectorType.Descendant},$Ee={type:"_flexibleDescendant"},eCe={type:Cn.SelectorType.Pseudo,name:"scope",data:null};function tCe(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===ow||i&&e.isTag(i)});for(let n Line truncated
`)})):{name:n,value:i.replace(i_,`\r
`)}}).toArray()}var ww={};an(ww,{extract:()=>mIe});function fIe(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 mIe(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=fIe(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 Po=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}}};Po.prototype.cheerio="[cheerio object]";Po.prototype.splice=Array.prototype.splice;Po.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Po.prototype,Z1,Bw,Qw,yw,bw,ww);function o_(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=iu(n),a=t(s,o,i,null);class A extends Po{_make(l,g){let h=c(l,g);return h.prevObject=this,h}_parse(l,g,h,f){return t(l,g,h,f)}_render(l){return e(l,this.options)}}function c(u,l,g=a,h){if(u&&ks(u))return u;let f=iu(h,o),p=typeof g=="string"?[t(g,f,!1,null)]:"length"in g?g:[g],y=ks(p)?p:new A(p,null,f);if(y._root=y,!u)return new A(void 0,y,f);let E=typeof u=="string"&&Ag(u)?t(u,f,!1,null).children:pIe(u)?[u]:Array.isArray(u)?u:void 0,b=new A(E,y,f);if(E)return b;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let N=u,x=l?typeof l=="string"?Ag(l)?new A([t(l,f,!1,null)],y,f):(N=`${l} ${N}`,y):ks(l)?l:new A(Array.isArray(l)?l:[l],y,f):y;return x?x.find(N):b}return Object.assign(c,q1,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function pIe(t){return!!t.name||t.type===Ds.Root||t.type===Ds.Text||t.type===Ds.Comment}var EIe=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 fr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function A0(t){return t>=55296&&t<=57343}function a_(t){return t>=56320&&t<=57343}function A_(t,e){return(t-55296)*1024+9216+e}function c0(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function u0(t){return t>=64976&&t<=65007||EIe.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-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:
`)}`}},HC=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};import{readFileSync as Ave,existsSync as cve}from"fs";import{EOL as uve}from"os";var pl=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(cve(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Ave(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${uve}`)}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 mx=ce(rK(),1),sK=ce(yp(),1),yve=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 nK(t){return new mx.HttpClient().getAgent(t)}function bve(t){return new mx.HttpClient().getAgentDispatcher(t)}function iK(t){let e=bve(t);return(s,n)=>yve(this,void 0,void 0,function*(){return(0,sK.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function oK(){return process.env.GITHUB_API_URL||"https://api.github.com"}function ga(){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 zC(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)=>zC.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 aK(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 AK(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 cK=Function.bind,uK=cK.bind(cK);function lK(t,e,r){let s=uK(AK,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]=uK(aK,null).apply(null,i)})}function Nve(){let t=Symbol("Singular"),e={registry:{}},r=zC.bind(null,e,t);return lK(r,e,t),r}function Sve(){let t={registry:{}},e=zC.bind(null,t);return lK(e,t),e}var dK={Singular:Nve,Collection:Sve};var Tve="0.0.0-development",Dve=`octokit-endpoint.js/${Tve} ${ga()}`,xve={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Dve},mediaType:{format:""}};function Rve(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}function kve(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 fK(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(s=>{kve(e[s])?s in t?r[s]=fK(t[s],e[s]):Object.assign(r,{[s]:e[s]}):Object.assign(r,{[s]:e[s]})}),r}function gK(t){for(let e in t)t[e]===void 0&&delete t[e];return t}function Ex(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=Rve(r.headers),gK(r),gK(r.headers);let s=fK(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 d3e=class extends Error{constructor(t,e,r){super(l3e(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},g3e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],h3e=["query","method","url"],LK=/\/api\/v3\/?$/;function f3e(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(h3e.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)=>g3e.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 LK.test(i)&&(n.url=i.replace(LK,"/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 d3e(n,a,o.data)}return o.data.data})}function wx(t,e){let r=t.defaults(e);return Object.assign((n,i)=>f3e(r,n,i),{defaults:wx.bind(null,r),endpoint:r.endpoint})}var aet=wx(Yh,{headers:{"user-agent":`octokit-graphql.js/${u3e} ${ga()}`},method:"POST",url:"/graphql"});function PK(t){return wx(t,{method:"POST",url:"/graphql"})}var Nx="(?:[a-zA-Z0-9_-]+)",vK="\\.",OK=new RegExp(`^${Nx}${vK}${Nx}${vK}${Nx}$`),m3e=OK.test.bind(OK);async function p3e(t){let e=m3e(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 E3e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function C3e(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=E3e(t),e(n)}var _K=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(p3e.bind(null,e),{hook:C3e.bind(null,e)})};var Sx="7.0.6";var HK=()=>{},I3e=console.warn.bind(console),B3e=console.error.bind(console);function Q3e(t={}){return typeof t.debug!="function"&&(t.debug=HK),typeof t.info!="function"&&(t.info=HK),typeof t.warn!="function"&&(t.warn=I3e),typeof t.error!="function"&&(t.error=B3e),t}var GK=`octokit-core.js/${Sx} ${ga()}`,jC=class{static VERSION=Sx;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 dK.Collection,s={baseUrl:Yh.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} ${GK}`:GK,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Yh.defaults(s),this.graphql=PK(this.request).defaults(s),this.log=Q3e(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=_K(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 Tx="17.0.0";var y3e={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"}};qI.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var VI=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"}};VI.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var nGe=ce(ase(),1);var tne=ce(zse(),1),It=ce(Ct(),1),Qs=ce(Ct(),1),ic=ce(Ct(),1),oc=ce(Ct(),1),ac=ce(Ct(),1);var EF=ce(Ct(),1),CF=ce(Ct(),1),Zse=ce(Ct(),1),$se=ce(Ct(),1),ene=ce(Ct(),1);var fF=ce(Ct(),1),mF=ce(Ct(),1),Kse=ce(Ct(),1),Xse=ce(Ct(),1),jse=ce(Ct(),1),pF=class extends jse.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,Xse.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Kse.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?mF.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,fF.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,fF.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?mF.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},xB=new pF;var IF=class extends ene.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:()=>xB}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,$se.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Zse.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(xB.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?CF.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,EF.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)xB.internalBinaryWrite(e.scope[i],r.tag(2,EF.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?CF.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},fi=new IF;var BF=class extends ac.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:()=>fi},{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,oc.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ic.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=fi.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?Qs.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.metadata&&fi.internalBinaryWrite(e.metadata,r.tag(1,It.WireType.LengthDelimited).fork(),s).join(),e.key!==""&&r.tag(2,It.WireType.LengthDelimited).string(e.key),e.version!==""&&r.tag(3,It.WireType.LengthDelimited).string(e.version);let n=s.writeUnknownFields;return n!==!1&&(n==!0?Qs.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},rne=new BF,QF=class extends ac.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,oc.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ic.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?Qs.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.ok!==!1&&r.tag(1,It.WireType.Varint).bool(e.ok),e.signedUploadU Line truncated
See ${r.getDocumentationLink()}`;Qqe.push(s),Ui(s)}function cne(t=!0){if(Ane.length>0){Do(`This job uses deprecated functionality from the '${RB()}' action. Consult the ${t?"Job Summary":"logs"} for more details.`);for(let e of Ane)er(`DEPRECATION: ${e.message}. See ${e.getDocumentationLink()}`)}}var lne="GRADLE_ACTION_ID";var une=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return gne("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 kB("develocity-injection-enabled")}getDevelocityUrl(){return dr("develocity-url")}getDevelocityAllowUntrustedServer(){return kB("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return kB("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return kB("develocity-enforce-url")}getDevelocityPluginVersion(){return dr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return dr("develocity-ccud-plugin-version")}getPluginRepository(){return new xF}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:(Do("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},xF=class{getUrl(){return DF("gradle-plugin-repository-url")}getUsername(){return DF("gradle-plugin-repository-username")}getPassword(){return DF("gradle-plugin-repository-password")}};function RB(){return process.env[lne]}function dne(t){yO(lne,t)}function DF(t){let e=dr(t);if(e.length>0)return e}function gne(t,e=!1){let r=dr(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 kB(t){if(dr(t)!=="")return gne(t)}var RF=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function hne(t){if(t instanceof AggregateError){Ui("Multiple errors returned");for(let e of t.errors)wp(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&er(e.stack)}else t instanceof RF?(Ui(String(t)),t.stack&&er(t.stack)):(Ui(String(t)),t instanceof Error&&t.stack&&er(t.stack))}async function bqe(){try{RB()==="gradle/wrapper-validation-action"&&TF("The action `gradle/wrapper-validation-action` has been replaced by `gradle/actions/wrapper-validation`"),dne("gradle/actions/wrapper-validation");let t=await jz(fne.resolve("."),dr("allow-snapshots")==="true",dr("allow-checksums").split(","));if(t.isValid()){er(t.toDisplayString());let e=+dr("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}.`;Ui(r)}}else Ui(`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&&bO("failed-wrapper",`${t.invalid.map(e=>e.path).join("|")}`);cne(!1)}catch(t){hne(t)}}bqe();export{bqe 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": ";u3BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+36 -17
View File
@@ -15,6 +15,15 @@ for vulnerable dependencies, as well as to populate the
If you're confused by the behaviour you're seeing or have specific questions, please check out [the FAQ](dependency-submission-faq.md) before raising an issue.
> [!NOTE]
> ### ⚡️ Choice of caching providers in v6
> To provide the fastest possible build experience this action includes **Enhanced Caching** via `gradle-actions-caching`, an optimized provider powered by proprietary technology. This feature is **free for all public repositories** and is currently available as a **Free Preview** for private repositories.
>
> **Prefer a 100% Open Source (MIT) path?**
> We also provide a **Basic Caching** provider as a thin wrapper over `actions/cache`. This provider is **free for all repositories** (public and private) and can be enabled at any time by setting `cache-provider: basic`.
>
> For a full breakdown of the components, usage tiers, and our **Safe Harbor** data privacy commitment, see our [Distribution & Licensing Guide](../DISTRIBUTION.md).
## General usage
The following workflow will generate a dependency graph for a Gradle project and submit it immediately to the repository via the
@@ -36,14 +45,14 @@ jobs:
dependency-submission:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
```
### Gradle execution
@@ -60,6 +69,17 @@ on the command-line will be used.
The action provides the ability to override the Gradle version and task to execute, as well as provide
additional arguments that will be passed to Gradle on the command-line. See [Configuration Parameters](#configuration-parameters) below.
### Selecting a cache provider
See [Selecting a cache provider](setup-gradle.md#selecting-a-cache-provider) for details on choosing between the `enhanced` (default) and `basic` cache providers via the `cache-provider` input.
### Disabling caching
Caching is enabled by default. You can disable caching for the action as follows:
```yaml
cache-disabled: true
```
### Publishing a Develocity Build Scan® from your dependency submission workflow
You can automatically publish a free Develocity Build Scan on every run of `gradle/actions/dependency-submission`.
@@ -68,7 +88,7 @@ Three input parameters are required, one to enable publishing and two more to ac
```yaml
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use"
@@ -83,7 +103,7 @@ In some cases, the default action configuration will not be sufficient, and addi
```yaml
- name: Generate and save dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
# Use a particular Gradle version instead of the configured wrapper.
gradle-version: '8.6'
@@ -130,7 +150,7 @@ To reduce storage costs for these artifacts, you can:
```yaml
- name: Generate dependency graph but only store workflow artifacts for 1 day
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
artifact-retention-days: 1 # Default is 30 days or as configured for repository
```
@@ -139,7 +159,7 @@ To reduce storage costs for these artifacts, you can:
```yaml
- name: Generate and submit dependency graph but do not store as workflow artifact
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
dependency-graph: 'generate-and-submit' # Default value is 'generate-submit-and-upload'
```
@@ -299,7 +319,7 @@ For example, if you want to exclude dependencies resolved by the `buildSrc` proj
```yaml
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
# Exclude all dependencies that originate solely in the 'buildSrc' project
dependency-graph-exclude-projects: ':buildSrc'
@@ -343,14 +363,14 @@ jobs:
dependency-submission:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
```
#### 2. Add a dedicated Dependency Review workflow
@@ -405,14 +425,14 @@ jobs:
dependency-submission:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Generate and save dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
dependency-graph: generate-and-upload
```
@@ -435,7 +455,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
dependency-graph: download-and-submit # Download saved dependency-graph and submit
```
@@ -443,7 +463,7 @@ jobs:
# Gradle version compatibility
Dependency-graph generation is compatible with most versions of Gradle >= `5.2`, and is tested regularly against
Gradle versions `5.2.1`, `5.6.4`, `6.0.1`, `6.9.4`, `7.1.1` and `7.6.3`, as well as all patched versions of Gradle 8.x.
Gradle versions `5.2.1`, `5.6.4`, `6.0.1`, `6.9.4`, `7.1.1`, `7.6.6`, `8.0.2` and `8.14.4`, as well as all patched versions of Gradle 9.x.
A known exception to this is that Gradle `7.0`, `7.0.1` and `7.0.2` are not supported.
@@ -454,4 +474,3 @@ See [here](https://github.com/gradle/github-dependency-graph-gradle-plugin?tab=r
- Dependency Submission Demo repository: https://github.com/gradle/github-dependency-submission-demo
- GitHub Dependency Graph Gradle Plugin: https://github.com/gradle/github-dependency-graph-gradle-plugin
- Webinar - Gradle at Scale with GitHub and GitHub Actions at Allegro: https://www.youtube.com/watch?v=gV94I28FPos
+4 -4
View File
@@ -20,7 +20,7 @@ To convert your workflows, simply replace:
```
with
```
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
```
## The action `gradle/wrapper-validation-action` has been replaced by `gradle/actions/wrapper-validation`
@@ -40,7 +40,7 @@ To convert your workflows, simply replace:
```
with
```
uses: gradle/actions/wrapper-validation@v5
uses: gradle/actions/wrapper-validation@v6
```
## Using the action to execute Gradle via the `arguments` parameter is deprecated
@@ -82,7 +82,7 @@ The exact syntax depends on whether or not your project is configured with the [
```
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
- name: Assemble the project
run: ./gradlew assemble
@@ -99,7 +99,7 @@ The exact syntax depends on whether or not your project is configured with the [
```
- name: Setup Gradle for a non-wrapper project
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
gradle-version: '8.11'
+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.5.0` 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
-1
View File
@@ -1 +0,0 @@
v16
+1656 -2669
View File
File diff suppressed because it is too large. Load diff
Loaded 100 of 156 files, more files were not shown because too many files have changed in this diff. Show more