Compare commits

...
40 Commits
Author SHA1 Message Date
CrazyMax 4eb059ff7f Merge pull request #119 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.92.0
chore(deps): bump @docker/actions-toolkit from 0.91.0 to 0.92.0
2026-07-01 14:25:06 +02:00
github-actions[bot] 310654b5cc [dependabot skip] chore: update generated content 2026-07-01 12:21:25 +00:00
dependabot[bot] 2f4a3092b7 chore(deps): bump @docker/actions-toolkit from 0.91.0 to 0.92.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.91.0 to 0.92.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.91.0...v0.92.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-01 12:20:38 +00:00
CrazyMax 7d865ffaf9 Merge pull request #111 from docker/dependabot/npm_and_yarn/undici-6.27.0
chore(deps): bump undici from 6.26.0 to 6.27.0
2026-07-01 14:18:04 +02:00
github-actions[bot] a11ad46116 [dependabot skip] chore: update generated content 2026-07-01 12:13:46 +00:00
dependabot[bot] ea03e82695 chore(deps): bump undici from 6.26.0 to 6.27.0
Bumps [undici](https://github.com/nodejs/undici) from 6.26.0 to 6.27.0.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.26.0...v6.27.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 6.27.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-01 12:12:52 +00:00
CrazyMax d37dd72e1d Merge pull request #118 from docker/dependabot/npm_and_yarn/js-yaml-4.3.0
chore(deps): bump js-yaml from 4.1.1 to 4.3.0
2026-07-01 14:12:47 +02:00
github-actions[bot] 146a460e6d [dependabot skip] chore: update generated content 2026-07-01 12:10:56 +00:00
CrazyMax d3b0309f78 Merge pull request #108 from docker/dependabot/npm_and_yarn/tmp-0.2.7
chore(deps): bump tmp from 0.2.6 to 0.2.7
2026-07-01 14:10:15 +02:00
dependabot[bot] e04d0bad3c chore(deps): bump js-yaml from 4.1.1 to 4.3.0
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.1.1 to 4.3.0.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/4.1.1...4.3.0)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 4.3.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-01 12:09:59 +00:00
github-actions[bot] cb0af0a09b [dependabot skip] chore: update generated content 2026-07-01 12:09:39 +00:00
CrazyMax fd436c18c9 Merge pull request #109 from docker/dependabot/github_actions/actions/checkout-7.0.0
chore(deps): bump actions/checkout from 6.0.2 to 7.0.0
2026-07-01 14:09:05 +02:00
dependabot[bot] ae64015cc2 chore(deps): bump tmp from 0.2.6 to 0.2.7
Bumps [tmp](https://github.com/raszi/node-tmp) from 0.2.6 to 0.2.7.
- [Changelog](https://github.com/raszi/node-tmp/blob/master/CHANGELOG.md)
- [Commits](https://github.com/raszi/node-tmp/compare/v0.2.6...v0.2.7)

---
updated-dependencies:
- dependency-name: tmp
  dependency-version: 0.2.7
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-01 12:08:51 +00:00
CrazyMax 6ba698af1b Merge pull request #106 from docker/dependabot/github_actions/codecov/codecov-action-7.0.0
chore(deps): bump codecov/codecov-action from 6.0.1 to 7.0.0
2026-07-01 14:08:41 +02:00
CrazyMax daf7ec5eda Merge pull request #104 from docker/dependabot/github_actions/crazy-max-dot-github-a6a0ecf511
chore(deps): bump the crazy-max-dot-github group across 1 directory with 2 updates
2026-07-01 14:08:14 +02:00
CrazyMax bf10f6e6a0 Merge pull request #105 from docker/dependabot/github_actions/github/codeql-action-4.36.2
chore(deps): bump github/codeql-action from 4.36.0 to 4.36.2
2026-07-01 14:07:51 +02:00
CrazyMax a55b08de68 Merge pull request #110 from docker/dependabot/npm_and_yarn/vite-7.3.5
chore(deps): bump vite from 7.3.3 to 7.3.6
2026-07-01 14:07:01 +02:00
CrazyMax 2a56b96c64 Merge pull request #115 from docker/dependabot/npm_and_yarn/sigstore/core-3.2.1
chore(deps): bump @sigstore/core from 3.1.0 to 3.2.1
2026-07-01 14:06:21 +02:00
CrazyMax 398185fd5e Merge pull request #117 from crazy-max/fix-yarn-preapprove-actions-toolkit
chore: allow actions-toolkit to bypass yarn age gate
2026-07-01 12:50:50 +02:00
CrazyMax 0b6d64dd19 Merge pull request #116 from crazy-max/dependabot-skip-update-dist
dependabot: skip for update-dist commits
2026-07-01 12:50:41 +02:00
CrazyMax b7884b55c0 chore: allow actions-toolkit to bypass yarn age gate
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-07-01 11:43:34 +02:00
CrazyMax 31417945f5 dependabot: skip for update-dist commits
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-06-30 11:09:28 +02:00
dependabot[bot] 9668eca79b chore(deps): bump the crazy-max-dot-github group across 1 directory with 2 updates
Bumps the crazy-max-dot-github group with 2 updates in the / directory: [crazy-max/.github/.github/workflows/pr-assign-author.yml](https://github.com/crazy-max/.github) and [crazy-max/.github/.github/workflows/zizmor.yml](https://github.com/crazy-max/.github).


Updates `crazy-max/.github/.github/workflows/pr-assign-author.yml` from 1.8.0 to 1.10.1
- [Release notes](https://github.com/crazy-max/.github/releases)
- [Commits](https://github.com/crazy-max/.github/compare/9ba6e6f9450baf3b1237f8035c1fdc45932510bd...46267a6e61cd56aac2fc79943df180152f4c89d6)

Updates `crazy-max/.github/.github/workflows/zizmor.yml` from 1.8.0 to 1.10.1
- [Release notes](https://github.com/crazy-max/.github/releases)
- [Commits](https://github.com/crazy-max/.github/compare/9ba6e6f9450baf3b1237f8035c1fdc45932510bd...46267a6e61cd56aac2fc79943df180152f4c89d6)

---
updated-dependencies:
- dependency-name: crazy-max/.github/.github/workflows/pr-assign-author.yml
  dependency-version: 1.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: crazy-max-dot-github
- dependency-name: crazy-max/.github/.github/workflows/zizmor.yml
  dependency-version: 1.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: crazy-max-dot-github
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-30 01:32:44 +00:00
dependabot[bot] a4632bf49a chore(deps): bump vite from 7.3.3 to 7.3.6
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.3.3 to 7.3.6.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v7.3.6/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.3.6/packages/vite)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-29 14:18:30 +00:00
github-actions[bot] e94f5ff3d8 chore: update generated content 2026-06-29 14:17:52 +00:00
dependabot[bot] 51d5930742 chore(deps): bump @sigstore/core from 3.1.0 to 3.2.1
Bumps [@sigstore/core](https://github.com/sigstore/sigstore-js) from 3.1.0 to 3.2.1.
- [Release notes](https://github.com/sigstore/sigstore-js/releases)
- [Commits](https://github.com/sigstore/sigstore-js/compare/sigstore@3.1.0...@sigstore/core@3.2.1)

---
updated-dependencies:
- dependency-name: "@sigstore/core"
  dependency-version: 3.2.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-29 14:17:00 +00:00
CrazyMax a8074e13c2 Merge pull request #114 from crazy-max/fix-esbuild
preserve names in esbuild bundle
2026-06-29 16:15:18 +02:00
CrazyMax 7fbdfd3c1a preserve names in esbuild bundle
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-06-29 15:04:20 +02:00
dependabot[bot] 09ed12acf8 chore(deps): bump actions/checkout from 6.0.2 to 7.0.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.2 to 7.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/de0fac2e4500dabe0009e67214ff5f5447ce83dd...9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-19 01:32:46 +00:00
Alexandre Vallières-Lagacé 6fe408f5ba Merge pull request #107 from docker/sec-cli/npm-ci-20260615-142203
fix: replace npm install with npm ci (20260615-142203)
2026-06-15 11:53:25 -04:00
securityeng-bot[bot] f6cde28f68 fix: use lockfile-aware install commands 2026-06-15 14:22:04 +00:00
dependabot[bot] c1ee995bf9 chore(deps): bump codecov/codecov-action from 6.0.1 to 7.0.0
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 6.0.1 to 7.0.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/e79a6962e0d4c0c17b229090214935d2e33f8354...fb8b3582c8e4def4969c97caa2f19720cb33a72f)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-08 01:34:29 +00:00
dependabot[bot] de9dc1b95d chore(deps): bump github/codeql-action from 4.36.0 to 4.36.2
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.36.0 to 4.36.2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/7211b7c8077ea37d8641b6271f6a365a22a5fbfa...8aad20d150bbac5944a9f9d289da16a4b0d87c1e)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.36.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-08 01:34:24 +00:00
CrazyMax dd8b913e80 Merge pull request #101 from crazy-max/yarn-update
update yarn to 4.15.0
2026-05-28 18:45:01 +02:00
CrazyMax 168cd6c426 update yarn to 4.15.0
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-05-28 15:13:46 +02:00
CrazyMax 410c00e878 Merge pull request #100 from docker/dependabot/npm_and_yarn/actions/core-3.0.1
chore(deps): bump @actions/core from 3.0.0 to 3.0.1
2026-05-28 10:22:30 +02:00
CrazyMax 5d29e18d06 Merge pull request #99 from docker/sec-cli/ignore-scripts-fix-20260527-193420
ci: add ignore-scripts to Node package manager config (20260527-193420)
2026-05-28 09:59:38 +02:00
github-actions[bot] 70b1359563 chore: update generated content 2026-05-28 01:58:55 +00:00
dependabot[bot] f0bcefd12e chore(deps): bump @actions/core from 3.0.0 to 3.0.1
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 3.0.0 to 3.0.1.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-version: 3.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-28 01:58:09 +00:00
securityeng-bot[bot] 41e3c799a3 ci: enforce ignore-scripts policy for Node package managers 2026-05-27 20:05:06 +00:00
15 changed files with 410 additions and 1107 deletions

No files matched your search

+4 -4
View File
@@ -34,7 +34,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Set up Docker Compose
uses: ./
@@ -46,7 +46,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Set up Docker Compose 1
uses: ./
@@ -59,7 +59,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Uninstall docker cli
run: |
@@ -83,7 +83,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Set up Docker Compose
uses: ./
+3 -3
View File
@@ -22,7 +22,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Enable corepack
run: |
@@ -35,12 +35,12 @@ jobs:
node-version: ${{ env.NODE_VERSION }}
-
name: Initialize CodeQL
uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
with:
languages: javascript-typescript
build-mode: none
-
name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
with:
category: "/language:javascript-typescript"
+1 -1
View File
@@ -11,7 +11,7 @@ on:
jobs:
run:
uses: crazy-max/.github/.github/workflows/pr-assign-author.yml@9ba6e6f9450baf3b1237f8035c1fdc45932510bd # v1.8.0
uses: crazy-max/.github/.github/workflows/pr-assign-author.yml@46267a6e61cd56aac2fc79943df180152f4c89d6 # v1.10.1
permissions:
contents: read
pull-requests: write
+1 -1
View File
@@ -22,7 +22,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Publish
uses: actions/publish-immutable-action@4bc8754ffc40f27910afb20287dbbbb675a4e978 # v0.0.4
+2 -2
View File
@@ -20,7 +20,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Test
uses: docker/bake-action@6614cfa25eff9a0b2b2697efb0b6159e7680d584 # v7.2.0
@@ -29,7 +29,7 @@ jobs:
targets: test
-
name: Upload coverage
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
files: ./coverage/clover.xml
token: ${{ secrets.CODECOV_TOKEN }}
+2 -2
View File
@@ -30,7 +30,7 @@ jobs:
permission-contents: write
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
@@ -50,7 +50,7 @@ jobs:
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add dist
git commit -m "chore: update generated content"
git commit -m "[dependabot skip] chore: update generated content"
git push
)
else
+1 -1
View File
@@ -22,7 +22,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
-
name: Generate matrix
id: generate
+1 -1
View File
@@ -19,7 +19,7 @@ on:
jobs:
zizmor:
uses: crazy-max/.github/.github/workflows/zizmor.yml@9ba6e6f9450baf3b1237f8035c1fdc45932510bd # v1.8.0
uses: crazy-max/.github/.github/workflows/zizmor.yml@46267a6e61cd56aac2fc79943df180152f4c89d6 # v1.10.1
permissions:
contents: read
security-events: write
+11 -4
View File
@@ -1,10 +1,10 @@
# https://yarnpkg.com/configuration/yarnrc
compressionLevel: mixed
enableGlobalCache: false
enableHardenedMode: true
nodeLinker: node-modules
logFilters:
- code: YN0004
level: discard
- code: YN0013
level: discard
- code: YN0019
@@ -14,4 +14,11 @@ logFilters:
- code: YN0086
level: discard
nodeLinker: node-modules
npmPreapprovedPackages:
- "@docker/actions-toolkit"
compressionLevel: mixed
enableGlobalCache: false
enableHardenedMode: true
enableScripts: false
npmMinimalAgeGate: 2d
+1 -1
View File
@@ -17,7 +17,7 @@ FROM base AS deps
RUN --mount=type=bind,target=.,rw \
--mount=type=cache,target=/src/.yarn/cache \
--mount=type=cache,target=/src/node_modules \
yarn install && mkdir /vendor && cp yarn.lock /vendor
yarn install --immutable && mkdir /vendor && cp yarn.lock /vendor
FROM scratch AS vendor-update
COPY --from=deps /vendor /
Generated Vendored
+122 -184
View File
@@ -1,184 +1,160 @@
var UPe=Object.create;var _D=Object.defineProperty;var FPe=Object.getOwnPropertyDescriptor;var qPe=Object.getOwnPropertyNames;var GPe=Object.getPrototypeOf,HPe=Object.prototype.hasOwnProperty;var zPe=(t,e)=>()=>(t&&(e=t(t=0)),e);var A=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),HW=(t,e)=>{for(var r in e)_D(t,r,{get:e[r],enumerable:!0})},VPe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of qPe(e))!HPe.call(t,i)&&i!==r&&_D(t,i,{get:()=>e[i],enumerable:!(s=FPe(e,i))||s.enumerable});return t};var O=(t,e,r)=>(r=t!=null?UPe(GPe(t)):{},VPe(e||!t||!t.__esModule?_D(r,"default",{value:t,enumerable:!0}):r,t));var YW=A(PA=>{"use strict";var jQt=require("net"),KPe=require("tls"),kD=require("http"),$W=require("https"),XPe=require("events"),JQt=require("assert"),ZPe=require("util");PA.httpOverHttp=eOe;PA.httpsOverHttp=tOe;PA.httpOverHttps=rOe;PA.httpsOverHttps=sOe;function eOe(t){var e=new Gl(t);return e.request=kD.request,e}function tOe(t){var e=new Gl(t);return e.request=kD.request,e.createSocket=jW,e.defaultPort=443,e}function rOe(t){var e=new Gl(t);return e.request=$W.request,e}function sOe(t){var e=new Gl(t);return e.request=$W.request,e.createSocket=jW,e.defaultPort=443,e}function Gl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||kD.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,i,n,o){for(var a=JW(i,n,o),c=0,l=e.requests.length;c<l;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}ZPe.inherits(Gl,XPe.EventEmitter);Gl.prototype.addRequest=function(e,r,s,i){var n=this,o=MD({request:e},n.options,JW(r,s,i));if(n.sockets.length>=this.maxSockets){n.requests.push(o);return}n.createSocket(o,function(a){a.on("free",c),a.on("close",l),a.on("agentRemove",l),e.onSocket(a);function c(){n.emit("free",a,o)}function l(u){n.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};Gl.prototype.createSocket=function(e,r){var s=this,i={};s.sockets.push(i);var n=MD({},s.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")),Ih("making CONNECT request");var o=s.request(n);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",l),o.once("error",u),o.end();function a(h){h.upgrade=!0}function c(h,d,f){process.nextTick(function(){l(h,d,f)})}function l(h,d,f){if(o.removeAllListeners(),d.removeAllListeners(),h.statusCode!==200){Ih("tunneling socket could not be established, statusCode=%d",h.statusCode),d.destroy();var p=new Error("tunneling socket could not be established, statusCode="+h.statusCode);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(i);return}if(f.length>0){Ih("got illegal response body from proxy"),d.destroy();var p=new Error("got illegal response body from proxy");p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(i);return}return Ih("tunneling connection has established"),s.sockets[s.sockets.indexOf(i)]=d,r(d)}function u(h){o.removeAllListeners(),Ih(`tunneling socket could not be established, cause=%s
`,h.message,h.stack);var d=new Error("tunneling socket could not be established, cause="+h.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(i)}};Gl.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(i){s.request.onSocket(i)})}};function jW(t,e){var r=this;Gl.prototype.createSocket.call(r,t,function(s){var i=t.request.getHeader("host"),n=MD({},r.options,{socket:s,servername:i?i.replace(/:.*$/,""):t.host}),o=KPe.connect(0,n);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function JW(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function MD(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var i=Object.keys(s),n=0,o=i.length;n<o;++n){var a=i[n];s[a]!==void 0&&(t[a]=s[a])}}return t}var Ih;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ih=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)}:Ih=function(){};PA.debug=Ih});var af=A((WQt,WW)=>{WW.exports=YW()});var tr=A((KQt,KW)=>{KW.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 yt=A((XQt,bK)=>{"use strict";var XW=Symbol.for("undici.error.UND_ERR"),rr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[XW]===!0}[XW]=!0},ZW=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),LD=class extends rr{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[ZW]===!0}[ZW]=!0},eK=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),UD=class extends rr{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[eK]===!0}[eK]=!0},tK=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),FD=class extends rr{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[tK]===!0}[tK]=!0},rK=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),qD=class extends rr{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[rK]===!0}[rK]=!0},sK=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),GD=class extends rr{constructor(e,r,s,i){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=i,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Eke(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),i="";if(s.length>0)for(let n=s.length;n!==0;n--){let o=s[n-1].trim();if(ske.has(o)){i=o;break}}i!==""&&(t.referrerPolicy=i)}function Cke(){return"allowed"}function Ike(){return"success"}function bke(){return"success"}function wke(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Bke(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&&Pk(t.origin)&&!Pk(KE(t))&&(e=null);break;case"same-origin":FB(t,KE(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function HA(t,e){return t}function Ske(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:HA(t.domainLookupStartTime,r),domainLookupEndTime:HA(t.domainLookupEndTime,r),connectionStartTime:HA(t.connectionStartTime,r),connectionEndTime:HA(t.connectionEndTime,r),secureConnectionStartTime:HA(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function xke(t){return HA(cke.now(),t)}function Nke(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 MX(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Rke(t){return{referrerPolicy:t.referrerPolicy}}function vke(t){let e=t.referrerPolicy;hf(e);let r=null;if(t.referrer==="client"){let a=_X();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=Qk(r),i=Qk(r,!0);s.toString().length>4096&&(s=i);let n=FB(t,s),o=WE(s)&&!WE(t.url);switch(e){case"origin":return i??Qk(r,!0);case"unsafe-url":return s;case"same-origin":return n?i:"no-referrer";case"origin-when-cross-origin":return n?s:i;case"strict-origin-when-cross-origin":{let a=KE(t);return FB(s,a)?s:WE(s)&&!WE(a)?"no-referrer":i}default:return o?"no-referrer":i}}function Qk(t,e){return hf(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 WE(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 Tke(t,e){if(UB===void 0)return!0;let r=LX(e);if(r==="no metadata"||r.length===0)return!0;let s=Qke(r),i=Pke(r,s);for(let n of i){let o=n.algo,a=n.hash,c=UB.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)),Oke(c,a))return!0}return!1}var _ke=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function LX(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let i=_ke.exec(s);if(i===null||i.groups===void 0||i.groups.algo===void 0)continue;let n=i.groups.algo.toLowerCase();PX.includes(n)&&e.push(i.groups)}return r===!0?"no metadata":e}function Qke(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 Pke(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 Oke(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 Dke(t){}function FB(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function kke(){let t,e;return{promise:new Promise((s,i)=>{t=s,e=i}),resolve:t,reject:e}}function Mke(t){return t.controller.state==="aborted"}function Lke(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Uke(t){return hke[t.toLowerCase()]??t}function Fke(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return hf(typeof e=="string"),e}var qke=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function UX(t,e,r=0,s=1){class i{#e;#t; Line truncated
`);function gMe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function yMe(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 EMe(t,e){GB(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"),i=[],n={position:0};for(;t[n.position]===13&&t[n.position+1]===10;)n.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(n.position,n.position+s.length).equals(s))n.position+=s.length;else return"failure";if(n.position===t.length-2&&HB(t,AMe,n)||n.position===t.length-4&&HB(t,mMe,n))return i;if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let a=CMe(t,n);if(a==="failure")return"failure";let{name:c,filename:l,contentType:u,encoding:h}=a;n.position+=2;let d;{let p=t.indexOf(s.subarray(2),n.position);if(p===-1)return"failure";d=t.subarray(n.position,p-4),n.position+=d.length,h==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let f;l!==null?(u??="text/plain",gMe(u)||(u=""),f=new fMe([d],l,{type:u})):f=cMe(Buffer.from(d)),GB(KX(c)),GB(typeof f=="string"&&KX(f)||uMe(f)),i.push(hMe(c,f,l))}}function CMe(t,e){let r=null,s=null,i=null,n=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:i,encoding:n};let o=VA(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Fk(o,!0,!0,a=>a===9||a===32),!lMe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,VA(a=>a===32||a===9,t,e),aMe(o)){case"content-disposition":{if(r=s=null,!HB(t,pMe,e)||(e.position+=17,r=eZ(t,e),r===null))return"failure";if(HB(t,ZX,e)){let a=e.position+ZX.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=eZ(t,e),s===null))return"failure"}break}case"content-type":{let a=VA(c=>c!==10&&c!==13,t,e);a=Fk(a,!1,!0,c=>c===9||c===32),i=XX(a);break}case"content-transfer-encoding":{let a=VA(c=>c!==10&&c!==13,t,e);a=Fk(a,!1,!0,c=>c===9||c===32),n=XX(a);break}default:VA(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function eZ(t,e){GB(t[e.position-1]===34);let r=VA(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 VA(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function Fk(t,e,r,s){let i=0,n=t.length-1;if(e)for(;i<t.length&&s(t[i]);)i++;if(r)for(;n>0&&s(t[n]);)n--;return i===0&&n===t.length-1?t:t.subarray(i,n+1)}function HB(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}tZ.exports={multipartFormDataParser:EMe,validateBoundary:yMe}});var JA=A((w1t,dZ)=>{"use strict";var eC=st(),{ReadableStreamFrom:IMe,isBlobLike:sZ,isReadableStreamLike:bMe,readableStreamClose:wMe,createDeferredPromise:BMe,fullyReadBody:SMe,extractMimeType:xMe,utf8DecodeBytes:oZ}=_n(),{FormData:iZ}=ZE(),{kState:jA}=bh(),{webidl:NMe}=Ms(),{Blob:RMe}=require("node:buffer"),qk=require("node:assert"),{isErrored:aZ,isDisturbed:vMe}=require("node:stream"),{isArrayBuffer:TMe}=require("node:util/types"),{serializeAMimeType:_Me}=Ki(),{multipartFormDataParser:QMe}=rZ(),Gk;try{let t=require("node:crypto");Gk=e=>t.randomInt(0,e)}catch{Gk=t=>Math.floor(Math.random(t))}var zB=new TextEncoder;function PMe(){}var cZ=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,lZ;cZ&&(lZ=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!vMe(e)&&!aZ(e)&&e.cancel("Response object has been garbage collected").catch(PMe)}));function uZ(t,e=!1){let r=null;t instanceof ReadableStream?r=t:sZ(t)?r=t.stream():r=new ReadableStream({async pull(c){let l=typeof i=="string"?zB.encode(i):i;l.byteLength&&c.enqueue(l),queueMicrotask(()=>wMe(c))},start(){},type:"bytes"}),qk(bMe(r));let s=null,i=null,n=null,o=null;if(typeof t=="string")i=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(TMe(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(eC.isFormDataLike(t)){let c=`----formdata-undici-0${`${Gk(1e11)}`.padStart(11,"0")}`,l=`--${c}\r
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),h=E=>E.replace(/\r?\n|\r/g,`\r
`),d=[],f=new Uint8Array([13,10]);n=0;let p=!1;for(let[E,y]of t)if(typeof y=="string"){let C=zB.encode(l+`; name="${u(h(E))}"\r
var Hce=Object.create;var iE=Object.defineProperty;var Vce=Object.getOwnPropertyDescriptor;var zce=Object.getOwnPropertyNames;var Jce=Object.getPrototypeOf,Yce=Object.prototype.hasOwnProperty;var o=(t,e)=>iE(t,"name",{value:e,configurable:!0});var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$ce=(t,e)=>{for(var r in e)iE(t,r,{get:e[r],enumerable:!0})},Wce=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of zce(e))!Yce.call(t,n)&&n!==r&&iE(t,n,{get:()=>e[n],enumerable:!(s=Vce(e,n))||s.enumerable});return t};var w=(t,e,r)=>(r=t!=null?Hce(Jce(t)):{},Wce(e||!t||!t.__esModule?iE(r,"default",{value:t,enumerable:!0}):r,t));var nq=h(zu=>{"use strict";var e4e=require("net"),tle=require("tls"),RN=require("http"),tq=require("https"),rle=require("events"),t4e=require("assert"),sle=require("util");zu.httpOverHttp=nle;zu.httpsOverHttp=ile;zu.httpOverHttps=ole;zu.httpsOverHttps=ale;function nle(t){var e=new Uo(t);return e.request=RN.request,e}o(nle,"httpOverHttp");function ile(t){var e=new Uo(t);return e.request=RN.request,e.createSocket=rq,e.defaultPort=443,e}o(ile,"httpsOverHttp");function ole(t){var e=new Uo(t);return e.request=tq.request,e}o(ole,"httpOverHttps");function ale(t){var e=new Uo(t);return e.request=tq.request,e.createSocket=rq,e.defaultPort=443,e}o(ale,"httpsOverHttps");function Uo(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||RN.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,n,i,a){for(var c=sq(n,i,a),l=0,u=e.requests.length;l<u;++l){var d=e.requests[l];if(d.host===c.host&&d.port===c.port){e.requests.splice(l,1),d.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)},"onFree"))}o(Uo,"TunnelingAgent");sle.inherits(Uo,rle.EventEmitter);Uo.prototype.addRequest=o(function(e,r,s,n){var i=this,a=TN({request:e},i.options,sq(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){i.emit("free",c,a)}o(l,"onFree");function u(d){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");Uo.prototype.createSocket=o(function(e,r){var s=this,n={};s.sockets.push(n);var i=TN({},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")),qa("making CONNECT request");var a=s.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();function c(A){A.upgrade=!0}o(c,"onResponse");function l(A,p,f){process.nextTick(function(){u(A,p,f)})}o(l,"onUpgrade");function u(A,p,f){if(a.removeAllListeners(),p.removeAllListeners(),A.statusCode!==200){qa("tunneling socket could not be established, statusCode=%d",A.statusCode),p.destroy();var m=new Error("tunneling socket could not be established, statusCode="+A.statusCode);m.code="ECONNRESET",e.request.emit("error",m),s.removeSocket(n);return}if(f.length>0){qa("got illegal response body from proxy"),p.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),s.removeSocket(n);return}return qa("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=p,r(p)}o(u,"onConnect");function d(A){a.removeAllListeners(),qa(`tunneling socket could not be established, cause=%s
`,A.message,A.stack);var p=new Error("tunneling socket could not be established, cause="+A.message);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(n)}o(d,"onError")},"createSocket");Uo.prototype.removeSocket=o(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)})}},"removeSocket");function rq(t,e){var r=this;Uo.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=TN({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),a=tle.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a,e(a)})}o(rq,"createSecureSocket");function sq(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(sq,"toOptions");function TN(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,a=n.length;i<a;++i){var c=n[i];s[c]!==void 0&&(t[c]=s[c])}}return t}o(TN,"mergeOptions");var qa;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?qa=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):qa=o(function(){},"debug");zu.debug=qa});var Zp=h((n4e,iq)=>{iq.exports=nq()});var ot=h((i4e,oq)=>{oq.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 Te=h((o4e,vq)=>{"use strict";var aq=Symbol.for("undici.error.UND_ERR"),at=class extends Error{static{o(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[aq]===!0}[aq]=!0},cq=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),vN=class extends at{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[cq]===!0}[cq]=!0},lq=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),PN=class extends at{static{o(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[lq]===!0}[lq]=!0},uq=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),_N=class extends at{static{o(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[uq]===!0}[uq]=!0},dq=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),kN=class extends at{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT" Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}o(VG,"isValidHeaderValue");function bde(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 a=s[i-1].trim();if(ade.has(a)){n=a;break}}n!==""&&(t.referrerPolicy=n)}o(bde,"setRequestReferrerPolicyOnRedirect");function wde(){return"allowed"}o(wde,"crossOriginResourcePolicyCheck");function Sde(){return"success"}o(Sde,"corsCheck");function Nde(){return"success"}o(Nde,"TAOCheck");function xde(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(xde,"appendFetchMetadata");function Qde(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&&xx(t.origin)&&!xx(lf(t))&&(e=null);break;case"same-origin":RE(t,lf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(Qde,"appendRequestOriginHeader");function td(t,e){return t}o(td,"coarsenTime");function Rde(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:td(t.domainLookupStartTime,r),domainLookupEndTime:td(t.domainLookupEndTime,r),connectionStartTime:td(t.connectionStartTime,r),connectionEndTime:td(t.connectionEndTime,r),secureConnectionStartTime:td(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(Rde,"clampAndCoarsenConnectionTimingInfo");function Tde(t){return td(Ade.now(),t)}o(Tde,"coarsenedSharedCurrentTime");function vde(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}}o(vde,"createOpaqueTimingInfo");function zG(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(zG,"makePolicyContainer");function Pde(t){return{referrerPolicy:t.referrerPolicy}}o(Pde,"clonePolicyContainer");function _de(t){let e=t.referrerPolicy;sl(e);let r=null;if(t.referrer==="client"){let c=FG();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let s=Nx(r),n=Nx(r,!0);s.toString().length>4096&&(s=n);let i=RE(t,s),a=cf(s)&&!cf(t.url);switch(e){case"origin":return n??Nx(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 c=lf(t);return RE(s,c)?s:cf(s)&&!cf(c)?"no-referrer":n}default:return a?"no-referrer":n}}o(_de,"determineRequestsReferrer");function Nx(t,e){return sl(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)}o(Nx,"stripURLForReferrer");function cf(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"))}}o(cf,"isURLPotentiallyTrustworthy");function kde(t,e){if(QE===void 0)return!0;let r=JG(e);if(r==="no metadata"||r.length===0)return!0;let s=Ode(r),n=Mde(r,s);for(let i of n){let a=i.algo,c=i.hash,l=QE.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),Lde(l,c))return!0}return!1}o(kde,"bytesMatch");var Dde=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function JG(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=Dde.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();qG.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}o(JG,"parseMetadata");function Ode(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}o(Ode,"getStrongestMetadata");function Mde(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}o(Mde,"filterMetadataListByAlgorithm");function Lde(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}o(Lde,"compareBase64Mixed");function Fde(t){}o(Fde,"tryUpgradeReque Line truncated
`);function IAe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(IAe,"isAsciiString");function BAe(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}o(BAe,"validateBoundary");function bAe(t,e){vE(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 a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&PE(t,yAe,i)||i.position===t.length-4&&PE(t,CAe,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=wAe(t,i);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:A}=c;i.position+=2;let p;{let m=t.indexOf(s.subarray(2),i.position);if(m===-1)return"failure";p=t.subarray(i.position,m-4),i.position+=p.length,A==="base64"&&(p=Buffer.from(p.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let f;u!==null?(d??="text/plain",IAe(d)||(d=""),f=new gAe([p],u,{type:d})):f=AAe(Buffer.from(p)),vE(iH(l)),vE(typeof f=="string"&&iH(f)||fAe(f)),n.push(hAe(l,f,u))}}o(bAe,"multipartFormDataParser");function wAe(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 a=sd(c=>c!==10&&c!==13&&c!==58,t,e);if(a=kx(a,!0,!0,c=>c===9||c===32),!pAe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,sd(c=>c===32||c===9,t,e),dAe(a)){case"content-disposition":{if(r=s=null,!PE(t,EAe,e)||(e.position+=17,r=cH(t,e),r===null))return"failure";if(PE(t,aH,e)){let c=e.position+aH.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,s=cH(t,e),s===null))return"failure"}break}case"content-type":{let c=sd(l=>l!==10&&l!==13,t,e);c=kx(c,!1,!0,l=>l===9||l===32),n=oH(c);break}case"content-transfer-encoding":{let c=sd(l=>l!==10&&l!==13,t,e);c=kx(c,!1,!0,l=>l===9||l===32),i=oH(c);break}default:sd(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(wAe,"parseMultipartFormDataHeaders");function cH(t,e){vE(t[e.position-1]===34);let r=sd(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)}o(cH,"parseMultipartFormDataName");function sd(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}o(sd,"collectASequenceOfBytes");function kx(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)}o(kx,"removeChars");function PE(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}o(PE,"bufferStartsWith");lH.exports={multipartFormDataParser:bAe,validateBoundary:BAe}});var od=h((J4e,CH)=>{"use strict";var Af=Ce(),{ReadableStreamFrom:SAe,isBlobLike:dH,isReadableStreamLike:NAe,readableStreamClose:xAe,createDeferredPromise:QAe,fullyReadBody:RAe,extractMimeType:TAe,utf8DecodeBytes:fH}=Ss(),{FormData:AH}=df(),{kState:id}=Ga(),{webidl:vAe}=pr(),{Blob:PAe}=require("node:buffer"),Dx=require("node:assert"),{isErrored:hH,isDisturbed:_Ae}=require("node:stream"),{isArrayBuffer:kAe}=require("node:util/types"),{serializeAMimeType:DAe}=Zr(),{multipartFormDataParser:OAe}=uH(),Ox;try{let t=require("node:crypto");Ox=o(e=>t.randomInt(0,e),"random")}catch{Ox=o(t=>Math.floor(Math.random(t)),"random")}var _E=new TextEncoder;function MAe(){}o(MAe,"noop");var mH=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,gH;mH&&(gH=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!_Ae(e)&&!hH(e)&&e.cancel("Response object has been garbage collected").catch(MAe)}));function EH(t,e=!1){let r=null;t instanceof ReadableStream?r=t:dH(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof n=="string"?_E.encode(n):n;u.byteLength&&l.enqueue(u),queueMicrotask(()=>xAe(l))},start(){},type:"bytes"}),Dx(NAe(r));let s=null,n=null,i=null,a=null;if(typeof t=="string")n=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(kAe(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(Af.isFormDataLike(t)){let l=`----formdata-undici-0${`${Ox(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
Content-Disposition: form-data`;let d=o(y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),A=o(y=>y.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),p=[],f=new Uint8Array([13,10]);i=0;let m=!1;for(let[y,E]of t)if(typeof E=="string"){let C=_E.encode(u+`; name="${d(A(y))}"\r
\r
${h(y)}\r
`);d.push(C),n+=C.byteLength}else{let C=zB.encode(`${l}; name="${u(h(E))}"`+(y.name?`; filename="${u(y.name)}"`:"")+`\r
Content-Type: ${y.type||"application/octet-stream"}\r
${A(E)}\r
`);p.push(C),i+=C.byteLength}else{let C=_E.encode(`${u}; name="${d(A(y))}"`+(E.name?`; filename="${d(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);d.push(C,y,f),typeof y.size=="number"?n+=C.byteLength+y.size+f.byteLength:p=!0}let m=zB.encode(`--${c}--\r
`);d.push(m),n+=m.byteLength,p&&(n=null),i=t,s=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(sZ(t))i=t,n=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(eC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:IMe(t)}if((typeof i=="string"||eC.isBuffer(i))&&(n=Buffer.byteLength(i)),s!=null){let c;r=new ReadableStream({async start(){c=s(t)[Symbol.asyncIterator]()},async pull(l){let{value:u,done:h}=await c.next();if(h)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});else if(!aZ(r)){let d=new Uint8Array(u);d.byteLength&&l.enqueue(d)}return l.desiredSize>0},async cancel(l){await c.return()},type:"bytes"})}return[{stream:r,source:i,length:n},o]}function OMe(t,e=!1){return t instanceof ReadableStream&&(qk(!eC.isDisturbed(t),"The body has already been consumed."),qk(!t.locked,"The stream is locked.")),uZ(t,e)}function DMe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function kMe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function MMe(t){return{blob(){return $A(this,r=>{let s=nZ(this);return s===null?s="":s&&(s=_Me(s)),new RMe([r],{type:s})},t)},arrayBuffer(){return $A(this,r=>new Uint8Array(r).buffer,t)},text(){return $A(this,oZ,t)},json(){return $A(this,UMe,t)},formData(){return $A(this,r=>{let s=nZ(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let i=QMe(r,s);if(i==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new iZ;return n[jA]=i,n}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(r.toString()),n=new iZ;for(let[o,a]of i)n.append(o,a);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return $A(this,r=>new Uint8Array(r),t)}}}function LMe(t){Object.assign(t.prototype,MMe(t))}async function $A(t,e,r){if(NMe.brandCheck(t,r),hZ(t))throw new TypeError("Body is unusable: Body has already been read");kMe(t[jA]);let s=BMe(),i=o=>s.reject(o),n=o=>{try{s.resolve(e(o))}catch(a){i(a)}};return t[jA].body==null?(n(Buffer.allocUnsafe(0)),s.promise):(await SMe(t[jA].body,n,i),s.promise)}function hZ(t){let e=t[jA].body;return e!=null&&(e.stream.locked||eC.isDisturbed(e.stream))}function UMe(t){return JSON.parse(oZ(t))}function nZ(t){let e=t[jA].headersList,r=xMe(e);return r==="failure"?null:r}dZ.exports={extractBody:uZ,safelyExtractBody:OMe,cloneBody:DMe,mixinBody:LMe,streamRegistry:lZ,hasFinalizationRegistry:cZ,bodyUnusable:hZ}});var xZ=A((B1t,SZ)=>{"use strict";var Re=require("node:assert"),qe=st(),{channels:fZ}=DA(),Hk=Bk(),{RequestContentLengthMismatchError:df,ResponseContentLengthMismatchError:pZ,RequestAbortedError:bZ,HeadersTimeoutError:FMe,HeadersOverflowError:qMe,SocketError:KB,InformationalError:YA,BodyTimeoutError:GMe,HTTPParserError:HMe,ResponseExceededMaxSizeError:zMe}=yt(),{kUrl:wZ,kReset:Xi,kClient:JB,kParser:pr,kBlocking:sC,kRunning:Vs,kPending:VMe,kSize:AZ,kWriting:Bh,kQueue:Ca,kNoRef:tC,kKeepAliveDefaultTimeout:$Me,kHostHeader:jMe,kPendingIdx:JMe,kRunningIdx:bo,kError:gi,kPipelining:YB,kSocket:WA,kKeepAliveTimeoutValue:XB,kMaxHeadersSize:zk,kKeepAliveMaxTimeout:YMe,kKeepAliveTimeoutThreshold:WMe,kHeadersTimeout:KMe,kBodyTimeout:XMe,kStrictContentLength:jk,kMaxRequests:mZ,kCounter:ZMe,kMaxResponseSize:eLe,kOnError:gZ,kResume:wh,kHTTPContext:BZ}=tr(),Qn=lX(),yZ=Buffer.alloc(0),VB=Buffer[Symbol.species],$B=qe.addListener,tLe=qe.removeAllListeners,Vk;async function rLe(){let t=process.env.JEST_WORKER_ID?Nk():void 0,e;try{e=await WebAssembly.compile(dX())}catch{e=await WebAssembly.compile(t||Nk())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,i)=>0,wasm_on_status:(r,s,i)=>{Re(fr.ptr===r);let n=s-ac+oc.byteOffset;return fr.onStatus(new VB(oc.buffer,n,i))||0},wasm_on_message_begin:r=>(Re(fr.ptr===r),fr.onMessageBegin()||0),wasm_on_header_field:(r,s,i)=>{Re(fr.ptr===r);let n=s-ac+oc.byteOffset;return fr.onHeaderField(new VB(oc.buffer,n,i))||0},wasm_on_header_value:(r,s,i)=>{Re(fr.ptr===r);let n=s-ac+oc.byteOffset;return fr.onHeaderValue(new VB(oc.buffer,n,i))||0},wasm_on_headers_complete:(r,s,i,n)=>(Re(fr.ptr===r),fr.onHeadersComplete(s,!!i,!!n)||0),wasm_on_body:(r,s,i)=>{Re(fr.ptr===r);let n=s-ac+oc.byteOffset;return fr.onBody(new VB(oc.buffer,n,i))||0},wasm_on_message_complete:r=>(Re(fr.ptr===r),fr.onMessageComplete()||0)}})}var $k=null,Jk=rLe();Jk.catch();var fr=null,oc=null,jB=0,ac=null,sLe=0,rC=1,KA=2|rC,WB=4|rC,Yk=8|sLe,Wk=class{constructor(e,r,{exports:s}){Re(Number.isFinite(e[zk])&&e[zk]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Qn.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.hea Line truncated
`;if(typeof i=="string"?m+=`host: ${i}\r
`:m+=t[jMe],n?m+=`connection: upgrade\r
upgrade: ${n}\r
`:t[YB]&&!f[Xi]?m+=`connection: keep-alive\r
`:m+=`connection: close\r
`,Array.isArray(l))for(let E=0;E<l.length;E+=2){let y=l[E+0],C=l[E+1];if(Array.isArray(C))for(let w=0;w<C.length;w++)m+=`${y}: ${C[w]}\r
`;else m+=`${y}: ${C}\r
`}return fZ.sendHeaders.hasSubscribers&&fZ.sendHeaders.publish({request:e,headers:m,socket:f}),!c||d===0?CZ(p,null,t,e,f,u,m,h):qe.isBuffer(c)?CZ(p,c,t,e,f,u,m,h):qe.isBlobLike(c)?typeof c.stream=="function"?IZ(p,c.stream(),t,e,f,u,m,h):lLe(p,c,t,e,f,u,m,h):qe.isStream(c)?cLe(p,c,t,e,f,u,m,h):qe.isIterable(c)?IZ(p,c,t,e,f,u,m,h):Re(!1),!0}function cLe(t,e,r,s,i,n,o,a){Re(n!==0||r[Vs]===0,"stream body cannot be pipelined");let c=!1,l=new ZB({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:a,header:o}),u=function(p){if(!c)try{!l.write(p)&&this.pause&&this.pause()}catch(m){qe.destroy(this,m)}},h=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!c){let p=new bZ;queueMicrotask(()=>f(p))}},f=function(p){if(!c){if(c=!0,Re(i.destroyed||i[Bh]&&r[Vs]<=1),i.off("drain",h).off("error",f),e.removeListener("data",u).removeListener("end",f).removeListener("close",d),!p)try{l.end()}catch(m){p=m}l.destroy(p),p&&(p.code!=="UND_ERR_INFO"||p.message!=="reset")?qe.destroy(e,p):qe.destroy(e)}};e.on("data",u).on("end",f).on("error",f).on("close",d),e.resume&&e.resume(),i.on("drain",h).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function CZ(t,e,r,s,i,n,o,a){try{e?qe.isBuffer(e)&&(Re(n===e.byteLength,"buffer body must have content length"),i.cork(),i.write(`${o}content-length: ${n}\r
`);p.push(C,E,f),typeof E.size=="number"?i+=C.byteLength+E.size+f.byteLength:m=!0}let g=_E.encode(`--${l}--\r
`);p.push(g),i+=g.byteLength,m&&(i=null),n=t,s=o(async function*(){for(let y of p)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${l}`}else if(dH(t))n=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Af.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:SAe(t)}if((typeof n=="string"||Af.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let l;r=new ReadableStream({async start(){l=s(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:A}=await l.next();if(A)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!hH(r)){let p=new Uint8Array(d);p.byteLength&&u.enqueue(p)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:n,length:i},a]}o(EH,"extractBody");function LAe(t,e=!1){return t instanceof ReadableStream&&(Dx(!Af.isDisturbed(t),"The body has already been consumed."),Dx(!t.locked,"The stream is locked.")),EH(t,e)}o(LAe,"safelyExtractBody");function FAe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}o(FAe,"cloneBody");function UAe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(UAe,"throwIfAborted");function qAe(t){return{blob(){return nd(this,r=>{let s=pH(this);return s===null?s="":s&&(s=DAe(s)),new PAe([r],{type:s})},t)},arrayBuffer(){return nd(this,r=>new Uint8Array(r).buffer,t)},text(){return nd(this,fH,t)},json(){return nd(this,HAe,t)},formData(){return nd(this,r=>{let s=pH(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=OAe(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new AH;return i[id]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new AH;for(let[a,c]of n)i.append(a,c);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return nd(this,r=>new Uint8Array(r),t)}}}o(qAe,"bodyMixinMethods");function GAe(t){Object.assign(t.prototype,qAe(t))}o(GAe,"mixinBody");async function nd(t,e,r){if(vAe.brandCheck(t,r),yH(t))throw new TypeError("Body is unusable: Body has already been read");UAe(t[id]);let s=QAe(),n=o(a=>s.reject(a),"errorSteps"),i=o(a=>{try{s.resolve(e(a))}catch(c){n(c)}},"successSteps");return t[id].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await RAe(t[id].body,i,n),s.promise)}o(nd,"consumeBody");function yH(t){let e=t[id].body;return e!=null&&(e.stream.locked||Af.isDisturbed(e.stream))}o(yH,"bodyUnusable");function HAe(t){return JSON.parse(fH(t))}o(HAe,"parseJSONFromBytes");function pH(t){let e=t[id].headersList,r=TAe(e);return r==="failure"?null:r}o(pH,"bodyMimeType");CH.exports={extractBody:EH,safelyExtractBody:LAe,cloneBody:FAe,mixinBody:GAe,streamRegistry:gH,hasFinalizationRegistry:mH,bodyUnusable:yH}});var OH=h(($4e,DH)=>{"use strict";var j=require("node:assert"),Z=Ce(),{channels:IH}=Yu(),Mx=Ex(),{RequestContentLengthMismatchError:nl,ResponseContentLengthMismatchError:BH,RequestAbortedError:TH,HeadersTimeoutError:VAe,HeadersOverflowError:zAe,SocketError:ad,InformationalError:cd,BodyTimeoutError:JAe,HTTPParserError:YAe,ResponseExceededMaxSizeError:$Ae}=Te(),{kUrl:vH,kReset:es,kClient:ME,kParser:Xe,kBlocking:hf,kRunning:Ft,kPending:PH,kSize:bH,kWriting:Ha,kQueue:zn,kNoRef:pf,kKeepAliveDefaultTimeout:WAe,kHostHeader:jAe,kPendingIdx:KAe,kRunningIdx:nn,kError:_r,kPipelining:LE,kSocket:ol,kKeepAliveTimeoutValue:UE,kMaxHeadersSize:Lx,kKeepAliveMaxTimeout:XAe,kKeepAliveTimeoutThreshold:ZAe,kHeadersTimeout:epe,kBodyTimeout:tpe,kStrictContentLength:qx,kMaxRequests:wH,kCounter:rpe,kMaxResponseSize:spe,kOnError:SH,kResume:Jo,kHTTPContext:_H}=ot(),Ns=gG(),NH=Buffer.alloc(0),kE=Buffer[Symbol.species],DE=Z.addListener,npe=Z.removeAllListeners,al=Symbol("kIdleSocketValidation"),il=Symbol("kIdleSocketValidationTimeout"),zx=Symbol("kSocketUsed"),Fx;async function ipe(){let t=process.env.JEST_WORKER_ID?Ix():void 0,e;try{e=await WebAssembly.compile(CG())}catch{e=await WebAssembly.compile(t||Ix())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,s,n)=>0,"wasm_on_url"),wasm_on_status:o((r,s,n)=>{j(Et.ptr===r);let i=s-Ni+Si.byteOffset;return Et.onStatus(new kE(Si.buffer,i,n))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(j(Et.ptr===r),Et.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,s,n)=>{j(Et.ptr===r);let i=s-Ni+Si.byteOffset;return Et.onHeaderField(new kE(Si.buffer,i,n))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,s,n)=>{j(Et.ptr===r);let i=s-Ni+Si.byteOffset;return Et.onHeaderValue(new kE(Si.buffer,i,n))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,s,n,i)=>(j(Et.ptr===r),Et.onHeadersComplete(s,!!n,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,s,n)=>{j(Et.ptr===r);let i=s-Ni+Si.byteOffset;return Et.onBody(new kE(Si.buffer,i,n)) Line truncated
`;if(typeof n=="string"?g+=`host: ${n}\r
`:g+=t[jAe],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[LE]&&!f[es]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(u))for(let y=0;y<u.length;y+=2){let E=u[y+0],C=u[y+1];if(Array.isArray(C))for(let I=0;I<C.length;I++)g+=`${E}: ${C[I]}\r
`;else g+=`${E}: ${C}\r
`}return IH.sendHeaders.hasSubscribers&&IH.sendHeaders.publish({request:e,headers:g,socket:f}),!l||p===0?QH(m,null,t,e,f,d,g,A):Z.isBuffer(l)?QH(m,l,t,e,f,d,g,A):Z.isBlobLike(l)?typeof l.stream=="function"?RH(m,l.stream(),t,e,f,d,g,A):ppe(m,l,t,e,f,d,g,A):Z.isStream(l)?Ape(m,l,t,e,f,d,g,A):Z.isIterable(l)?RH(m,l,t,e,f,d,g,A):j(!1),!0}o(dpe,"writeH1");function Ape(t,e,r,s,n,i,a,c){j(i!==0||r[Ft]===0,"stream body cannot be pipelined");let l=!1,u=new qE({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a}),d=o(function(m){if(!l)try{!u.write(m)&&this.pause&&this.pause()}catch(g){Z.destroy(this,g)}},"onData"),A=o(function(){l||e.resume&&e.resume()},"onDrain"),p=o(function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!l){let m=new TH;queueMicrotask(()=>f(m))}},"onClose"),f=o(function(m){if(!l){if(l=!0,j(n.destroyed||n[Ha]&&r[Ft]<=1),n.off("drain",A).off("error",f),e.removeListener("data",d).removeListener("end",f).removeListener("close",p),!m)try{u.end()}catch(g){m=g}u.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?Z.destroy(e,m):Z.destroy(e)}},"onFinished");e.on("data",d).on("end",f).on("error",f).on("close",p),e.resume&&e.resume(),n.on("drain",A).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(p)}o(Ape,"writeStream");function QH(t,e,r,s,n,i,a,c){try{e?Z.isBuffer(e)&&(j(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${a}content-length: ${i}\r
\r
`,"latin1"),i.write(e),i.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(i[Xi]=!0)):n===0?i.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!c&&s.reset!==!1&&(n[es]=!0)):i===0?n.write(`${a}content-length: 0\r
\r
`,"latin1"):(Re(n===null,"no body must not have content length"),i.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[wh]()}catch(c){t(c)}}async function lLe(t,e,r,s,i,n,o,a){Re(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new df;let c=Buffer.from(await e.arrayBuffer());i.cork(),i.write(`${o}content-length: ${n}\r
`,"latin1"):(j(i===null,"no body must not have content length"),n.write(`${a}\r
`,"latin1")),s.onRequestSent(),r[Jo]()}catch(l){t(l)}}o(QH,"writeBuffer");async function ppe(t,e,r,s,n,i,a,c){j(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new nl;let l=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${a}content-length: ${i}\r
\r
`,"latin1"),i.write(c),i.uncork(),s.onBodySent(c),s.onRequestSent(),!a&&s.reset!==!1&&(i[Xi]=!0),r[wh]()}catch(c){t(c)}}async function IZ(t,e,r,s,i,n,o,a){Re(n!==0||r[Vs]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,f)=>{Re(c===null),i[gi]?f(i[gi]):c=d});i.on("close",l).on("drain",l);let h=new ZB({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(i[gi])throw i[gi];h.write(d)||await u()}h.end()}catch(d){h.destroy(d)}finally{i.off("close",l).off("drain",l)}}var ZB=class{constructor({abort:e,socket:r,request:s,contentLength:i,client:n,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=i,this.client=n,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Bh]=!0}write(e){let{socket:r,request:s,contentLength:i,client:n,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[gi])throw r[gi];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(i!==null&&o+l>i){if(n[jk])throw new df;process.emitWarning(new df)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Xi]=!0),i===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${i}\r
`,"latin1"),n.write(l),n.uncork(),s.onBodySent(l),s.onRequestSent(),!c&&s.reset!==!1&&(n[es]=!0),r[Jo]()}catch(l){t(l)}}o(ppe,"writeBlob");async function RH(t,e,r,s,n,i,a,c){j(i!==0||r[Ft]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}o(u,"onDrain");let d=o(()=>new Promise((p,f)=>{j(l===null),n[_r]?f(n[_r]):l=p}),"waitForDrain");n.on("close",u).on("drain",u);let A=new qE({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(n[_r])throw n[_r];A.write(p)||await d()}A.end()}catch(p){A.destroy(p)}finally{n.off("close",u).off("drain",u)}}o(RH,"writeIterable");var qE=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Ha]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[_r])throw r[_r];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&a+u>n){if(i[qx])throw new nl;process.emitWarning(new nl)}r.cork(),a===0&&(!c&&s.reset!==!1&&(r[es]=!0),n===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"):r.write(`${l}content-length: ${n}\r
\r
`,"latin1")),i===null&&r.write(`\r
${l.toString(16)}\r
`,"latin1"),this.bytesWritten+=l;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[pr].timeout&&r[pr].timeoutType===KA&&r[pr].timeout.refresh&&r[pr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:i,expectsPayload:n,header:o,request:a}=this;if(a.onRequestSent(),e[Bh]=!1,e[gi])throw e[gi];if(!e.destroyed){if(i===0?n?e.write(`${o}content-length: 0\r
`,"latin1")),n===null&&r.write(`\r
${u.toString(16)}\r
`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),s.onBodySent(e),d||r[Xe].timeout&&r[Xe].timeoutType===ld&&r[Xe].timeout.refresh&&r[Xe].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[Ha]=!1,e[_r])throw e[_r];if(!e.destroyed){if(n===0?i?e.write(`${a}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):e.write(`${a}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&i!==r){if(s[jk])throw new df;process.emitWarning(new df)}e[pr].timeout&&e[pr].timeoutType===KA&&e[pr].timeout.refresh&&e[pr].timeout.refresh(),s[wh]()}}destroy(e){let{socket:r,client:s,abort:i}=this;r[Bh]=!1,e&&(Re(s[Vs]<=1,"pipeline should only contain this request"),i(e))}};SZ.exports=iLe});var OZ=A((S1t,PZ)=>{"use strict";var wo=require("node:assert"),{pipeline:uLe}=require("node:stream"),lt=st(),{RequestContentLengthMismatchError:Kk,RequestAbortedError:NZ,SocketError:iC,InformationalError:Xk}=yt(),{kUrl:eS,kReset:rS,kClient:XA,kRunning:sS,kPending:hLe,kQueue:Sh,kPendingIdx:Zk,kRunningIdx:Ia,kError:wa,kSocket:fs,kStrictContentLength:dLe,kOnError:eM,kMaxConcurrentStreams:QZ,kHTTP2Session:ba,kResume:xh,kSize:fLe,kHTTPContext:pLe}=tr(),Jl=Symbol("open streams"),RZ,vZ=!1,tS;try{tS=require("node:http2")}catch{tS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:ALe,HTTP2_HEADER_METHOD:mLe,HTTP2_HEADER_PATH:gLe,HTTP2_HEADER_SCHEME:yLe,HTTP2_HEADER_CONTENT_LENGTH:ELe,HTTP2_HEADER_EXPECT:CLe,HTTP2_HEADER_STATUS:ILe}}=tS;function bLe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let i of s)e.push(Buffer.from(r),Buffer.from(i));else e.push(Buffer.from(r),Buffer.from(s));return e}async function wLe(t,e){t[fs]=e,vZ||(vZ=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=tS.connect(t[eS],{createConnection:()=>e,peerMaxConcurrentStreams:t[QZ]});r[Jl]=0,r[XA]=t,r[fs]=e,lt.addListener(r,"error",SLe),lt.addListener(r,"frameError",xLe),lt.addListener(r,"end",NLe),lt.addListener(r,"goaway",RLe),lt.addListener(r,"close",function(){let{[XA]:i}=this,{[fs]:n}=i,o=this[fs][wa]||this[wa]||new iC("closed",lt.getSocketInfo(n));if(i[ba]=null,i.destroyed){wo(i[hLe]===0);let a=i[Sh].splice(i[Ia]);for(let c=0;c<a.length;c++){let l=a[c];lt.errorRequest(i,l,o)}}}),r.unref(),t[ba]=r,e[ba]=r,lt.addListener(e,"error",function(i){wo(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[wa]=i,this[XA][eM](i)}),lt.addListener(e,"end",function(){lt.destroy(this,new iC("other side closed",lt.getSocketInfo(this)))}),lt.addListener(e,"close",function(){let i=this[wa]||new iC("closed",lt.getSocketInfo(this));t[fs]=null,this[ba]!=null&&this[ba].destroy(i),t[Zk]=t[Ia],wo(t[sS]===0),t.emit("disconnect",t[eS],[t],i),t[xh]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return TLe(t,...i)},resume(){BLe(t)},destroy(i,n){s?queueMicrotask(n):e.destroy(i).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}function BLe(t){let e=t[fs];e?.destroyed===!1&&(t[fLe]===0&&t[QZ]===0?(e.unref(),t[ba].unref()):(e.ref(),t[ba].ref()))}function SLe(t){wo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[fs][wa]=t,this[XA][eM](t)}function xLe(t,e,r){if(r===0){let s=new Xk(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[fs][wa]=s,this[XA][eM](s)}}function NLe(){let t=new iC("other side closed",lt.getSocketInfo(this[fs]));this.destroy(t),lt.destroy(this[fs],t)}function RLe(t){let e=this[wa]||new iC(`HTTP/2: "GOAWAY" frame received with code ${t}`,lt.getSocketInfo(this)),r=this[XA];if(r[fs]=null,r[pLe]=null,this[ba]!=null&&(this[ba].destroy(e),this[ba]=null),lt.destroy(this[fs],e),r[Ia]<r[Sh].length){let s=r[Sh][r[Ia]];r[Sh][r[Ia]++]=null,lt.errorRequest(r,s,e),r[Zk]=r[Ia]}wo(r[sS]===0),r.emit("disconnect",r[eS],[r],e),r[xh]()}function vLe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function TLe(t,e){let r=t[ba],{method:s,path:i,host:n,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:u}=e;if(o)return lt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let h={};for(let S=0;S<l.length;S+=2){let N=l[S+0],P=l[S+1];if(Array.isArray(P))for(let Q=0;Q<P.length;Q++)h[N]?h[N]+=`,${P[Q]}`:h[N]=P[Q];else h[N]=P}let d,{hostname:f,port:p}=t[eS];h[ALe]=n||`${f}${p?`:${p}`:""}`,h[mLe]=s;let m=S=>{e.aborted||e.completed||(S=S||new NZ,lt.errorRequest(t,e,S),d!=null&&lt.destroy(d,S),lt.destroy(u,S),t[Sh][t[Ia]++]=null,t[xh]())};try{e.onConnect(m)}catch(S){lt.errorRequest(t,e,S)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),d=r.request(h,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Jl],t[Sh][t[Ia]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Jl],t[Sh][t[Ia]++]=null}),d.once("close",()=>{r[Jl]-=1,r[Jl]===0&&r.unref()}),!0;h[gLe]=i,h[yLe]="https";let E=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let y=lt.bodyLength(u);if(lt.isFormDataLike(u)){RZ??=JA().extractBody;let[S,N]=RZ(u);h["content-type"]=N,u=S.stream,y=S.length}if(y==null&&(y=e.contentLength),(y===0||!E)&&(y=null),vLe(s)&&y>0&&e.contentLength!=null&&e.contentLength!==y){if(t[dLe])return lt.errorRequest(t,e,new Kk),!1;process.emitWarning(new Kk)}y!=null&&(wo(u,"no body must not have content length"),h[ELe]=`${y}`),r.ref();let C=s==="GET"||s==="HEAD"||u===null;return a?(h[CLe]="100-continue",d=r.request(h,{endStream:C,signal:c}),d.once(" Line truncated
`,this[r2e]=c??3e5,this[t2e]=i??3e5,this[s2e]=C??!0,this[i2e]=S,this[iM]=P,this[Rh]=null,this[l2e]=k>-1?k:-1,this[h2e]=L??100,this[Tr]=null,this[Ba]=[],this[Wl]=0,this[Sa]=0,this[cC]=V=>oM(this,V),this[u2e]=V=>$Z(this,V)}get pipelining(){return this[aS]}set pipelining(e){this[aS]=e,this[cC](!0)}get[hC](){return this[Ba].length-this[Sa]}get[uC](){return this[Sa]-this[Wl]}get[lC](){return this[Ba].length-this[Wl]}get[JLe](){return!!this[Tr]&&!this[em]&&!this[Tr].destroyed}get[sM](){return!!(this[Tr]?.busy(null)||this[lC]>=(VZ(this)||1)||this[hC]>0)}[jLe](e){jZ(this),this.once("connect",e)}[c2e](e,r){let s=e.origin||this[lc].origin,i=new qLe(s,e,r);return this[Ba].push(i),this[pf]||(ff.bodyLength(i.body)==null&&ff.isIterable(i.body)?(this[pf]=1,queueMicrotask(()=>oM(this))):this[cC](!0)),this[pf]&&this[vh]!==2&&this[sM]&&(this[vh]=2),this[vh]<2}async[o2e](){return new Promise(e=>{this[lC]?this[Rh]=e:e(null)})}async[a2e](e){return new Promise(r=>{let s=this[Ba].splice(this[Sa]);for(let n=0;n<s.length;n++){let o=s[n];ff.errorRequest(this,o,e)}let i=()=>{this[Rh]&&(this[Rh](),this[Rh]=null),r(null)};this[Tr]?(this[Tr].destroy(e,i),this[Tr]=null):queueMicrotask(i),this[cC]()})}},p2e=oS();function $Z(t,e){if(t[uC]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Yl(t[Sa]===t[Wl]);let r=t[Ba].splice(t[Wl]);for(let s=0;s<r.length;s++){let i=r[s];ff.errorRequest(t,i,e)}Yl(t[lC]===0)}}async function jZ(t){Yl(!t[em]),Yl(!t[Tr]);let{host:e,hostname:r,protocol:s,port:i}=t[lc];if(r[0]==="["){let n=r.indexOf("]");Yl(n!==-1);let o=r.substring(1,n);Yl(zZ.isIP(o)),r=o}t[em]=!0,ZA.beforeConnect.hasSubscribers&&ZA.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:i,version:t[Tr]?.version,servername:t[Nh],localAddress:t[aC]},connector:t[oC]});try{let n=await new Promise((o,a)=>{t[oC]({host:e,hostname:r,protocol:s,port:i,servername:t[Nh],localAddress:t[aC]},(c,l)=>{c?a(c):o(l)})});if(t.destroyed){ff.destroy(n.on("error",GZ),new zLe);return}Yl(n);try{t[Tr]=n.alpnProtocol==="h2"?await f2e(t,n):await d2e(t,n)}catch(o){throw n.destroy().on("error",GZ),o}t[em]=!1,n[n2e]=0,n[iM]=t[iM],n[$Le]=t,n[WLe]=null,ZA.connected.hasSubscribers&&ZA.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:i,version:t[Tr]?.version,servername:t[Nh],localAddress:t[aC]},connector:t[oC],socket:n}),t.emit("connect",t[lc],[t])}catch(n){if(t.destroyed)return;if(t[em]=!1,ZA.connectError.hasSubscribers&&ZA.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:i,version:t[Tr]?.version,servername:t[Nh],localAddress:t[aC]},connector:t[oC],error:n}),n.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Yl(t[uC]===0);t[hC]>0&&t[Ba][t[Sa]].servername===t[Nh];){let o=t[Ba][t[Sa]++];ff.errorRequest(t,o,n)}else $Z(t,n);t.emit("connectionError",t[lc],[t],n)}t[cC]()}function HZ(t){t[vh]=0,t.emit("drain",t[lc],[t])}function oM(t,e){t[pf]!==2&&(t[pf]=2,A2e(t,e),t[pf]=0,t[Wl]>256&&(t[Ba].splice(0,t[Wl]),t[Sa]-=t[Wl],t[Wl]=0))}function A2e(t,e){for(;;){if(t.destroyed){Yl(t[hC]===0);return}if(t[Rh]&&!t[lC]){t[Rh](),t[Rh]=null;return}if(t[Tr]&&t[Tr].resume(),t[sM])t[vh]=2;else if(t[vh]===2){e?(t[vh]=1,queueMicrotask(()=>HZ(t))):HZ(t);continue}if(t[hC]===0||t[uC]>=(VZ(t)||1))return;let r=t[Ba][t[Sa]];if(t[lc].protocol==="https:"&&t[Nh]!==r.servername){if(t[uC]>0)return;t[Nh]=r.servername,t[Tr]?.destroy(new HLe("servername changed"),()=>{t[Tr]=null,oM(t)})}if(t[em])return;if(!t[Tr]){jZ(t);return}if(t[Tr].destroyed||t[Tr].busy(r))return;!r.aborted&&t[Tr].write(r)?t[Sa]++:t[Ba].splice(t[Sa],1)}}JZ.exports=nM});var aM=A((T1t,YZ)=>{"use strict";var cS=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)}};YZ.exports=class{constructor(){this.head=this.tail=new cS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new cS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var KZ=A((_1t,WZ)=>{var{kFree:m2e,kConnected:g2e,kPending:y2e,kQueued:E2e,kRunning:C2e,kSize:I2e}=tr(),Af=Symbol("pool"),cM=class{constructor(e){this[Af]=e}get connected(){return this[Af][g2e]}get free(){return this[Af][m2e]}get pending(){return this[Af][y2e]}get queued(){return this[Af][E2e]}get running(){return this[Af][C2e]}get size(){return this[Af][I2e]}};WZ.exports=cM});var pM=A((Q1t,a7)=>{"use strict";var b2e=UA(),w2e=aM(),{kConnected:lM,kSize:XZ,kRunning:ZZ,kPending:e7,kQueued:dC,kBusy:B2e,kFree:S2e,kUrl:x2e,kClose:N2e,kDestroy:R2e,kDispatch:v2e}=tr(),T2e=KZ(),Zi=Symbol("clients"),yi=Symbol("needDrain"),fC=Symbol("queue"),uM=Symbol("closed resolve"),hM=Symbol("onDrain"),t7=Symbol("onConnect"),r7=Symbol("onDisconnect"),s7=Symbol("onConnectionError"),dM=Symbol("get d Line truncated
`,"latin1"),r!==null&&n!==r){if(s[qx])throw new nl;process.emitWarning(new nl)}e[Xe].timeout&&e[Xe].timeoutType===ld&&e[Xe].timeout.refresh&&e[Xe].timeout.refresh(),s[Jo]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Ha]=!1,e&&(j(s[Ft]<=1,"pipeline should only contain this request"),n(e))}};DH.exports=ape});var VH=h((j4e,HH)=>{"use strict";var on=require("node:assert"),{pipeline:fpe}=require("node:stream"),be=Ce(),{RequestContentLengthMismatchError:Jx,RequestAbortedError:MH,SocketError:mf,InformationalError:Yx}=Te(),{kUrl:GE,kReset:VE,kClient:ud,kRunning:zE,kPending:hpe,kQueue:Va,kPendingIdx:$x,kRunningIdx:Jn,kError:$n,kSocket:nr,kStrictContentLength:mpe,kOnError:Wx,kMaxConcurrentStreams:GH,kHTTP2Session:Yn,kResume:za,kSize:gpe,kHTTPContext:Epe}=ot(),Yo=Symbol("open streams"),LH,FH=!1,HE;try{HE=require("node:http2")}catch{HE={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:ype,HTTP2_HEADER_METHOD:Cpe,HTTP2_HEADER_PATH:Ipe,HTTP2_HEADER_SCHEME:Bpe,HTTP2_HEADER_CONTENT_LENGTH:bpe,HTTP2_HEADER_EXPECT:wpe,HTTP2_HEADER_STATUS:Spe}}=HE;function Npe(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}o(Npe,"parseH2Headers");async function xpe(t,e){t[nr]=e,FH||(FH=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=HE.connect(t[GE],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[GH]});r[Yo]=0,r[ud]=t,r[nr]=e,be.addListener(r,"error",Rpe),be.addListener(r,"frameError",Tpe),be.addListener(r,"end",vpe),be.addListener(r,"goaway",Ppe),be.addListener(r,"close",function(){let{[ud]:n}=this,{[nr]:i}=n,a=this[nr][$n]||this[$n]||new mf("closed",be.getSocketInfo(i));if(n[Yn]=null,n.destroyed){on(n[hpe]===0);let c=n[Va].splice(n[Jn]);for(let l=0;l<c.length;l++){let u=c[l];be.errorRequest(n,u,a)}}}),r.unref(),t[Yn]=r,e[Yn]=r,be.addListener(e,"error",function(n){on(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[$n]=n,this[ud][Wx](n)}),be.addListener(e,"end",function(){be.destroy(this,new mf("other side closed",be.getSocketInfo(this)))}),be.addListener(e,"close",function(){let n=this[$n]||new mf("closed",be.getSocketInfo(this));t[nr]=null,this[Yn]!=null&&this[Yn].destroy(n),t[$x]=t[Jn],on(t[zE]===0),t.emit("disconnect",t[GE],[t],n),t[za]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return kpe(t,...n)},resume(){Qpe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(xpe,"connectH2");function Qpe(t){let e=t[nr];e?.destroyed===!1&&(t[gpe]===0&&t[GH]===0?(e.unref(),t[Yn].unref()):(e.ref(),t[Yn].ref()))}o(Qpe,"resumeH2");function Rpe(t){on(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[nr][$n]=t,this[ud][Wx](t)}o(Rpe,"onHttp2SessionError");function Tpe(t,e,r){if(r===0){let s=new Yx(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[nr][$n]=s,this[ud][Wx](s)}}o(Tpe,"onHttp2FrameError");function vpe(){let t=new mf("other side closed",be.getSocketInfo(this[nr]));this.destroy(t),be.destroy(this[nr],t)}o(vpe,"onHttp2SessionEnd");function Ppe(t){let e=this[$n]||new mf(`HTTP/2: "GOAWAY" frame received with code ${t}`,be.getSocketInfo(this)),r=this[ud];if(r[nr]=null,r[Epe]=null,this[Yn]!=null&&(this[Yn].destroy(e),this[Yn]=null),be.destroy(this[nr],e),r[Jn]<r[Va].length){let s=r[Va][r[Jn]];r[Va][r[Jn]++]=null,be.errorRequest(r,s,e),r[$x]=r[Jn]}on(r[zE]===0),r.emit("disconnect",r[GE],[r],e),r[za]()}o(Ppe,"onHTTP2GoAway");function _pe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(_pe,"shouldSendContentLength");function kpe(t,e){let r=t[Yn],{method:s,path:n,host:i,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return be.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let B=0;B<u.length;B+=2){let N=u[B+0],Q=u[B+1];if(Array.isArray(Q))for(let D=0;D<Q.length;D++)A[N]?A[N]+=`,${Q[D]}`:A[N]=Q[D];else A[N]=Q}let p,{hostname:f,port:m}=t[GE];A[ype]=i||`${f}${m?`:${m}`:""}`,A[Cpe]=s;let g=o(B=>{e.aborted||e.completed||(B=B||new MH,be.errorRequest(t,e,B),p!=null&&be.destroy(p,B),be.destroy(d,B),t[Va][t[Jn]++]=null,t[za]())},"abort");try{e.onConnect(g)}catch(B){be.errorRequest(t,e,B)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),p=r.request(A,{endStream:!1,signal:l}),p.id&&!p.pending?(e.onUpgrade(null,null,p),++r[Yo],t[Va][t[Jn]++]=null):p.once("ready",()=>{e.onUpgrade(null,null,p),++r[Yo],t[Va][t[Jn]++]=null}),p.once("close",()=>{r[Yo]-=1,r[Yo]===0&&r.unref()}),!0;A[Ipe]=n,A[Bpe]="https";let y=s==="PUT"||s==="POST"||s==="PATCH";d&&typeof d.read=="function"&&d.read(0);let E=be.bodyLength(d);if(be.isFormDataLike(d)){LH??=od().extractBody;let[B,N]=LH(d);A["content-type"]=N,d=B.stream,E=B.length}if(E==null&&(E=e.contentLength),(E===0||!y)&&(E=null),_pe(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[mpe])return be.errorRequest(t,e,n Line truncated
`,this[ofe]=l??3e5,this[ife]=n??3e5,this[afe]=C??!0,this[cfe]=B,this[Zx]=Q,this[Ya]=null,this[pfe]=le>-1?le:-1,this[hfe]=Oe??100,this[Rt]=null,this[Wn]=[],this[Wo]=0,this[jn]=0,this[Cf]=ue=>tQ(this,ue),this[ffe]=ue=>rV(this,ue)}get pipelining(){return this[WE]}set pipelining(e){this[WE]=e,this[Cf](!0)}get[bf](){return this[Wn].length-this[jn]}get[Bf](){return this[jn]-this[Wo]}get[If](){return this[Wn].length-this[Wo]}get[Xpe](){return!!this[Rt]&&!this[Ad]&&!this[Rt].destroyed}get[Xx](){return!!(this[Rt]?.busy(null)||this[If]>=(tV(this)||1)||this[bf]>0)}[Kpe](e){sV(this),this.once("connect",e)}[Afe](e,r){let s=e.origin||this[Qi].origin,n=new zpe(s,e,r);return this[Wn].push(n),this[ll]||(cl.bodyLength(n.body)==null&&cl.isIterable(n.body)?(this[ll]=1,queueMicrotask(()=>tQ(this))):this[Cf](!0)),this[ll]&&this[$a]!==2&&this[Xx]&&(this[$a]=2),this[$a]<2}async[ufe](){return new Promise(e=>{this[If]?this[Ya]=e:e(null)})}async[dfe](e){return new Promise(r=>{let s=this[Wn].splice(this[jn]);for(let i=0;i<s.length;i++){let a=s[i];cl.errorRequest(this,a,e)}let n=o(()=>{this[Ya]&&(this[Ya](),this[Ya]=null),r(null)},"callback");this[Rt]?(this[Rt].destroy(e,n),this[Rt]=null):queueMicrotask(n),this[Cf]()})}},Efe=$E();function rV(t,e){if(t[Bf]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){$o(t[jn]===t[Wo]);let r=t[Wn].splice(t[Wo]);for(let s=0;s<r.length;s++){let n=r[s];cl.errorRequest(t,n,e)}$o(t[If]===0)}}o(rV,"onError");async function sV(t){$o(!t[Ad]),$o(!t[Rt]);let{host:e,hostname:r,protocol:s,port:n}=t[Qi];if(r[0]==="["){let i=r.indexOf("]");$o(i!==-1);let a=r.substring(1,i);$o(eV.isIP(a)),r=a}t[Ad]=!0,dd.beforeConnect.hasSubscribers&&dd.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Rt]?.version,servername:t[Ja],localAddress:t[yf]},connector:t[Ef]});try{let i=await new Promise((a,c)=>{t[Ef]({host:e,hostname:r,protocol:s,port:n,servername:t[Ja],localAddress:t[yf]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){cl.destroy(i.on("error",XH),new $pe);return}$o(i);try{t[Rt]=i.alpnProtocol==="h2"?await gfe(t,i):await mfe(t,i)}catch(a){throw i.destroy().on("error",XH),a}t[Ad]=!1,i[lfe]=0,i[Zx]=t[Zx],i[jpe]=t,i[efe]=null,dd.connected.hasSubscribers&&dd.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Rt]?.version,servername:t[Ja],localAddress:t[yf]},connector:t[Ef],socket:i}),t.emit("connect",t[Qi],[t])}catch(i){if(t.destroyed)return;if(t[Ad]=!1,dd.connectError.hasSubscribers&&dd.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Rt]?.version,servername:t[Ja],localAddress:t[yf]},connector:t[Ef],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for($o(t[Bf]===0);t[bf]>0&&t[Wn][t[jn]].servername===t[Ja];){let a=t[Wn][t[jn]++];cl.errorRequest(t,a,i)}else rV(t,i);t.emit("connectionError",t[Qi],[t],i)}t[Cf]()}o(sV,"connect");function ZH(t){t[$a]=0,t.emit("drain",t[Qi],[t])}o(ZH,"emitDrain");function tQ(t,e){t[ll]!==2&&(t[ll]=2,yfe(t,e),t[ll]=0,t[Wo]>256&&(t[Wn].splice(0,t[Wo]),t[jn]-=t[Wo],t[Wo]=0))}o(tQ,"resume");function yfe(t,e){for(;;){if(t.destroyed){$o(t[bf]===0);return}if(t[Ya]&&!t[If]){t[Ya](),t[Ya]=null;return}if(t[Rt]&&t[Rt].resume(),t[Xx])t[$a]=2;else if(t[$a]===2){e?(t[$a]=1,queueMicrotask(()=>ZH(t))):ZH(t);continue}if(t[bf]===0||t[Bf]>=(tV(t)||1))return;let r=t[Wn][t[jn]];if(t[Qi].protocol==="https:"&&t[Ja]!==r.servername){if(t[Bf]>0)return;t[Ja]=r.servername,t[Rt]?.destroy(new Ype("servername changed"),()=>{t[Rt]=null,tQ(t)})}if(t[Ad])return;if(!t[Rt]){sV(t);return}if(t[Rt].destroyed||t[Rt].busy(r))return;!r.aborted&&t[Rt].write(r)?t[jn]++:t[Wn].splice(t[jn],1)}}o(yfe,"_resume");nV.exports=eQ});var rQ=h((i5e,iV)=>{"use strict";var jE=class{static{o(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};iV.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new jE}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new jE),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var aV=h((a5e,oV)=>{var{kFree:Cfe,kConnected:Ife,kPending:Bfe,kQueued:bfe,kRunning:wfe,kSize:Sfe}=ot(),ul=Symbol("pool"),sQ=class{static{o(this,"PoolStats")}constructor(e){this[ul]=e}get connected(){return this[ul][Ife]}get free(){return this[ul][Cfe]}get pending(){return this[ul][Bfe]}get queued(){return this[ul][bfe]}get running(){return this[ul][wfe]}get size(){return this[ul][Sfe]}};oV.exports=sQ});var lQ=h((l5e,gV)=>{"use strict";var Nfe=Ku(),xfe=rQ(),{kConnected:nQ,kSize:cV,kRunning:lV,kPending:uV,kQueued:wf,kBusy:Qfe,kFree:Rfe,kUrl:Tfe,kClose:vfe,kDestroy:Pfe,kDispatch:_fe}=ot(),kfe=aV(),ts=Symbol("cl Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};fte.exports=pL});var xS=A((oPt,yte)=>{"use strict";var Ate=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:rqe}=yt(),sqe=sm();gte()===void 0&&mte(new sqe);function mte(t){if(!t||typeof t.dispatch!="function")throw new rqe("Argument agent must implement Agent");Object.defineProperty(globalThis,Ate,{value:t,writable:!0,enumerable:!1,configurable:!1})}function gte(){return globalThis[Ate]}yte.exports={setGlobalDispatcher:mte,getGlobalDispatcher:gte}});var NS=A((cPt,Ete)=>{"use strict";Ete.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 Ite=A((lPt,Cte)=>{"use strict";var iqe=nS();Cte.exports=t=>{let e=t?.maxRedirections;return r=>function(i,n){let{maxRedirections:o=e,...a}=i;if(!o)return r(i,n);let c=new iqe(r,o,i,n);return r(a,c)}}});var wte=A((uPt,bte)=>{"use strict";var nqe=mS();bte.exports=t=>e=>function(s,i){return e(s,new nqe({...s,retryOptions:{...t,...s.retryOptions}},{handler:i,dispatch:e}))}});var Ste=A((hPt,Bte)=>{"use strict";var oqe=st(),{InvalidArgumentError:aqe,RequestAbortedError:cqe}=yt(),lqe=NS(),AL=class extends lqe{#e=1024*1024;#t=null;#s=!1;#r=!1;#i=0;#n=null;#u=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new aqe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#u=r}onConnect(e){this.#t=e,this.#u.onConnect(this.#l.bind(this))}#l(e){this.#r=!0,this.#n=e}onHeaders(e,r,s,i){let o=oqe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new cqe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#u.onHeaders(e,r,s,i)}onError(e){this.#s||(e=this.#n??e,this.#u.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#s=!0,this.#r?this.#u.onError(this.#n):this.#u.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#u.onError(this.reason);return}this.#u.onComplete(e)}}};function uqe({maxSize:t}={maxSize:1024*1024}){return e=>function(s,i){let{dumpMaxSize:n=t}=s,o=new AL({maxSize:n},i);return e(s,o)}}Bte.exports=uqe});var Rte=A((dPt,Nte)=>{"use strict";var{isIP:hqe}=require("node:net"),{lookup:dqe}=require("node:dns"),fqe=NS(),{InvalidArgumentError:fm,InformationalError:pqe}=yt(),xte=Math.pow(2,31)-1,mL=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 i=this.#s.get(e.hostname);if(i==null&&this.full){s(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(i==null)this.lookup(e,n,(o,a)=>{if(o||a==null||a.length===0){s(o??new pqe("No DNS entries found"));return}this.setRecords(e,a);let c=this.#s.get(e.hostname),l=this.pick(e,c,n.affinity),u;typeof l.port=="number"?u=`:${l.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${l.family===6?`[${l.address}]`:l.address}${u}`)});else{let o=this.pick(e,i,n.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){dqe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(i,n)=>{if(i)return s(i);let o=new Map;for(let a of n)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#i(e,r,s){let i=null,{records:n,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===xte?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),n[s]!=null&&n[s].ips.length>0?a=n[s]:a=n[s===4?6:4]):a=n[s],a==null||a.ips.length===0)return i;a.offset==null||a.offset===xte?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return i=a.ips[c]??null,i==null?i:Date.now()-i.timestamp>i.ttl?(a.ips.splice(c,1),this.pick(e,r,s)):i}setRecords(e,r){let s=Date.now(),i={records:{4:null,6:null}};for(let n of r){n.timestamp=s,typeof n.ttl=="number"?n.ttl=Math.min(n.ttl,this.#e):n.ttl=this.#e;let o=i.records[n.family]??{ips:[]};o.ips.push(n),i.records[n.family]=o}this.#s.set(e.hostname,i)}getHandler(e,r){return new gL(this,e,r)}},gL=class extends fqe{#e=null;#t=null;#s=null;#r=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:i},n){super(s),this.#i=r,this.#r=s,this.#t={...n},this.#e=e,this.#s=i}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,( Line truncated
${n}`;break;case"retry":aie(n)&&(r[i]=n);break;case"id":cie(n)&&(r[i]=n);break;case"event":n.length>0&&(r[i]=n);break}}processEvent(e){e.retry&&aie(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&cie(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}}};lie.exports={EventSourceStream:s2}});var yie=A((HPt,gie)=>{"use strict";var{pipeline:w8e}=require("node:stream"),{fetching:B8e}=xC(),{makeRequest:S8e}=mm(),{webidl:tu}=Ms(),{EventSourceStream:x8e}=uie(),{parseMIMEType:N8e}=Ki(),{createFastMessageEvent:R8e}=bm(),{isNetworkError:hie}=BC(),{delay:v8e}=t2(),{kEnumerableProperty:Tf}=st(),{environmentSettingsObject:die}=_n(),fie=!1,pie=3e3,UC=0,Aie=1,FC=2,T8e="anonymous",_8e="use-credentials",Nm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=UC;#i=null;#n=null;#u;#l;constructor(e,r={}){super(),tu.util.markAsUncloneable(this);let s="EventSource constructor";tu.argumentLengthCheck(arguments,1,s),fie||(fie=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=tu.converters.USVString(e,s,"url"),r=tu.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#u=r.dispatcher,this.#l={lastEventId:"",reconnectionTime:pie};let i=die,n;try{n=new URL(e,i.settingsObject.baseUrl),this.#l.origin=n.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=n.href;let o=T8e;r.withCredentials&&(o=_8e,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=die.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=S8e(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#a(){if(this.#r===FC)return;this.#r=UC;let e={request:this.#i,dispatcher:this.#u},r=s=>{hie(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#f()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(hie(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#f();return}let i=s.headersList.get("content-type",!0),n=i!==null?N8e(i):"failure",o=n!=="failure"&&n.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Aie,this.dispatchEvent(new Event("open")),this.#l.origin=s.urlList[s.urlList.length-1].origin;let a=new x8e({eventSourceSettings:this.#l,push:c=>{this.dispatchEvent(R8e(c.type,c.options))}});w8e(s.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=B8e(e)}async#f(){this.#r!==FC&&(this.#r=UC,this.dispatchEvent(new Event("error")),await v8e(this.#l.reconnectionTime),this.#r===UC&&(this.#l.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#l.lastEventId,!0),this.#a()))}close(){tu.brandCheck(this,t),this.#r!==FC&&(this.#r=FC,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}},mie={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:UC,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Aie,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:FC,writable:!1}};Object.defineProperties(Nm,mie);Object.defineProperties(Nm.prototype,mie);Object.defineProperties(Nm.prototype,{close:Tf,onerror:Tf,onmessage:Tf,onopen:Tf,readyState:Tf,url:Tf,withCredentials:Tf});tu.converters.EventSourceInitDict=tu.dictionaryConverter([{key:"withCredentials",converter:tu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:tu.converters.any}]);gie.exports={EventSource:Nm,defaultReconnectionTime:pie}});var Fh=A((zPt,De)=>{"use strict";var Q8e=tm(),Eie=zE(),P8e=rm(),O8e=m7(),D8e=sm(),k8e=NM(),M8e=F7(),L8e=$7(),Cie=yt(),px=st(),{InvalidArgumentError:fx}=Cie,Rm=Qee(),U8e=$E(),F8e=cL(),q8e=pte(),G8e=hL(),H8e=YM(),z8e=mS(),{getGlobalDispatcher:Iie,setGlobalDispatcher:V8e}=xS(),$8e=NS(),j8e=nS(),J8e=oS();Object.assign(Eie.prototype,Rm);De.exports.Dispatcher=Eie;De.exports.Client=Q8e;De.exports.Pool=P8e;De.exports.BalancedPool=O8e;De.exports.Agent=D8e;De.exports.ProxyAgent=k8e;De.exports.EnvHttpProxyAgent=M8e;De.expo Line truncated
%s`,N,N,C,s);var P=C.type==="*"?lU:C.type==="?"?cU:"\\"+C.type;i=!0,s=s.slice(0,C.reStart)+P+"\\("+N}p(),n&&(s+="\\\\");var Q=!1;switch(s.charAt(0)){case"[":case".":case"(":Q=!0}for(var k=a.length-1;k>-1;k--){var G=a[k],X=s.slice(0,G.reStart),L=s.slice(G.reStart,G.reEnd-8),U=s.slice(G.reEnd-8,G.reEnd),q=s.slice(G.reEnd);U+=q;var V=X.split("(").length-1,re=q;for(m=0;m<V;m++)re=re.replace(/\)[+*?]?/,"");q=re;var _e="";q===""&&e!==Gx&&(_e="$");var we=X+L+q+_e+U;s=we}if(s!==""&&i&&(s="(?=.)"+s),Q&&(s=d+s),e===Gx)return[s,i];if(!i)return C$e(t);var le=r.nocase?"i":"";try{var ct=new RegExp("^"+s+"$",le)}catch{return new RegExp("$.")}return ct._glob=t,ct._src=s,ct}Gn.makeRe=function(t,e){return new Jr(t,e||{}).makeRe()};Jr.prototype.makeRe=E$e;function E$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?lU:e.dot?h$e:d$e,s=e.nocase?"i":"",i=t.map(function(n){return n.map(function(o){return o===Mf?r:typeof o=="string"?I$e(o):o._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}Gn.match=function(t,e,r){r=r||{};var s=new Jr(e,r);return t=t.filter(function(i){return s.match(i)}),s.options.nonull&&!t.length&&t.push(e),t};Jr.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;dI.sep!=="/"&&(e=e.split(dI.sep).join("/")),e=e.split(Tae),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var n,o;for(o=e.length-1;o>=0&&(n=e[o],!n);o--);for(o=0;o<i.length;o++){var a=i[o],c=e;s.matchBase&&a.length===1&&(c=[n]);var l=this.matchOne(c,a,r);if(l)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};Jr.prototype.matchOne=function(t,e,r){return e.indexOf(Mf)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};Jr.prototype._matchGlobstar=function(t,e,r,s,i){var n,o=-1;for(n=i;n<e.length;n++)if(e[n]===Mf){o=n;break}var a=-1;for(n=e.length-1;n>=0;n--)if(e[n]===Mf){a=n;break}var c=e.slice(i,o),l=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var h=t.slice(s,s+c.length);if(!this._matchOne(h,c,r,0,0))return!1;s+=c.length}var d=0;if(u.length){if(u.length+s>t.length)return!1;var f=t.length-u.length;if(this._matchOne(t,u,r,f,0))d=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(f--,!this._matchOne(t,u,r,f,0)))return!1;d=u.length+1}}if(!l.length){var p=!!d;for(n=s;n<t.length-d;n++){var m=String(t[n]);if(p=!0,m==="."||m===".."||!this.options.dot&&m.charAt(0)===".")return!1}return r||p}for(var E=[[[],0]],y=E[0],C=0,w=[0],S=0;S<l.length;S++){var N=l[S];N===Mf?(w.push(C),y=[[],0],E.push(y)):(y[0].push(N),C++)}for(var P=E.length-1,Q=t.length-d,k=0;k<E.length;k++)E[k][1]=Q-(w[P--]+E[k][0].length);return!!this._matchGlobStarBodySections(t,E,s,0,r,0,!!d)};Jr.prototype._matchGlobStarBodySections=function(t,e,r,s,i,n,o){var a=e[s];if(!a){for(var c=r;c<t.length;c++){o=!0;var l=t[c];if(l==="."||l===".."||!this.options.dot&&l.charAt(0)===".")return!1}return o}for(var u=a[0],h=a[1];r<=h;){var d=this._matchOne(t.slice(0,r+u.length),u,i,r,0);if(d&&n<this.maxGlobstarRecursion){var f=this._matchGlobStarBodySections(t,e,r+u.length,s+1,i,n+1,o);if(f!==!1)return f}var l=t[r];if(l==="."||l===".."||!this.options.dot&&l.charAt(0)===".")return!1;r++}return i||null};Jr.prototype._matchOne=function(t,e,r,s,i){var n,o,a,c;for(n=s,o=i,a=t.length,c=e.length;n<a&&o<c;n++,o++){this.debug("matchOne loop");var l=e[o],u=t[n];if(this.debug(e,l,u),l===!1||l===Mf)return!1;var h;if(typeof l=="string"?(h=u===l,this.debug("string match",l,u,h)):(h=u.match(l),this.debug("pattern match",l,u,h)),!h)return!1}if(n===a&&o===c)return!0;if(n===a)return r;if(o===c)return n===a-1&&t[n]==="";throw new Error("wtf?")};function C$e(t){return t.replace(/\\(.)/g,"$1")}function I$e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var AI=A((tMt,Mae)=>{"use strict";var v$e="2.0.0",T$e=Number.MAX_SAFE_INTEGER||9007199254740991,_$e=16,Q$e=250,P$e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Mae.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:_$e,MAX_SAFE_BUILD_LENGTH:Q$e,MAX_SAFE_INTEGER:T$e,RELEASE_TYPES:P$e,SEMVER_SPEC_VERSION:v$e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var mI=A((rMt,Lae)=>{"use strict";var O$e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Lae.exports=O$e});var qm=A((Ec,Uae)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:hU,MAX_SAFE_BUILD_LENGTH:D$e,MAX_LENGTH:k$e}=AI(),M$e=mI();Ec=Uae.exports={};var L$e=Ec.re=[],U$e=Ec.safeRe=[],fe=Ec.src=[],F$e=Ec.safeSrc=[],pe=Ec.t={},q$e=0,dU="[a-zA-Z0-9-]",G$e=[["\\s",1],["\\d",k$e],[dU,D$e]],H$e=t=>{for(let[e,r]of G$e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${Line truncated
`.trim())}};bJ.exports=lR});var fy=h((a8e,QJ)=>{"use strict";var SJ=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:oge}=Te(),age=hd();xJ()===void 0&&NJ(new age);function NJ(t){if(!t||typeof t.dispatch!="function")throw new oge("Argument agent must implement Agent");Object.defineProperty(globalThis,SJ,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(NJ,"setGlobalDispatcher");function xJ(){return globalThis[SJ]}o(xJ,"getGlobalDispatcher");QJ.exports={setGlobalDispatcher:NJ,getGlobalDispatcher:xJ}});var hy=h((u8e,RJ)=>{"use strict";RJ.exports=class{static{o(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var vJ=h((A8e,TJ)=>{"use strict";var cge=YE();TJ.exports=t=>{let e=t?.maxRedirections;return r=>o(function(n,i){let{maxRedirections:a=e,...c}=n;if(!a)return r(n,i);let l=new cge(r,a,n,i);return r(c,l)},"redirectInterceptor")}});var _J=h((f8e,PJ)=>{"use strict";var lge=ny();PJ.exports=t=>e=>o(function(s,n){return e(s,new lge({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))},"retryInterceptor")});var DJ=h((m8e,kJ)=>{"use strict";var uge=Ce(),{InvalidArgumentError:dge,RequestAbortedError:Age}=Te(),pge=hy(),uR=class extends pge{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#s=!1;#r=!1;#n=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new dge("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,s,n){let a=uge.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new Age(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#s||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#s=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function fge({maxSize:t}={maxSize:1024*1024}){return e=>o(function(s,n){let{dumpMaxSize:i=t}=s,a=new uR({maxSize:i},n);return e(s,a)},"Intercept")}o(fge,"createDumpInterceptor");kJ.exports=fge});var LJ=h((E8e,MJ)=>{"use strict";var{isIP:hge}=require("node:net"),{lookup:mge}=require("node:dns"),gge=hy(),{InvalidArgumentError:Sd,InformationalError:Ege}=Te(),OJ=Math.pow(2,31)-1,dR=class{static{o(this,"DNSInstance")}#e=0;#t=0;#s=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#n}get full(){return this.#s.size===this.#t}runLookup(e,r,s){let n=this.#s.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){s(a??new Ege("No DNS entries found"));return}this.setRecords(e,c);let l=this.#s.get(e.hostname),u=this.pick(e,l,i.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",s(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,n,i.affinity);if(a==null){this.#s.delete(e.hostname),this.runLookup(e,r,s);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",s(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,s){mge(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let a=new Map;for(let c of i)a.set(`${c.address}:${c.family}`,c);s(null,a.values())})}#n(e,r,s){let n=null,{records:i,offset:a}=r,c;if(this.dualStack?(s==null&&(a==null||a===OJ?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?c=i[s]:c=i[s===4?6:4]):c=i[s],c==null||c.ips.length===0)return n;c.offset==null||c.offset===OJ?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return n=c.ips[l]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(c.ips.splice(l,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 a=n.records[i.family]??{ips:[]};a.ips.push(i),n.records[i.family]=a}this.#s.set(e.hostname,n)}getHandler(e,r){return new AR(this,e,r)}},AR=class extends gge{static{o(this,"DNSDispatchHandler")}#e=null;#t=null;#s=null Line truncated
${i}`;break;case"retry":g3(i)&&(r[n]=i);break;case"id":E3(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&g3(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&E3(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}}};y3.exports={EventSourceStream:ZR}});var Q3=h((I6e,x3)=>{"use strict";var{pipeline:NIe}=require("node:stream"),{fetching:xIe}=Lf(),{makeRequest:QIe}=Qd(),{webidl:ea}=pr(),{EventSourceStream:RIe}=C3(),{parseMIMEType:TIe}=Zr(),{createFastMessageEvent:vIe}=kd(),{isNetworkError:I3}=Of(),{delay:PIe}=KR(),{kEnumerableProperty:Sl}=Ce(),{environmentSettingsObject:B3}=Ss(),b3=!1,w3=3e3,Xf=0,S3=1,Zf=2,_Ie="anonymous",kIe="use-credentials",Fd=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#s=!1;#r=Xf;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),ea.util.markAsUncloneable(this);let s="EventSource constructor";ea.argumentLengthCheck(arguments,1,s),b3||(b3=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=ea.converters.USVString(e,s,"url"),r=ea.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:w3};let n=B3,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=i.href;let a=_Ie;r.withCredentials&&(a=kIe,this.#s=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=B3.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#n=QIe(c),this.#l()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#l(){if(this.#r===Zf)return;this.#r=Xf;let e={request:this.#n,dispatcher:this.#a},r=o(s=>{I3(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=s=>{if(I3(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?TIe(n):"failure",a=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=S3,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let c=new RIe({eventSourceSettings:this.#o,push:o(l=>{this.dispatchEvent(vIe(l.type,l.options))},"push")});NIe(s.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=xIe(e)}async#c(){this.#r!==Zf&&(this.#r=Xf,this.dispatchEvent(new Event("error")),await PIe(this.#o.reconnectionTime),this.#r===Xf&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#l()))}close(){ea.brandCheck(this,t),this.#r!==Zf&&(this.#r=Zf,this.#i.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},N3={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Xf,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:S3,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Zf,writable:!1}};Object.defineProperties(Fd,N3);Object.defineProperties(Fd.prototype,N3);Object.defineProperties(Fd.prototype,{close:Sl,onerror:Sl,onmessage:Sl,onopen:Sl,readyState:Sl,url:Sl,withCredentials:Sl});ea.converters.EventSourceInitDict=ea.dictionaryConverter([{key:"withCredentials",converter:ea.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:ea.converters.any}]);x3.exports={EventSource:Fd,defaultReconnectionTime:w3}});var qd=h((b6e,te)=>{"use strict";var DIe=pd(),R3=tf(),OIe=fd(),MIe=NV(),LIe=hd(),FIe=BQ(),UIe=jV(),qIe=rz(),T3=Te(),rC=Ce(),{InvalidArgumentError:tC}=T3,Ud=Gz(),GIe=sf(),HIe=sR(),VIe=wJ(),zIe=oR(),JIe=VQ(),YIe=ny(),{getGlobalDispatcher:v3,setGlobalDispatcher:$Ie}=fy(),WIe=hy(),jIe=YE(),KIe=$E();Object.assign(R3.prototype,Ud);te.exports.Dispatcher=R3;te.exports.Client=DIe;te.exports.Pool=OIe;te.exports.BalancedPool=MIe;te.exports.Agent=LIe;te.exports. Line truncated
%s`,N,N,C,s);var Q=C.type==="*"?rv:C.type==="?"?tv:"\\"+C.type;n=!0,s=s.slice(0,C.reStart)+Q+"\\("+N}m(),i&&(s+="\\\\");var D=!1;switch(s.charAt(0)){case"[":case".":case"(":D=!0}for(var le=c.length-1;le>-1;le--){var Se=c[le],Re=s.slice(0,Se.reStart),Oe=s.slice(Se.reStart,Se.reEnd-8),me=s.slice(Se.reEnd-8,Se.reEnd),Je=s.slice(Se.reEnd);me+=Je;var ue=Re.split("(").length-1,vr=Je;for(g=0;g<ue;g++)vr=vr.replace(/\)[+*?]?/,"");Je=vr;var J="";Je===""&&e!==xC&&(J="$");var Me=Re+Oe+Je+J+me;s=Me}if(s!==""&&n&&(s="(?=.)"+s),D&&(s=p+s),e===xC)return[s,n];if(!n)return hSe(t);var Ci=r.nocase?"i":"";try{var La=new RegExp("^"+s+"$",Ci)}catch{return new RegExp("$.")}return La._glob=t,La._src=s,La}o(pSe,"parse");Ls.makeRe=function(t,e){return new Gt(t,e||{}).makeRe()};Gt.prototype.makeRe=fSe;function fSe(){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?rv:e.dot?oSe:aSe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(a){return a===vl?r:typeof a=="string"?mSe(a):a._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}o(fSe,"makeRe");Ls.match=function(t,e,r){r=r||{};var s=new Gt(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};Gt.prototype.match=o(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;Ih.sep!=="/"&&(e=e.split(Ih.sep).join("/")),e=e.split(D4),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,a;for(a=e.length-1;a>=0&&(i=e[a],!i);a--);for(a=0;a<n.length;a++){var c=n[a],l=e;s.matchBase&&c.length===1&&(l=[i]);var u=this.matchOne(l,c,r);if(u)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate},"match");Gt.prototype.matchOne=function(t,e,r){return e.indexOf(vl)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};Gt.prototype._matchGlobstar=function(t,e,r,s,n){var i,a=-1;for(i=n;i<e.length;i++)if(e[i]===vl){a=i;break}var c=-1;for(i=e.length-1;i>=0;i--)if(e[i]===vl){c=i;break}var l=e.slice(n,a),u=r?e.slice(a+1):e.slice(a+1,c),d=r?[]:e.slice(c+1);if(l.length){var A=t.slice(s,s+l.length);if(!this._matchOne(A,l,r,0,0))return!1;s+=l.length}var p=0;if(d.length){if(d.length+s>t.length)return!1;var f=t.length-d.length;if(this._matchOne(t,d,r,f,0))p=d.length;else{if(t[t.length-1]!==""||s+d.length===t.length||(f--,!this._matchOne(t,d,r,f,0)))return!1;p=d.length+1}}if(!u.length){var m=!!p;for(i=s;i<t.length-p;i++){var g=String(t[i]);if(m=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||m}for(var y=[[[],0]],E=y[0],C=0,I=[0],B=0;B<u.length;B++){var N=u[B];N===vl?(I.push(C),E=[[],0],y.push(E)):(E[0].push(N),C++)}for(var Q=y.length-1,D=t.length-p,le=0;le<y.length;le++)y[le][1]=D-(I[Q--]+y[le][0].length);return!!this._matchGlobStarBodySections(t,y,s,0,r,0,!!p)};Gt.prototype._matchGlobStarBodySections=function(t,e,r,s,n,i,a){var c=e[s];if(!c){for(var l=r;l<t.length;l++){a=!0;var u=t[l];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1}return a}for(var d=c[0],A=c[1];r<=A;){var p=this._matchOne(t.slice(0,r+d.length),d,n,r,0);if(p&&i<this.maxGlobstarRecursion){var f=this._matchGlobStarBodySections(t,e,r+d.length,s+1,n,i+1,a);if(f!==!1)return f}var u=t[r];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1;r++}return n||null};Gt.prototype._matchOne=function(t,e,r,s,n){var i,a,c,l;for(i=s,a=n,c=t.length,l=e.length;i<c&&a<l;i++,a++){this.debug("matchOne loop");var u=e[a],d=t[i];if(this.debug(e,u,d),u===!1||u===vl)return!1;var A;if(typeof u=="string"?(A=d===u,this.debug("string match",u,d,A)):(A=d.match(u),this.debug("pattern match",u,d,A)),!A)return!1}if(i===c&&a===l)return!0;if(i===c)return r;if(a===l)return i===c-1&&t[i]==="";throw new Error("wtf?")};function hSe(t){return t.replace(/\\(.)/g,"$1")}o(hSe,"globUnescape");function mSe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(mSe,"regExpEscape")});var wh=h((ZZe,G4)=>{"use strict";var wSe="2.0.0",SSe=Number.MAX_SAFE_INTEGER||9007199254740991,NSe=16,xSe=250,QSe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];G4.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:NSe,MAX_SAFE_BUILD_LENGTH:xSe,MAX_SAFE_INTEGER:SSe,RELEASE_TYPES:QSe,SEMVER_SPEC_VERSION:wSe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Sh=h((e7e,H4)=>{"use strict";var RSe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};H4.exports=RSe});var Xd=h((Mi,V4)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:nv,MAX_SAFE_BUILD_LENGTH:TSe,MAX_LENGTH:vSe}=wh(),PSe=Sh();Mi=V4.exports={};var _Se=Mi.re=[],kSe=Mi.safeRe=[],L=Mi.src=[],DSe=Mi.safeSrc=[],F=Mi.t={},OSe=0,iv="[a-zA-Z0-9-]",MSe=[["\\s",1],["\\d", Line truncated
`).join(`
`+n),t.push(i+"m+"+_N.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=bYe()+e+" "+t[0]}function bYe(){return Us.inspectOpts.hideDate?"":new Date().toISOString()+" "}function wYe(...t){return process.stderr.write(TN.format(...t)+`
`)}function BYe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function SYe(){return process.env.DEBUG}function xYe(t){t.inspectOpts={};let e=Object.keys(Us.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Us.inspectOpts[e[r]]}_N.exports=eF()(Us);var{formatters:Cue}=_N.exports;Cue.o=function(t){return this.inspectOpts.colors=this.useColors,TN.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Cue.O=function(t){return this.inspectOpts.colors=this.useColors,TN.inspect(t,this.inspectOpts)}});var Jf=A((C2t,iF)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?iF.exports=Aue():iF.exports=Iue()});var Bue=A(nn=>{"use strict";var NYe=nn&&nn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),RYe=nn&&nn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),bue=nn&&nn.__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)&&NYe(e,t,r);return RYe(e,t),e};Object.defineProperty(nn,"__esModule",{value:!0});nn.req=nn.json=nn.toBuffer=void 0;var vYe=bue(require("http")),TYe=bue(require("https"));async function wue(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}nn.toBuffer=wue;async function _Ye(t){let r=(await wue(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let i=s;throw i.message+=` (input: ${r})`,i}}nn.json=_Ye;function QYe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?TYe:vYe).request(t,e),i=new Promise((n,o)=>{s.once("response",n).once("error",o).end()});return s.then=i.then.bind(i),s}nn.req=QYe});var Rue=A($n=>{"use strict";var xue=$n&&$n.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),PYe=$n&&$n.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Nue=$n&&$n.__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)&&xue(e,t,r);return PYe(e,t),e},OYe=$n&&$n.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&xue(e,t,r)};Object.defineProperty($n,"__esModule",{value:!0});$n.Agent=void 0;var DYe=Nue(require("net")),Sue=Nue(require("http")),kYe=require("https");OYe(Bue(),$n);var wc=Symbol("AgentBaseInternalState"),nF=class extends Sue.Agent{constructor(e){super(e),this[wc]={}}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 DYe.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],i=s.indexOf(r);i!==-1&&(s.splice(i,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?kYe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(i),o=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,i)).then(a=>{if(this.decrementSockets(n,o),a instanceof Sue.Agent)try{return a.addRequest(e,i)}catch(c){return s(c)}this[wc].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(n,o),s(a)})}createConnection(){let e=this[wc].currentSocket;if(this[wc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[wc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[wc]&&(this[wc].defaultPort=e)}get protocol(){return this[wc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[wc]&&(this[wc].protocol=e)}};$n.Agent=nF});var vue=A(Km=>{"use strict";var MYe=Km&&Km.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Km,"__esModule",{value:!0});Km.parseProxyResponse=void 0;var LYe=MYe(Jf()),QN=(0,LYe.default)("https-proxy-agent:parse-proxy-response");function UYe(t){return new Promise((e,r)=>{let s=0,i=[];function n(){let u=t.read();u?l(u):t.once("readable",n)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",n)}function a(){o(),QN("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),QN("onerror %o",u),r(u)}function l(u){i.push(u),s+=u.length;let h=Buffer.concat(i,s),d=h.indexOf(`\r
`+i),t.push(n+"m+"+mI.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=gRe()+e+" "+t[0]}o(mRe,"formatArgs");function gRe(){return hr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(gRe,"getDate");function ERe(...t){return process.stderr.write(hI.format(...t)+`
`)}o(ERe,"log");function yRe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(yRe,"save");function CRe(){return process.env.DEBUG}o(CRe,"load");function IRe(t){t.inspectOpts={};let e=Object.keys(hr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=hr.inspectOpts[e[r]]}o(IRe,"init");mI.exports=Yv()(hr);var{formatters:S6}=mI.exports;S6.o=function(t){return this.inspectOpts.colors=this.useColors,hI.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};S6.O=function(t){return this.inspectOpts.colors=this.useColors,hI.inspect(t,this.inspectOpts)}});var gI=h((zrt,Kv)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Kv.exports=C6():Kv.exports=N6()});var R6=h(os=>{"use strict";var BRe=os&&os.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),bRe=os&&os.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),x6=os&&os.__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)&&BRe(e,t,r);return bRe(e,t),e};Object.defineProperty(os,"__esModule",{value:!0});os.req=os.json=os.toBuffer=void 0;var wRe=x6(require("http")),SRe=x6(require("https"));async function Q6(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(Q6,"toBuffer");os.toBuffer=Q6;async function NRe(t){let r=(await Q6(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(NRe,"json");os.json=NRe;function xRe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?SRe:wRe).request(t,e),n=new Promise((i,a)=>{s.once("response",i).once("error",a).end()});return s.then=n.then.bind(n),s}o(xRe,"req");os.req=xRe});var _6=h(Gs=>{"use strict";var v6=Gs&&Gs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),QRe=Gs&&Gs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),P6=Gs&&Gs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&v6(e,t,r);return QRe(e,t),e},RRe=Gs&&Gs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&v6(e,t,r)};Object.defineProperty(Gs,"__esModule",{value:!0});Gs.Agent=void 0;var TRe=P6(require("net")),T6=P6(require("http")),vRe=require("https");RRe(R6(),Gs);var qi=Symbol("AgentBaseInternalState"),Xv=class extends T6.Agent{static{o(this,"Agent")}constructor(e){super(e),this[qi]={}}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 TRe.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)?vRe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(i,a),c instanceof T6.Agent)try{return c.addRequest(e,n)}catch(l){return s(l)}this[qi].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[qi].currentSocket;if(this[qi].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[qi].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[qi]&&(this[qi].defaultPort=e)}get protocol(){return this[qi].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[qi]&&(this[qi].protocol=e)}};Gs.Agent=Xv});var k6=h(cA=>{"use strict";var PRe=cA&&cA.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(cA,"__esModule",{value:!0});cA.parseProxyResponse=void 0;var _Re=PRe(gI()),EI=(0,_Re.default)("https-proxy-agent:parse-proxy-response");function kRe(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let d=t.read();d?u(d):t.once("readable",i)}o(i,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",i)}o(a,"cleanup");function c(){a(),EI("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(d){a(),EI("onerror %o",d),r(d)}o(l,"onerror");function u(d){n.push(d),s+=d.length;let A=Buffer.concat(n,s),p=A.indexOf(`\r
\r
`);if(d===-1){QN("have not received end of HTTP headers yet..."),n();return}let f=h.slice(0,d).toString("ascii").split(`\r
`),p=f.shift();if(!p)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let m=p.split(" "),E=+m[1],y=m.slice(2).join(" "),C={};for(let w of f){if(!w)continue;let S=w.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let N=w.slice(0,S).toLowerCase(),P=w.slice(S+1).trimStart(),Q=C[N];typeof Q=="string"?C[N]=[Q,P]:Array.isArray(Q)?Q.push(P):C[N]=P}QN("got proxy server response: %o %o",p,C),o(),e({connect:{statusCode:E,statusText:y,headers:C},buffered:h})}t.on("error",c),t.on("end",a),n()})}Km.parseProxyResponse=UYe});var Due=A(Mo=>{"use strict";var FYe=Mo&&Mo.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),qYe=Mo&&Mo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Pue=Mo&&Mo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&FYe(e,t,r);return qYe(e,t),e},Oue=Mo&&Mo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mo,"__esModule",{value:!0});Mo.HttpsProxyAgent=void 0;var PN=Pue(require("net")),Tue=Pue(require("tls")),GYe=Oue(require("assert")),HYe=Oue(Jf()),zYe=Rue(),VYe=require("url"),$Ye=vue(),QI=(0,HYe.default)("https-proxy-agent"),_ue=t=>t.servername===void 0&&t.host&&!PN.isIP(t.host)?{...t,servername:t.host}:t,ON=class extends zYe.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new VYe.URL(e):e,this.proxyHeaders=r?.headers??{},QI("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Que(r,"headers"):null,host:s,port:i}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let i;s.protocol==="https:"?(QI("Creating `tls.Socket`: %o",this.connectOpts),i=Tue.connect(_ue(this.connectOpts))):(QI("Creating `net.Socket`: %o",this.connectOpts),i=PN.connect(this.connectOpts));let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=PN.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)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(n))a+=`${d}: ${n[d]}\r
`;let c=(0,$Ye.parseProxyResponse)(i);i.write(`${a}\r
`);let{connect:l,buffered:u}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200)return e.once("socket",jYe),r.secureEndpoint?(QI("Upgrading socket connection to TLS"),Tue.connect({...Que(_ue(r),"host","path","port"),socket:i})):i;i.destroy();let h=new PN.Socket({writable:!1});return h.readable=!0,e.once("socket",d=>{QI("Replaying proxy buffer for failed request"),(0,GYe.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),h}};ON.protocols=["http","https"];Mo.HttpsProxyAgent=ON;function jYe(t){t.resume()}function Que(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Lue=A(on=>{"use strict";var JYe=on&&on.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),YYe=on&&on.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kue=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)&&JYe(e,t,r);return YYe(e,t),e};Object.defineProperty(on,"__esModule",{value:!0});on.req=on.json=on.toBuffer=void 0;var WYe=kue(require("http")),KYe=kue(require("https"));async function Mue(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}on.toBuffer=Mue;async function XYe(t){let r=(await Mue(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let i=s;throw i.message+=` (input: ${r})`,i}}on.json=XYe;function ZYe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?KYe:WYe).request(t,e),i=new Promise((n,o)=>{s.once("response",n).once("error",o).end()});return s.then=i.then.bind(i),s}on.req=ZYe});var PI=A(jn=>{"use strict";var Fue=jn&&jn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),e9e=jn&&jn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),que=jn&&jn.__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)&&Fue(e,t,r);return e9e(e,t),e},t9e=jn&&jn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Fue(e,t,r)};Object.defineProperty(jn,"__esModule",{value:!0});jn.Agent=void 0;var r9e=que(require("net")),Uue=que(require("http")),s9e=require("https");t9e(Lue(),jn);var Bc=Symbol("AgentBaseInternalState"),oF=class extends Uue.Agent{constructor(e){super(e),this[Bc]={}}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 r9e.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],i=s.indexOf(r);i!==-1&&(s.splice(i,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?s9e.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(i),o=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,i)).then(a=>{if(this.decrementSockets(n,o),a instanceof Uue.Agent)return a.addRequest(e,i);this[Bc].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(n,o),s(a)})}createConnection(){let e=this[Bc].currentSocket;if(this[Bc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Bc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Bc]&&(this[Bc].defaultPort=e)}get protocol(){return this[Bc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Bc]&&(this[Bc].protocol=e)}};jn.Agent=oF});var aF=A(Lo=>{"use strict";var i9e=Lo&&Lo.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),n9e=Lo&&Lo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Hue=Lo&&Lo.__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)&&i9e(e,t,r);return n9e(e,t),e},o9e=Lo&&Lo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Lo,"__esModule",{value:!0});Lo.HttpProxyAgent=void 0;var a9e=Hue(require("net")),c9e=Hue(require("tls")),l9e=o9e(Jf()),u9e=require("events"),h9e=PI(),Gue=require("url"),Xm=(0,l9e.default)("http-proxy-agent"),DN=class extends h9e.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Gue.URL(e):e,this.proxyHeaders=r?.headers??{},Xm("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?d9e(r,"headers"):null,host:s,port:i}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,i=r.secureEndpoint?"https:":"http:",n=e.getHeader("host")||"localhost",o=`${i}//${n}`,a=new Gue.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(s.username||s.password){let l=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(l).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let l of Object.keys(c)){let u=c[l];u&&e.setHeader(l,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,i;Xm("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Xm("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,i=s.indexOf(`\r
`);if(p===-1){EI("have not received end of HTTP headers yet..."),i();return}let f=A.slice(0,p).toString("ascii").split(`\r
`),m=f.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=m.split(" "),y=+g[1],E=g.slice(2).join(" "),C={};for(let I of f){if(!I)continue;let B=I.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,B).toLowerCase(),Q=I.slice(B+1).trimStart(),D=C[N];typeof D=="string"?C[N]=[D,Q]:Array.isArray(D)?D.push(Q):C[N]=Q}EI("got proxy server response: %o %o",m,C),a(),e({connect:{statusCode:y,statusText:E,headers:C},buffered:A})}o(u,"ondata"),t.on("error",l),t.on("end",c),i()})}o(kRe,"parseProxyResponse");cA.parseProxyResponse=kRe});var U6=h(Cn=>{"use strict";var DRe=Cn&&Cn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),ORe=Cn&&Cn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),L6=Cn&&Cn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&DRe(e,t,r);return ORe(e,t),e},F6=Cn&&Cn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.HttpsProxyAgent=void 0;var yI=L6(require("net")),D6=L6(require("tls")),MRe=F6(require("assert")),LRe=F6(gI()),FRe=_6(),URe=require("url"),qRe=k6(),qh=(0,LRe.default)("https-proxy-agent"),O6=o(t=>t.servername===void 0&&t.host&&!yI.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),CI=class extends FRe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new URe.URL(e):e,this.proxyHeaders=r?.headers??{},qh("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?M6(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:"?(qh("Creating `tls.Socket`: %o",this.connectOpts),n=D6.connect(O6(this.connectOpts))):(qh("Creating `net.Socket`: %o",this.connectOpts),n=yI.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=yI.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let p=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(i))c+=`${p}: ${i[p]}\r
`;let l=(0,qRe.parseProxyResponse)(n);n.write(`${c}\r
`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",GRe),r.secureEndpoint?(qh("Upgrading socket connection to TLS"),D6.connect({...M6(O6(r),"host","path","port"),socket:n})):n;n.destroy();let A=new yI.Socket({writable:!1});return A.readable=!0,e.once("socket",p=>{qh("Replaying proxy buffer for failed request"),(0,MRe.default)(p.listenerCount("data")>0),p.push(d),p.push(null)}),A}};CI.protocols=["http","https"];Cn.HttpsProxyAgent=CI;function GRe(t){t.resume()}o(GRe,"resume");function M6(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(M6,"omit")});var H6=h(as=>{"use strict";var HRe=as&&as.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),VRe=as&&as.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),q6=as&&as.__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)&&HRe(e,t,r);return VRe(e,t),e};Object.defineProperty(as,"__esModule",{value:!0});as.req=as.json=as.toBuffer=void 0;var zRe=q6(require("http")),JRe=q6(require("https"));async function G6(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(G6,"toBuffer");as.toBuffer=G6;async function YRe(t){let r=(await G6(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(YRe,"json");as.json=YRe;function $Re(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?JRe:zRe).request(t,e),n=new Promise((i,a)=>{s.once("response",i).once("error",a).end()});return s.then=n.then.bind(n),s}o($Re,"req");as.req=$Re});var Y6=h(Hs=>{"use strict";var z6=Hs&&Hs.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),WRe=Hs&&Hs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),J6=Hs&&Hs.__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)&&z6(e,t,r);return WRe(e,t),e},jRe=Hs&&Hs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&z6(e,t,r)};Object.defineProperty(Hs,"__esModule",{value:!0});Hs.Agent=void 0;var KRe=J6(require("net")),V6=J6(require("http")),XRe=require("https");jRe(H6(),Hs);var Gi=Symbol("AgentBaseInternalState"),Zv=class extends V6.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Gi]={}}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 KRe.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(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?XRe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(i,a),c instanceof V6.Agent)return c.addRequest(e,n);this[Gi].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[Gi].currentSocket;if(this[Gi].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Gi].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Gi]&&(this[Gi].defaultPort=e)}get protocol(){return this[Gi].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Gi]&&(this[Gi].protocol=e)}};Hs.Agent=Zv});var j6=h(In=>{"use strict";var ZRe=In&&In.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),eTe=In&&In.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),W6=In&&In.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ZRe(e,t,r);return eTe(e,t),e},tTe=In&&In.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(In,"__esModule",{value:!0});In.HttpProxyAgent=void 0;var rTe=W6(require("net")),sTe=W6(require("tls")),nTe=tTe(gI()),iTe=require("events"),oTe=Y6(),$6=require("url"),lA=(0,nTe.default)("http-proxy-agent"),II=class extends oTe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new $6.URL(e):e,this.proxyHeaders=r?.headers??{},lA("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?aTe(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",a=`${n}//${i}`,c=new $6.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let u=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;lA("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(lA("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+s.substring(i),Xm("Output buffer: %o",e.outputData[0].data));let n;return this.proxy.protocol==="https:"?(Xm("Creating `tls.Socket`: %o",this.connectOpts),n=c9e.connect(this.connectOpts)):(Xm("Creating `net.Socket`: %o",this.connectOpts),n=a9e.connect(this.connectOpts)),await(0,u9e.once)(n,"connect"),n}};DN.protocols=["http","https"];Lo.HttpProxyAgent=DN;function d9e(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var hhe=A(YN=>{"use strict";Object.defineProperty(YN,"__esModule",{value:!0});YN.state=void 0;YN.state={instrumenterImplementation:void 0}});var Rhe=A(eR=>{"use strict";Object.defineProperty(eR,"__esModule",{value:!0});eR.state=void 0;eR.state={operationRequestMap:new WeakMap}});var ope=A(mg=>{"use strict";Object.defineProperty(mg,"__esModule",{value:!0});var Q7e=require("os"),P7e=require("util");function O7e(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var D7e=O7e(P7e);function k7e(t,...e){process.stderr.write(`${D7e.default.format(t,...e)}${Q7e.EOL}`)}var Wfe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Xfe,U4=[],F4=[],Ev=[];Wfe&&q4(Wfe);var Zfe=Object.assign(t=>epe(t),{enable:q4,enabled:G4,disable:M7e,log:k7e});function q4(t){Xfe=t,U4=[],F4=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?F4.push(new RegExp(`^${s.substr(1)}$`)):U4.push(new RegExp(`^${s}$`));for(let s of Ev)s.enabled=G4(s.namespace)}function G4(t){if(t.endsWith("*"))return!0;for(let e of F4)if(e.test(t))return!1;for(let e of U4)if(e.test(t))return!0;return!1}function M7e(){let t=Xfe||"";return q4(""),t}function epe(t){let e=Object.assign(r,{enabled:G4(t),destroy:L7e,log:Zfe.log,namespace:t,extend:U7e});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return Ev.push(e),e}function L7e(){let t=Ev.indexOf(this);return t>=0?(Ev.splice(t,1),!0):!1}function U7e(t){let e=epe(`${this.namespace}:${t}`);return e.log=this.log,e}var C0=Zfe,tpe=new Set,gv=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Cv,Iv=C0("azure");Iv.log=(...t)=>{C0.log(...t)};var H4=["verbose","info","warning","error"];gv&&(npe(gv)?rpe(gv):console.error(`AZURE_LOG_LEVEL set to unknown log level '${gv}'; logging is not enabled. Acceptable values: ${H4.join(", ")}.`));function rpe(t){if(t&&!npe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${H4.join(",")}`);Cv=t;let e=[];for(let r of tpe)ipe(r)&&e.push(r.namespace);C0.enable(e.join(","))}function F7e(){return Cv}var Kfe={verbose:400,info:300,warning:200,error:100};function q7e(t){let e=Iv.extend(t);return spe(Iv,e),{error:yv(e,"error"),warning:yv(e,"warning"),info:yv(e,"info"),verbose:yv(e,"verbose")}}function spe(t,e){e.log=(...r)=>{t.log(...r)}}function yv(t,e){let r=Object.assign(t.extend(e),{level:e});if(spe(t,r),ipe(r)){let s=C0.disable();C0.enable(s+","+r.namespace)}return tpe.add(r),r}function ipe(t){return!!(Cv&&Kfe[t.level]<=Kfe[Cv])}function npe(t){return H4.includes(t)}mg.AzureLogger=Iv;mg.createClientLogger=q7e;mg.getLogLevel=F7e;mg.setLogLevel=rpe});var $4=A(b0=>{"use strict";Object.defineProperty(b0,"__esModule",{value:!0});var gg=new WeakMap,bv=new WeakMap,I0=class t{constructor(){this.onabort=null,gg.set(this,[]),bv.set(this,!1)}get aborted(){if(!bv.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return bv.get(this)}static get none(){return new t}addEventListener(e,r){if(!gg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");gg.get(this).push(r)}removeEventListener(e,r){if(!gg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=gg.get(this),i=s.indexOf(r);i>-1&&s.splice(i,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function ape(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=gg.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),bv.set(t,!0)}var z4=class extends Error{constructor(e){super(e),this.name="AbortError"}},V4=class{constructor(e){if(this._signal=new I0,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){ape(this._signal)}static timeout(e){let r=new I0,s=setTimeout(ape,e,r);return typeof s.unref=="function"&&s.unref(),r}};b0.AbortController=V4;b0.AbortError=z4;b0.AbortSignal=I0});var dpe=A(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});var G7e=$4(),W4=require("crypto"),j4,H7e=typeof process<"u"&&!!process.version&&!!(!((j4=process.versions)===null||j4===void 0)&&j4.node);function cpe(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:i}=e??{};return new Promise((n,o)=>{function a(){o(new G7e.AbortError(i??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a(); Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),lA("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(lA("Creating `tls.Socket`: %o",this.connectOpts),i=sTe.connect(this.connectOpts)):(lA("Creating `net.Socket`: %o",this.connectOpts),i=rTe.connect(this.connectOpts)),await(0,iTe.once)(i,"connect"),i}};II.protocols=["http","https"];In.HttpProxyAgent=II;function aTe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(aTe,"omit")});var E9=h(DI=>{"use strict";Object.defineProperty(DI,"__esModule",{value:!0});DI.state=void 0;DI.state={instrumenterImplementation:void 0}});var D9=h(UI=>{"use strict";Object.defineProperty(UI,"__esModule",{value:!0});UI.state=void 0;UI.state={operationRequestMap:new WeakMap}});var pZ=h(xA=>{"use strict";Object.defineProperty(xA,"__esModule",{value:!0});var xDe=require("os"),QDe=require("util");function RDe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(RDe,"_interopDefaultLegacy");var TDe=RDe(QDe);function vDe(t,...e){process.stderr.write(`${TDe.default.format(t,...e)}${xDe.EOL}`)}o(vDe,"log");var sZ=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,iZ,vO=[],PO=[],ib=[];sZ&&_O(sZ);var oZ=Object.assign(t=>aZ(t),{enable:_O,enabled:kO,disable:PDe,log:vDe});function _O(t){iZ=t,vO=[],PO=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?PO.push(new RegExp(`^${s.substr(1)}$`)):vO.push(new RegExp(`^${s}$`));for(let s of ib)s.enabled=kO(s.namespace)}o(_O,"enable");function kO(t){if(t.endsWith("*"))return!0;for(let e of PO)if(e.test(t))return!1;for(let e of vO)if(e.test(t))return!0;return!1}o(kO,"enabled");function PDe(){let t=iZ||"";return _O(""),t}o(PDe,"disable");function aZ(t){let e=Object.assign(r,{enabled:kO(t),destroy:_De,log:oZ.log,namespace:t,extend:kDe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return o(r,"debug"),ib.push(e),e}o(aZ,"createDebugger");function _De(){let t=ib.indexOf(this);return t>=0?(ib.splice(t,1),!0):!1}o(_De,"destroy");function kDe(t){let e=aZ(`${this.namespace}:${t}`);return e.log=this.log,e}o(kDe,"extend");var Qm=oZ,cZ=new Set,sb=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,ob,ab=Qm("azure");ab.log=(...t)=>{Qm.log(...t)};var DO=["verbose","info","warning","error"];sb&&(AZ(sb)?lZ(sb):console.error(`AZURE_LOG_LEVEL set to unknown log level '${sb}'; logging is not enabled. Acceptable values: ${DO.join(", ")}.`));function lZ(t){if(t&&!AZ(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${DO.join(",")}`);ob=t;let e=[];for(let r of cZ)dZ(r)&&e.push(r.namespace);Qm.enable(e.join(","))}o(lZ,"setLogLevel");function DDe(){return ob}o(DDe,"getLogLevel");var nZ={verbose:400,info:300,warning:200,error:100};function ODe(t){let e=ab.extend(t);return uZ(ab,e),{error:nb(e,"error"),warning:nb(e,"warning"),info:nb(e,"info"),verbose:nb(e,"verbose")}}o(ODe,"createClientLogger");function uZ(t,e){e.log=(...r)=>{t.log(...r)}}o(uZ,"patchLogMethod");function nb(t,e){let r=Object.assign(t.extend(e),{level:e});if(uZ(t,r),dZ(r)){let s=Qm.disable();Qm.enable(s+","+r.namespace)}return cZ.add(r),r}o(nb,"createLogger");function dZ(t){return!!(ob&&nZ[t.level]<=nZ[ob])}o(dZ,"shouldEnable");function AZ(t){return DO.includes(t)}o(AZ,"isAzureLogLevel");xA.AzureLogger=ab;xA.createClientLogger=ODe;xA.getLogLevel=DDe;xA.setLogLevel=lZ});var LO=h(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});var QA=new WeakMap,cb=new WeakMap,Rm=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,QA.set(this,[]),cb.set(this,!1)}get aborted(){if(!cb.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return cb.get(this)}static get none(){return new t}addEventListener(e,r){if(!QA.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");QA.get(this).push(r)}removeEventListener(e,r){if(!QA.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=QA.get(this),n=s.indexOf(r);n>-1&&s.splice(n,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function fZ(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=QA.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),cb.set(t,!0)}o(fZ,"abortSignal");var OO=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},MO=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new Rm,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){fZ(this._signal)}static timeout(e){let r=new Rm,s=setTimeout(fZ,e,r);return typeof s.unref=="function"&&s.unref(),r}};Tm.AbortController=MO;Tm.AbortError=OO;Tm.AbortSignal=Rm});var yZ=h(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});var MDe Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${u}
Polling status: ${mpe.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let h=o(l,r);if(h!==void 0)return{response:await e(h).catch(ppe({state:r,stateProxy:s,isOperationError:a})),status:u}}return{response:l,status:u}}async function Cpe(t){let{poll:e,state:r,stateProxy:s,options:i,getOperationStatus:n,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:l,getPollingInterval:u,processResult:h,getError:d,updateState:f,setDelay:p,isDone:m,setErrorAsResult:E}=t,{operationLocation:y}=r.config;if(y!==void 0){let{response:C,status:w}=await iet({poll:e,getOperationStatus:n,state:r,stateProxy:s,operationLocation:y,getResourceLocation:o,isOperationError:c,options:i});if(ype({status:w,response:C,state:r,stateProxy:s,isDone:m,processResult:h,getError:d,setErrorAsResult:E}),!mpe.includes(w)){let S=u?.(C);S&&p(S);let N=a?.(C,r);if(N!==void 0){let P=y!==N;r.config.operationLocation=N,l?.(N,P)}else l?.(y,!1)}f?.(r,C)}}function Ipe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function bpe(t){return t.headers.location}function wpe(t){return t.headers["operation-location"]}function Bpe(t){return t.headers["azure-asyncoperation"]}function net(t){let{location:e,requestMethod:r,requestPath:s,resourceLocationConfig:i}=t;switch(r){case"PUT":return s;case"DELETE":return;default:switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return e}}}function Spe(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:i}=t,n=wpe(e),o=Bpe(e),a=Ipe({operationLocation:n,azureAsyncOperation:o}),c=bpe(e),l=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:net({requestMethod:l,location:c,requestPath:s,resourceLocationConfig:i})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:l==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}function xpe(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 e8(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 dp.verbose(`LRO: unrecognized operation status: ${e}`),e}}function oet(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return xpe({status:r,statusCode:t.statusCode})}function aet(t){var e,r;let{properties:s,provisioningState:i}=(e=t.body)!==null&&e!==void 0?e:{},n=(r=s?.provisioningState)!==null&&r!==void 0?r:i;return xpe({status:n,statusCode:t.statusCode})}function e8(t){return t===202?"running":t<300?"succeeded":"failed"}function Npe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?cet(new Date(e)):r*1e3}}function Rpe(t){let e=t.flatResponse.error;if(!e){dp.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){dp.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}function cet(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function vpe(t){let{response:e,state:r,operationLocation:s}=t;function i(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return e8(e.rawResponse.statusCode);case"Body":return t8(e,r);default:return"running"}}let n=i();return n==="running"&&s===void 0?"succeeded":n}async function uet(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:i,setErrorAsResult:n}=t;return Epe({init:async()=>{let o=await i.sendInitialRequest(),a=Spe({rawResponse:o.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:s?({flatResponse:o},a)=>s(o,a):({flatResponse:o})=>o,getOperationStatus:vpe,setErrorAsResult:n})}function Tpe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return Ipe({operationLocation:wpe(t),azureAsyncOperation:Bpe(t)});case"ResourceLocation":return bpe(t);default:return}}function t8({rawResponse:t},e){var r;let s=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(s){case"OperationLocation":return oet(t);case"ResourceLocation":return e8(t.statusCode);case"Body":return aet(t);default:throw new Error(`Internal error: Unexpected operation mode: ${s}`)}}function _pe({flatResponse:t},e){if(typeof t=="object"){let r=t.resourceLocation;r!==void 0&&(e.config.resourceLocation=r)}return e.cLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:o=n,i=1;break;case 1:r[s++]=o<<2|(n&48)>>4,o=n,i=2;break;case 2:r[s++]=(o&15)<<4|(n&60)>>2,o=n,i=3;break;case 3:r[s++]=(o&3)<<6|n,i=0;break}}if(i==1)throw Error("invalid base64 string.");return r.subarray(0,s)}wg.base64decode=Jet;function Yet(t){let e="",r=0,s,i=0;for(let n=0;n<t.length;n++)switch(s=t[n],r){case 0:e+=bu[s>>2],i=(s&3)<<4,r=1;break;case 1:e+=bu[i|s>>4],i=(s&15)<<2,r=2;break;case 2:e+=bu[i|s>>6],e+=bu[s&63],r=0;break}return r&&(e+=bu[i],e+="=",r==1&&(e+="=")),e}wg.base64encode=Yet});var oAe=A(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0});qv.utf8read=void 0;var h8=t=>String.fromCharCode.apply(String,t);function Wet(t){if(t.length<1)return"";let e=0,r=[],s=[],i=0,n,o=t.length;for(;e<o;)n=t[e++],n<128?s[i++]=n:n>191&&n<224?s[i++]=(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,s[i++]=55296+(n>>10),s[i++]=56320+(n&1023)):s[i++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,i>8191&&(r.push(h8(s)),i=0);return r.length?(i&&r.push(h8(s.slice(0,i))),r.join("")):h8(s.slice(0,i))}qv.utf8read=Wet});var T0=A(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.WireType=Wc.mergeBinaryOptions=Wc.UnknownFieldHandler=void 0;var Ket;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,i,n,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:i,wireType:n,data:o})},t.onWrite=(r,s,i)=>{for(let{no:n,wireType:o,data:a}of t.list(s))i.tag(n,o).raw(a)},t.list=(r,s)=>{if(e(r)){let i=r[t.symbol];return s?i.filter(n=>n.no==s):i}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(Ket=Wc.UnknownFieldHandler||(Wc.UnknownFieldHandler={}));function Xet(t,e){return Object.assign(Object.assign({},t),e)}Wc.mergeBinaryOptions=Xet;var Zet;(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"})(Zet=Wc.WireType||(Wc.WireType={}))});var Hv=A(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.varint32read=fn.varint32write=fn.int64toString=fn.int64fromString=fn.varint64write=fn.varint64read=void 0;function ett(){let t=0,e=0;for(let s=0;s<28;s+=7){let i=this.buf[this.pos++];if(t|=(i&127)<<s,(i&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 i=this.buf[this.pos++];if(e|=(i&127)<<s,(i&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}fn.varint64read=ett;function ttt(t,e,r){for(let n=0;n<28;n=n+7){let o=t>>>n,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let s=t>>>28&15|(e&7)<<4,i=e>>3!=0;if(r.push((i?s|128:s)&255),!!i){for(let n=3;n<31;n=n+7){let o=e>>>n,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}fn.varint64write=ttt;var Gv=65536*65536;function rtt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,i=0;function n(o,a){let c=Number(t.slice(o,a));i*=r,s=s*r+c,s>=Gv&&(i=i+(s/Gv|0),s=s%Gv)}return n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,s,i]}fn.int64fromString=rtt;function stt(t,e){if(e>>>0<=2097151)return""+(Gv*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,n=r+s*6777216+i*6710656,o=s+i*8147497,a=i*2,c=1e7;n>=c&&(o+=Math.floor(n/c),n%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function l(u,h){let d=u?String(u):"";return h?"0000000".slice(d.length)+d:d}return l(a,0)+l(o,a)+l(n,1)}fn.int64toString=stt;function itt(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)}}fn.varint32write=itt;function ntt(){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}fn.varint32read=ntt});var dd=A(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.PbLong=hd.PbULong=hd.detectBi=void 0;var _0=Hv(),Mt;function aAe(){let t=new DataView(new ArrayBuffer(8));Mt=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}hd.detectBi=aAe;aAe();function cAe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var lAe=/^-?[0-9]+$/,Vv=4294967296,zv=2147483648,$v=c Line truncated
`)}};mT.RpcError=L8});var F8=A(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0});yT.mergeRpcOptions=void 0;var UAe=kr();function Nrt(t,e){if(!e)return t;let r={};gT(t,r),gT(e,r);for(let s of Object.keys(e)){let i=e[s];switch(s){case"jsonOptions":r.jsonOptions=UAe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=UAe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},gT(t.meta,r.meta),gT(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return r}yT.mergeRpcOptions=Nrt;function gT(t,e){if(!t)return;let r=e;for(let[s,i]of Object.entries(t))i instanceof Date?r[s]=new Date(i.getTime()):Array.isArray(i)?r[s]=i.concat():r[s]=i}});var G8=A(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.Deferred=gp.DeferredState=void 0;var Zc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Zc=gp.DeferredState||(gp.DeferredState={}));var q8=class{constructor(e=!0){this._state=Zc.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!==Zc.PENDING)throw new Error(`cannot resolve ${Zc[this.state].toLowerCase()}`);this._resolve(e),this._state=Zc.RESOLVED}reject(e){if(this.state!==Zc.PENDING)throw new Error(`cannot reject ${Zc[this.state].toLowerCase()}`);this._reject(e),this._state=Zc.REJECTED}resolvePending(e){this._state===Zc.PENDING&&this.resolve(e)}rejectPending(e){this._state===Zc.PENDING&&this.reject(e)}};gp.Deferred=q8});var z8=A(ET=>{"use strict";Object.defineProperty(ET,"__esModule",{value:!0});ET.RpcOutputStreamController=void 0;var FAe=G8(),yp=kr(),H8=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){yp.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){yp.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){yp.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(){yp.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;yp.assert(e,"bad state"),yp.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 FAe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;yp.assert(s.state==FAe.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};ET.RpcOutputStreamController=H8});var $8=A(Tg=>{"use strict";var Rrt=Tg&&Tg.__awaiter||function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(Tg,"__esModule",{value:!0});Tg.UnaryCall=void 0;var V8=class{constructor(e,r,s,i,n,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=i,this.response=n,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 Rrt(this,void 0,void 0,function*(){let[e,r,s,i]=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:i}})}};Tg.UnaryCall=V8});var J8=A(_g=>{"use strict";var vrt=_g&&_g.__awaiter||function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(_g,"__esModule",{value:!0});_g.ServerStreamingCall=void 0;var j8=class{constructor(e Line truncated
Operation status: ${d}
Polling status: ${bZ.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let A=a(u,r);if(A!==void 0)return{response:await e(A).catch(IZ({state:r,stateProxy:s,isOperationError:c})),status:d}}return{response:u,status:d}}o(ZDe,"pollOperationHelper");async function xZ(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:A,getError:p,updateState:f,setDelay:m,isDone:g,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:C,status:I}=await ZDe({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:E,getResourceLocation:a,isOperationError:l,options:n});if(SZ({status:I,response:C,state:r,stateProxy:s,isDone:g,processResult:A,getError:p,setErrorAsResult:y}),!bZ.includes(I)){let B=d?.(C);B&&m(B);let N=c?.(C,r);if(N!==void 0){let Q=E!==N;r.config.operationLocation=N,u?.(N,Q)}else u?.(E,!1)}f?.(r,C)}}o(xZ,"pollOperation");function QZ(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(QZ,"getOperationLocationPollingUrl");function RZ(t){return t.headers.location}o(RZ,"getLocationHeader");function TZ(t){return t.headers["operation-location"]}o(TZ,"getOperationLocationHeader");function vZ(t){return t.headers["azure-asyncoperation"]}o(vZ,"getAzureAsyncOperationHeader");function eOe(t){let{location:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t;switch(r){case"PUT":return s;case"DELETE":return;default:switch(n){case"azure-async-operation":return;case"original-uri":return s;default:return e}}}o(eOe,"findResourceLocation");function PZ(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=TZ(e),a=vZ(e),c=QZ({operationLocation:i,azureAsyncOperation:a}),l=RZ(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:eOe({requestMethod:u,location:l,requestPath:s,resourceLocationConfig:n})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}o(PZ,"inferLroMode");function _Z(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 JO(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 iu.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(_Z,"transformStatus");function tOe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return _Z({status:r,statusCode:t.statusCode})}o(tOe,"getStatus");function rOe(t){var e,r;let{properties:s,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=s?.provisioningState)!==null&&r!==void 0?r:n;return _Z({status:i,statusCode:t.statusCode})}o(rOe,"getProvisioningState");function JO(t){return t===202?"running":t<300?"succeeded":"failed"}o(JO,"toOperationStatus");function kZ({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?sOe(new Date(e)):r*1e3}}o(kZ,"parseRetryAfter");function DZ(t){let e=t.flatResponse.error;if(!e){iu.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){iu.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(DZ,"getErrorFromResponse");function sOe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(sOe,"calculatePollingIntervalFromDate");function OZ(t){let{response:e,state:r,operationLocation:s}=t;function n(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return JO(e.rawResponse.statusCode);case"Body":return YO(e,r);default:return"running"}}o(n,"helper");let i=n();return i==="running"&&s===void 0?"succeeded":i}o(OZ,"getStatusFromInitialResponse");async function nOe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return NZ({init:o(async()=>{let a=await n.sendInitialRequest(),c=PZ({rawResponse:a.rawResponse,requestPath:n.requestPath,requestMethod:n.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:s?({flatResponse:a},c)=>s(a,c):({flatResponse:a})=>a,getOperationStatus:OZ,setErrorAsResult:i})}o(nOe,"initHttpOperation");function MZ({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return QZ({operationLocation:TZ(t),azureAsyncOperLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:a=i,n=1;break;case 1:r[s++]=a<<2|(i&48)>>4,a=i,n=2;break;case 2:r[s++]=(a&15)<<4|(i&60)>>2,a=i,n=3;break;case 3:r[s++]=(a&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}o(qOe,"base64decode");kA.base64decode=qOe;function GOe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=Ia[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=Ia[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=Ia[n|s>>6],e+=Ia[s&63],r=0;break}return r&&(e+=Ia[n],e+="=",r==1&&(e+="=")),e}o(GOe,"base64encode");kA.base64encode=GOe});var p7=h(xb=>{"use strict";Object.defineProperty(xb,"__esModule",{value:!0});xb.utf8read=void 0;var sM=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function HOe(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,a=t.length;for(;e<a;)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(sM(s)),n=0);return r.length?(n&&r.push(sM(s.slice(0,n))),r.join("")):sM(s.slice(0,n))}o(HOe,"utf8read");xb.utf8read=HOe});var Lm=h(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.WireType=ho.mergeBinaryOptions=ho.UnknownFieldHandler=void 0;var VOe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,a)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:a})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:a,data:c}of t.list(s))n.tag(i,a).raw(c)},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=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(VOe=ho.UnknownFieldHandler||(ho.UnknownFieldHandler={}));function zOe(t,e){return Object.assign(Object.assign({},t),e)}o(zOe,"mergeBinaryOptions");ho.mergeBinaryOptions=zOe;var JOe;(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"})(JOe=ho.WireType||(ho.WireType={}))});var Rb=h(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.varint32read=fs.varint32write=fs.int64toString=fs.int64fromString=fs.varint64write=fs.varint64read=void 0;function YOe(){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")}o(YOe,"varint64read");fs.varint64read=YOe;function $Oe(t,e,r){for(let i=0;i<28;i=i+7){let a=t>>>i,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)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 a=e>>>i,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o($Oe,"varint64write");fs.varint64write=$Oe;var Qb=65536*65536;function WOe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(a,c){let l=Number(t.slice(a,c));n*=r,s=s*r+l,s>=Qb&&(n=n+(s/Qb|0),s=s%Qb)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}o(WOe,"int64fromString");fs.int64fromString=WOe;function jOe(t,e){if(e>>>0<=2097151)return""+(Qb*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,a=s+n*8147497,c=n*2,l=1e7;i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,A){let p=d?String(d):"";return A?"0000000".slice(p.length)+p:p}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(i,1)}o(jOe,"int64toString");fs.int64toString=jOe;function KOe(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)}}o(KOe,"varint32write");fs.varint32write=KOe;function XOe(){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}o(XOe,"varint32read");fs.varint32read=XOe});var Qc=h(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.PbLong=xc.PbULong=xc.detectBi=void 0;var Fm=Rb(),Ve;function f7(){let t=new DataView(new ArrayBuffer(8));Ve=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" Line truncated
`)}};rw.RpcError=TM});var PM=h(nw=>{"use strict";Object.defineProperty(nw,"__esModule",{value:!0});nw.mergeRpcOptions=void 0;var J7=Dt();function CLe(t,e){if(!e)return t;let r={};sw(t,r),sw(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=J7.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=J7.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},sw(t.meta,r.meta),sw(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}o(CLe,"mergeRpcOptions");nw.mergeRpcOptions=CLe;function sw(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}o(sw,"copy")});var kM=h(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.Deferred=uu.DeferredState=void 0;var Eo;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Eo=uu.DeferredState||(uu.DeferredState={}));var _M=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Eo.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!==Eo.PENDING)throw new Error(`cannot resolve ${Eo[this.state].toLowerCase()}`);this._resolve(e),this._state=Eo.RESOLVED}reject(e){if(this.state!==Eo.PENDING)throw new Error(`cannot reject ${Eo[this.state].toLowerCase()}`);this._reject(e),this._state=Eo.REJECTED}resolvePending(e){this._state===Eo.PENDING&&this.resolve(e)}rejectPending(e){this._state===Eo.PENDING&&this.reject(e)}};uu.Deferred=_M});var OM=h(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});iw.RpcOutputStreamController=void 0;var Y7=kM(),du=Dt(),DM=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let 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){du.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){du.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){du.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(){du.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:o(()=>{let e=this._itState;du.assert(e,"bad state"),du.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 Y7.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;du.assert(s.state==Y7.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};iw.RpcOutputStreamController=DM});var LM=h(qA=>{"use strict";var ILe=qA&&qA.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};Object.defineProperty(qA,"__esModule",{value:!0});qA.UnaryCall=void 0;var MM=class{static{o(this,"UnaryCall")}constructor(e,r,s,n,i,a,c){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=a,this.trailers=c}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 ILe(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}})}};qA.UnaryCall=MM});var UM=h(GA=>{"use strict";var BLe=GA&&GA.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){t Line truncated
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function Sit(){Object.keys(qT).forEach(function(t){delete qT[t]})}});var HT=A(rl=>{"use strict";rl.__esModule=!0;rl.HandlebarsEnvironment=jz;function ege(t){return t&&t.__esModule?t:{default:t}}var wp=_i(),xit=so(),Vz=ege(xit),Nit=qz(),Rit=Wme(),vit=Hz(),GT=ege(vit),Tit=zz(),_it="4.7.9";rl.VERSION=_it;var Qit=8;rl.COMPILER_REVISION=Qit;var Pit=7;rl.LAST_COMPATIBLE_COMPILER_REVISION=Pit;var Oit={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};rl.REVISION_CHANGES=Oit;var $z="[object Object]";function jz(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Nit.registerDefaultHelpers(this),Rit.registerDefaultDecorators(this)}jz.prototype={constructor:jz,logger:GT.default,log:GT.default.log,registerHelper:function(e,r){if(wp.toString.call(e)===$z){if(r)throw new Vz.default("Arg not supported with multiple helpers");wp.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(wp.toString.call(e)===$z)wp.extend(this.partials,e);else{if(typeof r>"u")throw new Vz.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if(wp.toString.call(e)===$z){if(r)throw new Vz.default("Arg not supported with multiple decorators");wp.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){Tit.resetLoggedProperties()}};var Dit=GT.default.log;rl.log=Dit;rl.createFrame=wp.createFrame;rl.logger=GT.default});var rge=A((zT,tge)=>{"use strict";zT.__esModule=!0;function Jz(t){this.string=t}Jz.prototype.toString=Jz.prototype.toHTML=function(){return""+this.string};zT.default=Jz;tge.exports=zT.default});var sge=A(Yz=>{"use strict";Yz.__esModule=!0;Yz.wrapHelper=kit;function kit(t,e){if(typeof t!="function")return t;var r=function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)};return r}});var lge=A(Ad=>{"use strict";Ad.__esModule=!0;Ad.checkRevision=Git;Ad.template=Hit;Ad.wrapProgram=VT;Ad.resolvePartial=zit;Ad.invokePartial=Vit;Ad.noop=age;function Mit(t){return t&&t.__esModule?t:{default:t}}function Lit(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var Uit=_i(),Gg=Lit(Uit),Fit=so(),Su=Mit(Fit),xu=HT(),ige=qz(),qit=sge(),nge=zz();function Git(t){var e=t&&t[0]||1,r=xu.COMPILER_REVISION;if(!(e>=xu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=xu.COMPILER_REVISION))if(e<xu.LAST_COMPATIBLE_COMPILER_REVISION){var s=xu.REVISION_CHANGES[r],i=xu.REVISION_CHANGES[e];throw new Su.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+i+").")}else throw new Su.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}function Hit(t,e){if(!e)throw new Su.default("No environment passed to template");if(!t||!t.main)throw new Su.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function s(o,a,c){c.hash&&(a=Gg.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var l=e.VM.invokePartial.call(this,o,a,c);if(l==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),l=c.partials[c.name](a,c)),l!=null){if(c.indent){for(var u=l.split(`
`),h=0,d=u.length;h<d&&!(!u[h]&&h+1===d);h++)u[h]=c.indent+u[h];l=u.join(`
`)}return l}else throw new Su.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var i={strict:function(a,c,l){if(!a||!(c in a))throw new Su.default('"'+c+'" not defined in '+a,{loc:l});return i.lookupProperty(a,c)},lookupProperty:function(a,c){var l=a[c];if(l==null||Object.prototype.hasOwnProperty.call(a,c)||nge.resultIsAllowed(l,i.protoAccessControl,c))return l},lookup:function(a,c){for(var l=a.length,u=0;u<l;u++){var h=a[u]&&i.lookupProperty(a[u],c);if(h!=null)return h}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:Gg.escapeExpression,invokePartial:s,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,l,u,h){var d=this.programs[a],f=this.fn(a);return c||h||u||l?d=VT(this,a,f,c,l,u,h):d||(d=this.programs[a]=VT(this,a,f)),d},data:function(a,c){for(;a&&c--;)a=a._parent;return a},mergeIfNeeded:function(a,c){var l=a||c;return a&&c&&a!==c&&(l=Gg.extend({},c,a)),l},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function n(o){var a=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=a.data;n._setup(a),!a.partial&&t.useData&&(c=$it(o,c));var l=void 0,u=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?l=o!=a.depths[0]?[o].concat(a.depths):a.depths:l=[o]);function h(d){return""+t.main(i,d,i.helpers,i.partials,c,u,l)}return h=cge(t.main,h,i,a.depths||[],c,u),h(o,a)}return n.isTop=!0,n._setup=function(o){if(o.partial)i.protoAccessControl=o.protoAccessControl,i.helpers=o.helpers,i.partials=o.partials,i.decorators=o.decorators,i.hooks=o.hooks;else{var a={};oge(a,e.helpers,i),oge(a,o.helpers,i),i.helpers=a,t.usePartial&&(i.partials=i.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(i.decorators=Gg.extend({},e.decorators,o.decorators)),i.hooks={},i.protoAccessControl=nge.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;ige.moveHelperToHooks(i,"helperMissing",c),ige.moveHelperToHooks(i,"blockHelperMissing",c)}},n._child=function(o,a,c,l){if(t.useBlockParams&&!c)throw new Su.default("must pass block params");if(t.useDepths&&!l)throw new Su.default("must pass parent depths");return VT(i,o,t[o],a,0,c,l)},n}function VT(t,e,r,s,i,n,o){function a(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=o;return o&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(u=[c].concat(o)),r(t,c,t.helpers,t.partials,l.data||s,n&&[l.blockParams].concat(n),u)}return a=cge(r,a,t,o,s,n),a.program=e,a.depth=o?o.length:0,a.blockParams=i||0,a}function zit(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=$T(r.partials,t)):r.name==="@partial-block"?t=$T(r.data,"partial-block"):t=$T(r.partials,r.name),t}function Vit(t,e,r){var s=$T(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==age&&(function(){r.data=xu.createFrame(r.data);var n=r.fn;i=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=xu.createFrame(c.data),c.data["partial-block"]=s,n(a,c)},n.partials&&(r.partials=Gg.extend({},r.partials,n.partials))})(),t===void 0&&i&&(t=i),t===void 0)throw new Su.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function age(){return""}function $T(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function $it(t,e){return(!e||!("root"in e))&&(e=e?xu.createFrame(e):{},e.root=t),e}function cge(t,e,r,s,i,n){if(t.decorator){var o={};e=t.decorator(e,o,r,s&&s[0],i,n,s),Gg.extend(e,o)}return e}function oge(t,e,r){e&&Object.keys(e).forEach(function(s){var i=e[s];t[s]=jit(i,r)})}function jit(t,e){var r=e.lookupProperty;return qit.wrapHelper(t,function(s){return s.lookupProperty=r,s})}});var Wz=A((jT,uge)=>{"use strict";jT.__esModule=!0;jT.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};uge.exports=jT.default});var Age=A((JT,pge)=>{"use strict";JT.__esModule=!0;function Xz(t){return t&&t.__esModule?t:{default:t}}function Zz(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var Jit=HT(),hge=Zz(Jit),Yit=rge(),Wit=Xz(Yit),Kit=so(),Xit=Xz(Kit),Zit=_i(),Kz=Zz(Zit),ent=lge(),dge=Zz(ent),tnt=Wz(),rnt=Xz(tnt);function fge(){var t=new hge.HandlebarsEnvironment;return Kz.extend(t,hge),t.SafeString=Wit.default,t.Exception=Xit.default,t.Utils=Kz,t.escapeExpression=Kz.escapeExpression,t.VM=dge,t.template=function(e){return dge.template(e,t)},t}var Y0=fge();Y0.create=fge;rnt.default(Y0);Y0.default=Y0;JT.default=Y0;pge.exports=JT.default});var eV=A((YT,gge)=>{"use strict";YT.__esModule=!0;var mge={helpers:{helperExpression:function(e){return e.type===" Line truncated
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(g1e,"logUnexpecedPropertyAccessOnce");function E1e(){Object.keys(xw).forEach(function(t){delete xw[t]})}o(E1e,"resetLoggedProperties")});var Rw=h(Io=>{"use strict";Io.__esModule=!0;Io.HandlebarsEnvironment=UL;function ate(t){return t&&t.__esModule?t:{default:t}}o(ate,"_interopRequireDefault");var gu=Yr(),y1e=Zs(),LL=ate(y1e),C1e=kL(),I1e=ste(),B1e=OL(),Qw=ate(B1e),b1e=ML(),w1e="4.7.9";Io.VERSION=w1e;var S1e=8;Io.COMPILER_REVISION=S1e;var N1e=7;Io.LAST_COMPATIBLE_COMPILER_REVISION=N1e;var x1e={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Io.REVISION_CHANGES=x1e;var FL="[object Object]";function UL(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},C1e.registerDefaultHelpers(this),I1e.registerDefaultDecorators(this)}o(UL,"HandlebarsEnvironment");UL.prototype={constructor:UL,logger:Qw.default,log:Qw.default.log,registerHelper:o(function(e,r){if(gu.toString.call(e)===FL){if(r)throw new LL.default("Arg not supported with multiple helpers");gu.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(gu.toString.call(e)===FL)gu.extend(this.partials,e);else{if(typeof r>"u")throw new LL.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(gu.toString.call(e)===FL){if(r)throw new LL.default("Arg not supported with multiple decorators");gu.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){b1e.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Q1e=Qw.default.log;Io.log=Q1e;Io.createFrame=gu.createFrame;Io.logger=Qw.default});var lte=h((Tw,cte)=>{"use strict";Tw.__esModule=!0;function qL(t){this.string=t}o(qL,"SafeString");qL.prototype.toString=qL.prototype.toHTML=function(){return""+this.string};Tw.default=qL;cte.exports=Tw.default});var ute=h(GL=>{"use strict";GL.__esModule=!0;GL.wrapHelper=R1e;function R1e(t,e){if(typeof t!="function")return t;var r=o(function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)},"wrapper");return r}o(R1e,"wrapHelper")});var mte=h(vc=>{"use strict";vc.__esModule=!0;vc.checkRevision=D1e;vc.template=O1e;vc.wrapProgram=vw;vc.resolvePartial=M1e;vc.invokePartial=L1e;vc.noop=fte;function T1e(t){return t&&t.__esModule?t:{default:t}}o(T1e,"_interopRequireDefault");function v1e(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(v1e,"_interopRequireWildcard");var P1e=Yr(),ZA=v1e(P1e),_1e=Zs(),wa=T1e(_1e),Sa=Rw(),dte=kL(),k1e=ute(),Ate=ML();function D1e(t){var e=t&&t[0]||1,r=Sa.COMPILER_REVISION;if(!(e>=Sa.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Sa.COMPILER_REVISION))if(e<Sa.LAST_COMPATIBLE_COMPILER_REVISION){var s=Sa.REVISION_CHANGES[r],n=Sa.REVISION_CHANGES[e];throw new wa.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+n+").")}else throw new wa.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(D1e,"checkRevision");function O1e(t,e){if(!e)throw new wa.default("No environment passed to template");if(!t||!t.main)throw new wa.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function s(a,c,l){l.hash&&(c=ZA.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&e.compile&&(l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)),u!=null){if(l.indent){for(var d=u.split(`
`),A=0,p=d.length;A<p&&!(!d[A]&&A+1===p);A++)d[A]=l.indent+d[A];u=d.join(`
`)}return u}else throw new wa.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(s,"invokePartialWrapper");var n={strict:o(function(c,l,u){if(!c||!(l in c))throw new wa.default('"'+l+'" not defined in '+c,{loc:u});return n.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||Ate.resultIsAllowed(u,n.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,d=0;d<u;d++){var A=c[d]&&n.lookupProperty(c[d],l);if(A!=null)return A}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:ZA.escapeExpression,invokePartial:s,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,d,A){var p=this.programs[c],f=this.fn(c);return l||A||d||u?p=vw(this,c,f,l,u,d,A):p||(p=this.programs[c]=vw(this,c,f)),p},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=ZA.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function i(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;i._setup(c),!c.partial&&t.useData&&(l=F1e(a,l));var u=void 0,d=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function A(p){return""+t.main(n,p,n.helpers,n.partials,l,d,u)}return o(A,"main"),A=hte(t.main,A,n,c.depths||[],l,d),A(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)n.protoAccessControl=a.protoAccessControl,n.helpers=a.helpers,n.partials=a.partials,n.decorators=a.decorators,n.hooks=a.hooks;else{var c={};pte(c,e.helpers,n),pte(c,a.helpers,n),n.helpers=c,t.usePartial&&(n.partials=n.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=ZA.extend({},e.decorators,a.decorators)),n.hooks={},n.protoAccessControl=Ate.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;dte.moveHelperToHooks(n,"helperMissing",l),dte.moveHelperToHooks(n,"blockHelperMissing",l)}},i._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new wa.default("must pass block params");if(t.useDepths&&!u)throw new wa.default("must pass parent depths");return vw(n,a,t[a],c,0,l,u)},i}o(O1e,"template");function vw(t,e,r,s,n,i,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(d=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||s,i&&[u.blockParams].concat(i),d)}return o(c,"prog"),c=hte(r,c,t,a,s,i),c.program=e,c.depth=a?a.length:0,c.blockParams=n||0,c}o(vw,"wrapProgram");function M1e(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=Pw(r.partials,t)):r.name==="@partial-block"?t=Pw(r.data,"partial-block"):t=Pw(r.partials,r.name),t}o(M1e,"resolvePartial");function L1e(t,e,r){var s=Pw(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==fte&&(function(){r.data=Sa.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=Sa.createFrame(l.data),l.data["partial-block"]=s,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=ZA.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new wa.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(L1e,"invokePartial");function fte(){return""}o(fte,"noop");function Pw(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(Pw,"lookupOwnProperty");function F1e(t,e){return(!e||!("root"in e))&&(e=e?Sa.createFrame(e):{},e.root=t),e}o(F1e,"initData");function hte(t,e,r,s,n,i){if(t.decorator){var a={};e=t.decorator(e,a,r,s&&s[0],n,i,s),ZA.extend(e,a)}return e}o(hte,"executeDecorators");function pte(t,e,r){e&&Object.keys(e).forEach(function(s){var n=e[s];t[s]=U1e(n,r)})}o(pte,"addHelpers");function U1e(t,e){var r=e.lookupProperty;return k1e.wrapHelper(t,function(s){return s.lookupProperty=r,s})}o(U1e,"passLookupPropertyOption")});var HL=h((_w,gte)=>{"use strict";_w.__esModule=!0;_w.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};gte.exports=_w.default});var Bte=h((kw,Ite)=>{"use strict";kw.__esModule=!0;function zL(t){return t&&t.__esModule?t:{default:t}}o(zL,"_interopRequireDefault");function JL(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(JL,"_interopRequireWildcard");var q1e=Rw(),Ete=JL(q1e),G1e=lte(),H1e=zL(G1e),V1e=Zs(),z1e=zL(V1e),J1e=Yr(),VL=JL(J1e),Y1e=mte Line truncated
`+this.lexer.showPosition()+`
Expecting `+V.join(", ")+", got '"+(this.terminals_[S]||S)+"'":re="Parse error on line "+(h+1)+": Unexpected "+(S==1?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(re,{text:this.lexer.match,token:this.terminals_[S]||S,line:this.lexer.yylineno,loc:E,expected:V})}}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+S);switch(Q[0]){case 1:o.push(S),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(Q[1]),S=null,N?(S=N,N=null):(d=this.lexer.yyleng,u=this.lexer.yytext,h=this.lexer.yylineno,E=this.lexer.yylloc,f>0&&f--);break;case 2:if(U=this.productions_[Q[1]][1],X.$=a[a.length-U],X._$={first_line:c[c.length-(U||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(U||1)].first_column,last_column:c[c.length-1].last_column},y&&(X._$.range=[c[c.length-(U||1)].range[0],c[c.length-1].range[1]]),G=this.performAction.call(X,u,d,h,this.yy,Q[1],a,c),typeof G<"u")return G;U&&(o=o.slice(0,-1*U*2),a=a.slice(0,-1*U),c=c.slice(0,-1*U)),o.push(this.productions_[Q[1]][0]),a.push(X.$),c.push(X._$),q=l[o[o.length-2]][o[o.length-1]],o.push(q);break;case 3:return!0}}return!0}},e=(function(){var s={EOF:1,parseError:function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},setInput:function(n){return this._input=n,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var o=n.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var o=n.length,a=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o-1),this.offset-=o;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-o]),this},more:function(){return this._more=!0,this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),o=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
`+o+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,o,a,c,l,u;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),d=0;d<h.length&&(a=this._input.match(this.rules[h[d]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=d,!this.options.flex)));d++);return o?(u=o[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],n=this.performAction.call(this,this.yy,this,h[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return typeof n<"u"?n:this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(n){this.begin(n)}};return s.options={},s.performAction=function(n,o,a,c){function l(h,d){return o.yytext=o.yytext.substring(h,o.yyleng-d+h)}var u=c;switch(a){case 0:if(o.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):o.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),o.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(o.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return o.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return o.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return o.yytext=o.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},s.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},s})();t.lexer=e;function r(){this.yy={}}return r.prototype=t,t.Parser=r,new r})();WT.default=snt;yge.exports=WT.default});var e_=A((ZT,bge)=>{"use strict";ZT.__esModule=!0;function int(t){return t&&t.__esModule?t:{default:t}}var nnt=so(),tV=int(nnt);function KT(){this.parents=[]}KT.prototype={constructor:KT,mutating:!1,acceptKey:function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!KT.prototype[s.type])throw new tV.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new tV.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},accept:function(e){if(e){if(!this[e.type])throw new tV.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:XT,Decorator:XT,BlockStatement:Cge,DecoratorBlock:Cge,PartialStatement:Ige,PartialBlockStatement:function(e){Ige.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:XT,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}};function XT(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function Line truncated
`])}),e},each:function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new Np(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Np?e:(e=wV(e,this,r),new Np(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var r=this,s=[];Object.keys(e).forEach(function(n){var o=wV(e[n],r);o!=="undefined"&&s.push([r.quotedString(n),":",o])});var i=this.generateList(s);return i.prepend("{"),i.add("}"),i},generateList:function(e){for(var r=this.empty(),s=0,i=e.length;s<i;s++)s&&r.add(","),r.add(wV(e[s],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};c_.default=sye;iye.exports=c_.default});var uye=A((l_,lye)=>{"use strict";l_.__esModule=!0;function cye(t){return t&&t.__esModule?t:{default:t}}var oye=HT(),rot=so(),SV=cye(rot),sot=_i(),iot=nye(),aye=cye(iot);function Jg(t){this.value=t}function Yg(){}Yg.prototype={nameLookup:function(e,r){return this.internalNameLookup(e,r)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=oye.COMPILER_REVISION,r=oye.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,s){return sot.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,r,s,i){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!s,this.context=s||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var n=e.opcodes,o=void 0,a=void 0,c=void 0,l=void 0;for(c=0,l=n.length;c<l;c++)o=n[c],this.source.currentLocation=o.loc,a=a||o.loc,this[o.opcode].apply(this,o.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new SV.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`]),this.decorators.push("return fn;"),i?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
Expecting `+ue.join(", ")+", got '"+(this.terminals_[B]||B)+"'":vr="Parse error on line "+(A+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(vr,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:y,expected:ue})}}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+B);switch(D[0]){case 1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(D[1]),B=null,N?(B=N,N=null):(p=this.lexer.yyleng,d=this.lexer.yytext,A=this.lexer.yylineno,y=this.lexer.yylloc,f>0&&f--);break;case 2:if(me=this.productions_[D[1]][1],Re.$=c[c.length-me],Re._$={first_line:l[l.length-(me||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(me||1)].first_column,last_column:l[l.length-1].last_column},E&&(Re._$.range=[l[l.length-(me||1)].range[0],l[l.length-1].range[1]]),Se=this.performAction.call(Re,d,p,A,this.yy,D[1],c,l),typeof Se<"u")return Se;me&&(a=a.slice(0,-1*me*2),c=c.slice(0,-1*me),l=l.slice(0,-1*me)),a.push(this.productions_[D[1]][0]),c.push(Re.$),l.push(Re._$),Je=u[a[a.length-2]][a[a.length-1]],a.push(Je);break;case 3:return!0}}return!0},"parse")},e=(function(){var s={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:o(function(i){return this._input=i,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),p=0;p<A.length&&(c=this._input.match(this.rules[A[p]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=p,!this.options.flex)));p++);return a?(d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],i=this.performAction.call(this,this.yy,this,A[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var i=this.next();return typeof i<"u"?i:this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(i){this.begin(i)},"begin")};return s.options={},s.performAction=o(function(i,a,c,l){function u(A,p){return a.yytext=a.yytext.substring(A,a.yyleng-p+A)}o(u,"strip");var d=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),s.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},s})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();Ow.default=j1e;Ste.exports=Ow.default});var Uw=h((Fw,Rte)=>{"use strict";Fw.__esModule=!0;function K1e(t){return t&&t.__esModule?t:{default:t}}o(K1e,"_interopRequireDefault");var X1e=Zs(),$L=K1e(X1e);function Mw(){this.parents=[]}o(Mw,"Visitor");Mw.prototype={constructor:Mw,mutating:!1,acceptKey:o(function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!Mw.prototype[s.type])throw new $L.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new $L.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},"acceptArray"),accept:o(function(e){if(e){if(!this[e.type])throw new $L.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},"accept"),Program:o(function(e){this.acceptArray(e.body)},"Program"),MustacheStatement:Lw,Decorator:Lw,BlockStatement:xte,DecoratorBlock:xte,PartialStatement:Qte,PartialBlockStatement:o(function(e){Qte.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:Lw,PathExpression:o(function(){},"PathExpressionLine truncated
`])}),e},"merge"),each:o(function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new Iu(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Iu?e:(e=mF(e,this,r),new Iu(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},"functionCall"),quotedString:o(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,s=[];Object.keys(e).forEach(function(i){var a=mF(e[i],r);a!=="undefined"&&s.push([r.quotedString(i),":",a])});var n=this.generateList(s);return n.prepend("{"),n.add("}"),n},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),s=0,n=e.length;s<n;s++)s&&r.add(","),r.add(mF(e[s],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};$w.default=ure;dre.exports=$w.default});var gre=h((Ww,mre)=>{"use strict";Ww.__esModule=!0;function hre(t){return t&&t.__esModule?t:{default:t}}o(hre,"_interopRequireDefault");var pre=Rw(),WUe=Zs(),EF=hre(WUe),jUe=Yr(),KUe=Are(),fre=hre(KUe);function ip(t){this.value=t}o(ip,"Literal");function op(){}o(op,"JavaScriptCompiler");op.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=pre.COMPILER_REVISION,r=pre.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,s){return jUe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,s,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!s,this.context=s||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=i.length;l<u;l++)a=i[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new EF.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`]),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
`),this.decorators.push(`}
`),this.decorators=this.decorators.merge()));var u=this.createFunctionContext(i);if(this.isChild)return u;var h={compiler:this.compilerInfo(),main:u};this.decorators&&(h.main_d=this.decorators,h.useDecorators=!0);var d=this.context,f=d.programs,p=d.decorators;for(c=0,l=f.length;c<l;c++)h[c]=f[c],p[c]&&(h[c+"_d"]=p[c],h.useDecorators=!0);return this.environment.usePartial&&(h.usePartial=!0),this.options.data&&(h.useData=!0),this.useDepths&&(h.useDepths=!0),this.useBlockParams&&(h.useBlockParams=!0),this.options.compat&&(h.compat=!0),i?h.compilerOptions=this.options:(h.compiler=JSON.stringify(h.compiler),this.source.currentLocation={start:{line:1,column:0}},h=this.objectLiteral(h),r.srcName?(h=h.toStringWithSourceMap({file:r.destName}),h.map=h.map&&h.map.toString()):h=h.toString()),h},preamble:function(){this.lastContext=0,this.source=new aye.default(this.options.srcName),this.decorators=new aye.default(this.options.srcName)},createFunctionContext:function(e){var r=this,s="",i=this.stackVars.concat(this.registers.list);i.length>0&&(s+=", "+i.join(", "));var n=0;Object.keys(this.aliases).forEach(function(c){var l=r.aliases[c];l.children&&l.referenceCount>1&&(s+=", alias"+ ++n+"="+c,l.children[0]="alias"+n)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+this.lookupPropertyFunctionVarDeclaration());var o=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths");var a=this.mergeSource(s);return e?(o.push(a),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),`) {
`,a,"}"])},mergeSource:function(e){var r=this.environment.isSimple,s=!this.forceBuffer,i=void 0,n=void 0,o=void 0,a=void 0;return this.source.each(function(c){c.appendToBuffer?(o?c.prepend(" + "):o=c,a=c):(o&&(n?o.prepend("buffer += "):i=!0,a.add(";"),o=a=void 0),n=!0,r||(s=!1))}),s?o?(o.prepend("return "),a.add(";")):n||this.source.push('return "";'):(e+=", buffer = "+(i?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(i?"":`;
`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
`),this.decorators=this.decorators.merge()));var d=this.createFunctionContext(n);if(this.isChild)return d;var A={compiler:this.compilerInfo(),main:d};this.decorators&&(A.main_d=this.decorators,A.useDecorators=!0);var p=this.context,f=p.programs,m=p.decorators;for(l=0,u=f.length;l<u;l++)A[l]=f[l],m[l]&&(A[l+"_d"]=m[l],A.useDecorators=!0);return this.environment.usePartial&&(A.usePartial=!0),this.options.data&&(A.useData=!0),this.useDepths&&(A.useDepths=!0),this.useBlockParams&&(A.useBlockParams=!0),this.options.compat&&(A.compat=!0),n?A.compilerOptions=this.options:(A.compiler=JSON.stringify(A.compiler),this.source.currentLocation={start:{line:1,column:0}},A=this.objectLiteral(A),r.srcName?(A=A.toStringWithSourceMap({file:r.destName}),A.map=A.map&&A.map.toString()):A=A.toString()),A},"compile"),preamble:o(function(){this.lastContext=0,this.source=new fre.default(this.options.srcName),this.decorators=new fre.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,s="",n=this.stackVars.concat(this.registers.list);n.length>0&&(s+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(s+=", alias"+ ++i+"="+l,u.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(s);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,s=!this.forceBuffer,n=void 0,i=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(i?a.prepend("buffer += "):n=!0,c.add(";"),a=c=void 0),i=!0,r||(s=!1))}),s?a?(a.prepend("return "),c.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
`.trim()},blockValue:function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var i=this.popStack();s.splice(1,0,i),this.push(this.source.functionCall(r,"call",s))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",this.source.functionCall(e,"call",r),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,r,s,i){var n=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[n++])):this.pushContext(),this.resolvePath("context",e,n,r,s)},lookupBlockParam:function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},resolvePath:function(e,r,s,i,n){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(not(this.options.strict&&n,this,r,s,e));return}for(var a=r.length,c=function(u){o.replaceStack(function(h){var d=o.nameLookup(h,r[u],e);return i?[" && ",d]:[" != null ? ",d," : ",h]})},l=s;l<a;l++)c(l)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,r){var s=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",s,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",i])," || fn;"])},invokeHelper:function(e,r,s){var i=this.popStack(),n=this.setupHelper(e,r),o=[];s&&o.push(n.name),o.push(i),this.options.strict||o.push(this.aliasable("container.hooks.helperMissing"));var a=["(",this.itemsSeparatedBy(o,"||"),")"],c=this.source.functionCall(a,"call",n.callParams);this.push(c)},itemsSeparatedBy:function(e,r){var s=[];s.push(e[0]);for(var i=1;i<e.length;i++)s.push(r,e[i]);return s},invokeKnownHelper:function(e,r){var s=this.setupHelper(e,r);this.push(this.source.functionCall(s.name,"call",s.callParams))},invokeAmbiguous:function(e,r){this.useRegister("helper");var s=this.popStack();this.emptyHash();var i=this.setupHelper(0,e,r),n=this.lastHelper=this.nameLookup("helpers",e,"helper"),o=["(","(helper = ",n," || ",s,")"];this.options.strict||(o[0]="(helper = ",o.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",o,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},invokePartial:function(e,r,s){var i=[],n=this.setupParams(r,1,i);e&&(r=this.popStack(),delete n.name),s&&(n.indent=JSON.stringify(s)),n.helpers="helpers",n.partials="partials",n.decorators="container.decorators",e?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(n.depths="depths"),n=this.objectLiteral(n),i.push(n),this.push(this.source.functionCall("container.invokePartial","",i))},assignToHash Line truncated
`,e};wr.prototype.Program=function(t){var e="",r=t.body,s=void 0,i=void 0;if(t.blockParams){var n="BLOCK PARAMS: [";for(s=0,i=t.blockParams.length;s<i;s++)n+=" "+t.blockParams[s];n+=" ]",e+=this.pad(n)}for(s=0,i=r.length;s<i;s++)e+=this.accept(r[s]);return this.padding--,e};wr.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};wr.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};wr.prototype.BlockStatement=wr.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};wr.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};wr.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};wr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};wr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};wr.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,i=0,n=e.length;i<n;i++)r.push(this.accept(e[i]));return e="["+r.join(", ")+"]",s=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+s};wr.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};wr.prototype.StringLiteral=function(t){return'"'+t.value+'"'};wr.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};wr.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};wr.prototype.UndefinedLiteral=function(){return"UNDEFINED"};wr.prototype.NullLiteral=function(){return"NULL"};wr.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,i=e.length;s<i;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};wr.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var yye=A((J9t,gye)=>{var d_=fye().default,mye=pye();d_.PrintVisitor=mye.PrintVisitor;d_.print=mye.print;gye.exports=d_;function Aye(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=d_.compile(s)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=Aye,require.extensions[".hbs"]=Aye)});var Tye=A(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0});m_.getProxyUrl=Rot;m_.checkBypass=vye;function Rot(t){let e=t.protocol==="https:";if(vye(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 A_(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new A_(`http://${r}`)}else return}function vye(t){if(!t.hostname)return!1;let e=t.hostname;if(vot(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 i=[t.hostname.toUpperCase()];typeof s=="number"&&i.push(`${i[0]}:${s}`);for(let n of r.split(",").map(o=>o.trim().toUpperCase()).filter(o=>o))if(n==="*"||i.some(o=>o===n||o.endsWith(`.${n}`)||n.startsWith(".")&&o.endsWith(`${n}`)))return!0;return!1}function vot(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}var A_=class extends URL{constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var Qye=A(ar=>{"use strict";var Tot=ar&&ar.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),_ot=ar&&ar.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),C_=ar&&ar.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&Tot(r,e,s[i]);return _ot(r,e),r}})(),Lr=ar&&ar.__awaiter||function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(fu Line truncated
`).forEach(r=>{r.match(Lht)||r.match(Uht)||(e+=r)}),Buffer.from(e,"base64")}function qht(t,e="CERTIFICATE"){let s=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...s,`-----END ${e}-----`].join(`
`).concat(`
`)}});var fQ=A(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.SHA2_HASH_ALGOS=xd.RSA_SIGNATURE_ALGOS=xd.ECDSA_SIGNATURE_ALGOS=void 0;xd.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};xd.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};xd.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var z3=A(pQ=>{"use strict";Object.defineProperty(pQ,"__esModule",{value:!0});pQ.RFC3161TimestampVerificationError=void 0;var H3=class extends Error{};pQ.RFC3161TimestampVerificationError=H3});var s0e=A(ll=>{"use strict";var Ght=ll&&ll.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Hht=ll&&ll.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zht=ll&&ll.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&Ght(r,e,s[i]);return Hht(r,e),r}})();Object.defineProperty(ll,"__esModule",{value:!0});ll.TSTInfo=void 0;var r0e=zht(cy()),Vht=fQ(),$ht=z3(),V3=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return Vht.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=r0e.digest(this.messageImprintHashAlgorithm,e);if(!r0e.bufferEqual(r,this.messageImprintHashedMessage))throw new $ht.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};ll.TSTInfo=V3});var n0e=A(ul=>{"use strict";var jht=ul&&ul.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Jht=ul&&ul.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Yht=ul&&ul.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&jht(r,e,s[i]);return Jht(r,e),r}})();Object.defineProperty(ul,"__esModule",{value:!0});ul.RFC3161Timestamp=void 0;var Wht=uQ(),$3=Yht(cy()),i0e=fQ(),bb=z3(),Kht=s0e(),Xht="1.2.840.113549.1.7.2",Zht="1.2.840.113549.1.9.16.1.4",edt="1.2.840.113549.1.9.4",j3=class t{root;constructor(e){this.root=e}static parse(e){let r=Wht.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return i0e.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return i0e.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new Kht.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new bb.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==Xht)throw new bb.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==Zht)throw new bb.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=$3.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!$3.bufferEqual(e,r))throw new bb.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toDER();if(r[0 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 Ebe=A(ybe=>{"use strict";var D$=Fu().Buffer;ybe._dbcs=Gu;var Hs=-1,gbe=-2,ia=-10,Vi=-1e3,by=new Array(256),qb=-1;for(ZQ=0;ZQ<256;ZQ++)by[ZQ]=Hs;var ZQ;function Gu(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]=by.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 i=this.decodeTables.length;this.decodeTables.push(by.slice(0));var n=this.decodeTables.length;this.decodeTables.push(by.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[Vi-o[s]],c=48;c<=57;c++){if(a[c]===Hs)a[c]=Vi-i;else if(a[c]>Vi)throw new Error("gb18030 decode tables conflict at byte 2");for(var l=this.decodeTables[Vi-a[c]],u=129;u<=254;u++){if(l[u]===Hs)l[u]=Vi-n;else{if(l[u]===Vi-n)continue;if(l[u]>Vi)throw new Error("gb18030 decode tables conflict at byte 3")}for(var h=this.decodeTables[Vi-l[u]],d=48;d<=57;d++)h[d]===Hs&&(h[d]=gbe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var f={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipValsLine truncated
Wanted: ${this.expectedSize}
Found: ${this.size}`);s.code="EBADSIZE",s.found=this.size,s.expected=this.expectedSize,s.sri=this.sri,this.emit("error",s)}else if(this.sri&&!r){let s=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);s.code="EINTEGRITY",s.found=e,s.expected=this.digests,s.algorithm=this.algorithm,s.sri=this.sri,this.emit("error",s)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#s=r,this.emit("verified",r))}},ju=class{get isHash(){return!0}constructor(e,r){let s=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let i=this.source.match(s?dAt:hAt);if(!i||s&&!nj.includes(i[1])||!Swe.includes(i[1]))return;this.algorithm=i[1],this.digest=i[2];let n=i[3];n&&(this.options=n.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let s=uo(e,r);if(!s)return!1;if(s.isIntegrity){let i=s.pickAlgorithm(r,[this.algorithm]);if(!i)return!1;let n=s[i].find(o=>o.digest===this.digest);return n||!1}return s.digest===this.digest?s:!1}toString(e){return e?.strict&&!(nj.includes(this.algorithm)&&this.digest.match(uAt)&&this.options.every(r=>r.match(fAt)))?"":`${this.algorithm}-${this.digest}${Yb(this.options)}`}};function Bwe(t,e,r,s){let i=t!=="",n=!1,o="",a=s.length-1;for(let l=0;l<a;l++){let u=ju.prototype.toString.call(s[l],r);u&&(n=!0,o+=u,o+=e)}let c=ju.prototype.toString.call(s[a],r);return c&&(n=!0,o+=c),i&&n?t+e+o:t+o}var Wp=class{get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",s="";if(e?.strict){r=r.replace(/\S+/g," ");for(let i of nj)this[i]&&(s=Bwe(s,r,e,this[i]))}else for(let i of Object.keys(this))s=Bwe(s,r,e,this[i]);return s}concat(e,r){let s=typeof e=="string"?e:jb(e,r);return uo(`${this.toString(r)} ${s}`,r)}hexDigest(){return uo(this,{single:!0}).hexDigest()}merge(e,r){let s=uo(e,r);for(let i in s)if(this[i]){if(!this[i].find(n=>s[i].find(o=>n.digest===o.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[i]=s[i]}match(e,r){let s=uo(e,r);if(!s)return!1;let i=s.pickAlgorithm(r,Object.keys(this));return!!i&&this[i].find(n=>s[i].find(o=>n.digest===o.digest))||!1}pickAlgorithm(e,r){let s=e?.pickAlgorithm||CAt,i=Object.keys(this);return r?.length&&(i=i.filter(n=>r.includes(n))),i.length?i.reduce((n,o)=>s(n,o)||n):null}};Cl.exports.parse=uo;function uo(t,e){if(!t)return null;if(typeof t=="string")return ij(t,e);if(t.algorithm&&t.digest){let r=new Wp;return r[t.algorithm]=[t],ij(jb(r,e),e)}else return ij(jb(t,e),e)}function ij(t,e){if(e?.single)return new ju(t,e);let r=t.trim().split(/\s+/).reduce((s,i)=>{let n=new ju(i,e);if(n.algorithm&&n.digest){let o=n.algorithm;Object.keys(s).includes(o)||(s[o]=[]),s[o].push(n)}return s},new Wp);return r.isEmpty()?null:r}Cl.exports.stringify=jb;function jb(t,e){return t.algorithm&&t.digest?ju.prototype.toString.call(t,e):typeof t=="string"?jb(uo(t,e),e):Wp.prototype.toString.call(t,e)}Cl.exports.fromHex=pAt;function pAt(t,e,r){let s=Yb(r?.options);return uo(`${e}-${Buffer.from(t,"hex").toString("base64")}${s}`,r)}Cl.exports.fromData=AAt;function AAt(t,e){let r=e?.algorithms||[...aj],s=Yb(e?.options);return r.reduce((i,n)=>{let o=Jb.createHash(n).update(t).digest("base64"),a=new ju(`${n}-${o}${s}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;i[c]||(i[c]=[]),i[c].push(a)}return i},new Wp)}Cl.exports.fromStream=mAt;function mAt(t,e){let r=cj(e);return new Promise((s,i)=>{t.pipe(r),t.on("error",i),r.on("error",i);let n;r.on("integrity",o=>{n=o}),r.on("end",()=>s(n)),r.resume()})}Cl.exports.checkData=gAt;function gAt(t,e,r){if(e=uo(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let s=e.pickAlgorithm(r),i=Jb.createHash(s).update(t).digest("base64"),n=uo({algorithm:s,digest:i}),o=n.match(e,r);if(r=r||{},o||!r.error)return o;if(typeof r.size=="number"&&t.length!==r.size){let a=new Error(`data size mismatch when checking ${e}.
Wanted: ${r.size}
Found: ${t.length}`);throw a.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{let a=new Error(`Integrity checksum failed when using ${s}: Wanted ${e}, but got ${n}. (${t.length} bytes)`);throw a.code="EINTEGRITY",a.found=n,a.expected=e,a.algorithm=s,a.sri=e,a}}Cl.exports.checkStream=yAt;function yAt(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=uo(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let s=cj(r);return new Promise((i,n)=>{t.pipe(s),t.on("error",n),s.on("error",n);let o;s.on("verified",a=>{o=a}),s.on("end",()=>i(o)),s.resume()})}Cl.exports.integrityStream=cj;function cj(t=Object.create(null)){return new oj(t)}Cl.exports.create=EAt;function EAt(t){let e=t?.algorithms||[...aj],r=Yb(t?.options),s=e.map(Jb.createHash);return{update:function(i,n){return s.forEach(o=>o.update(i,n)),this},digest:function(){return e.reduce((n,o)=>{let a=s.shift().digest("base64"),c=new ju(`${o}-${a}${r}`,t);return n[c.algorithm]||(n[c.algorithm]=[]),n[c.algorithm].push(c),n},new Wp)}}}function CAt(t,e){return wwe.indexOf(t.toLowerCase())>=wwe.indexOf(e.toLowerCase())?t:e}});var uj=A((w7t,Twe)=>{var xwe=K$(),Nwe=sj(),IAt=Il(),Rwe={shared:!1,ignoreCargoCult:!0},bAt={status:200,headers:{}},Sy=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},vwe=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},lj=class{constructor({entry:e,request:r,response:s,options:i}){this.entry=e,this.request=Sy(r),this.response=vwe(s),this.options=i,this.policy=new xwe(this.request,this.response,Rwe),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new xwe(Sy(e),bAt,Rwe).storable()}satisfies(e){let r=Sy(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let s=new Nwe(this.request),i=new Nwe(r);return JSON.stringify(s.mediaTypes())!==JSON.stringify(i.mediaTypes())||JSON.stringify(s.languages())!==JSON.stringify(i.languages())||JSON.stringify(s.encodings())!==JSON.stringify(i.encodings())?!1:this.options.integrity?IAt.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=Sy(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=Sy(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let s=Sy(e),i=vwe(r);return!this.policy.revalidatedPolicy(s,i).modified}};Twe.exports=lj});var Qwe=A((B7t,_we)=>{var hj=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};_we.exports={NotCachedError:hj}});var Gwe=A((S7t,qwe)=>{"use strict";var Pwe=typeof process=="object"&&process?process:{stdout:null,stderr:null},wAt=require("events"),Owe=require("stream"),Dwe=require("string_decoder").StringDecoder,Ju=Symbol("EOF"),Yu=Symbol("maybeEmitEnd"),Od=Symbol("emittedEnd"),d1=Symbol("emittingEnd"),Wb=Symbol("emittedError"),f1=Symbol("closed"),kwe=Symbol("read"),p1=Symbol("flush"),Mwe=Symbol("flushChunk"),Cn=Symbol("encoding"),Wu=Symbol("decoder"),A1=Symbol("flowing"),Kb=Symbol("paused"),xy=Symbol("resume"),Ts=Symbol("bufferLength"),dj=Symbol("bufferPush"),fj=Symbol("bufferShift"),ai=Symbol("objectMode"),ci=Symbol("destroyed"),pj=Symbol("emitData"),Lwe=Symbol("emitEnd"),Aj=Symbol("emitEnd2"),Ku=Symbol("async"),Xb=t=>Promise.resolve().then(t),Uwe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",BAt=Uwe&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),SAt=Uwe&&Symbol.iterator||Symbol("iterator not implemented"),xAt=t=>t==="end"||t==="finish"||t==="prefinish",NAt=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,RAt=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),m1=class{constructor(e,r,s){this.src=e,this.dest=r,this.opts=s,this.ondrain=()=>e[xy](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},mj=class extends m1{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,s){super(e,r,s),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};qwe.exports=class Fwe extends Owe{constructor(e){super(),this[A1]=!1,this[Kb]=!1,this.pipes=[],this.buffer=[],this[ai]=e&&e.objectMode||!1,this[ai]?this[Cn]=null:this[Cn]=e&&e.encoding||null,this[Cn]==="buffer"&&(this[Cn]=null),this[Ku]=e&&!!e.async||!1,this[Wu]=this[Cn]?new Dwe(this[Cn]):null,this[Ju]=!1,this[Od]=!1,this[d1]=!1,this[f1]=!1,this[Wb]=null,this.writable=!0,this.readable=!0,thi Line truncated
`+o.map(d=>{let f=JSON.stringify(d);return`${q1(f)} ${f}`}).join(`
`),c=async()=>{let d=nCt(wl.join(t,"tmp"),s.tmpPrefix);return await h6(wl.dirname(d),{recursive:!0}),{target:d,moved:!1}},l=async d=>{if(!d.moved)return Xxe(d.target,{recursive:!0,force:!0})},u=async d=>{await rCt(d.target,a,{flag:"wx"}),await h6(wl.dirname(i),{recursive:!0}),await lCt(d.target,i),d.moved=!0},h=await c();try{await u(h)}finally{await l(h)}return o.reverse().map(d=>G1(t,d,!0))}fo.exports.insert=Zxe;async function Zxe(t,e,r,s={}){let{metadata:i,size:n,time:o}=s,a=Aw(t,e),c={key:e,integrity:r&&iCt.stringify(r),time:o||Date.now(),size:n,metadata:i};try{await h6(wl.dirname(a),{recursive:!0});let l=JSON.stringify(c);await ZEt(a,`
${q1(l)} ${l}`)}catch(l){if(l.code==="ENOENT")return;throw l}return G1(t,c)}fo.exports.find=hCt;async function hCt(t,e){let r=Aw(t,e);try{return(await F1(r)).reduce((i,n)=>n&&n.key===e?G1(t,n):i,null)}catch(s){if(s.code==="ENOENT")return null;throw s}}fo.exports.delete=dCt;function dCt(t,e,r={}){if(!r.removeFully)return Zxe(t,e,null,r);let s=Aw(t,e);return Xxe(s,{recursive:!0,force:!0})}fo.exports.lsStream=eNe;function eNe(t){let e=d6(t),r=new sCt({objectMode:!0});return Promise.resolve().then(async()=>{let{default:s}=await Promise.resolve().then(()=>(U1(),L1)),i=await u6(e);return await s(i,async n=>{let o=wl.join(e,n),a=await u6(o);await s(a,async c=>{let l=wl.join(o,c),u=await u6(l);await s(u,async h=>{let d=wl.join(l,h);try{let p=(await F1(d)).reduce((m,E)=>(m.set(E.key,E),m),new Map);for(let m of p.values()){let E=G1(t,m);E&&r.write(E)}}catch(f){if(f.code==="ENOENT")return;throw f}},{concurrency:l6})},{concurrency:l6})},{concurrency:l6}),r.end(),r}).catch(s=>r.emit("error",s)),r}fo.exports.ls=fCt;async function fCt(t){return(await eNe(t).collect()).reduce((r,s)=>(r[s.key]=s,r),{})}fo.exports.bucketEntries=F1;async function F1(t,e){let r=await eCt(t,"utf8");return pCt(r,e)}function pCt(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let s=r.split(" ");if(!s[1]||q1(s[1])!==s[0])return;let i;try{i=JSON.parse(s[1])}catch{}i&&e.push(i)}),e}fo.exports.bucketDir=d6;function d6(t){return wl.join(t,`index-v${cCt}`)}fo.exports.bucketPath=Aw;function Aw(t,e){let r=tNe(e);return wl.join.apply(wl,[d6(t)].concat(aCt(r)))}fo.exports.hashKey=tNe;function tNe(t){return rNe(t,"sha256")}fo.exports.hashEntry=q1;function q1(t){return rNe(t,"sha1")}function rNe(t,e){return XEt.createHash(e).update(t).digest("hex")}function G1(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?oCt(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function u6(t){return tCt(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var gw=A(V1=>{"use strict";Object.defineProperty(V1,"__esModule",{value:!0});V1.LRUCache=void 0;var ACt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,iNe=new Set,f6=typeof process=="object"&&process?process:{},nNe=(t,e,r,s)=>{typeof f6.emitWarning=="function"?f6.emitWarning(t,e,r,s):console.error(`[${r}] ${e}: ${t}`)},z1=globalThis.AbortController,sNe=globalThis.AbortSignal;if(typeof z1>"u"){sNe=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(r,s){this._onabort.push(s)}},z1=class{constructor(){e()}signal=new sNe;abort(r){if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let s of this.signal._onabort)s(r);this.signal.onabort?.(r)}}};let t=f6.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,nNe("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 mCt=t=>!iNe.has(t),kd=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),oNe=t=>kd(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?H1:null:null,H1=class extends Array{constructor(t){super(t),this.fill(0)}},gCt=class mw{heap;length;static#e=!1;static create(e){let r=oNe(e);if(!r)return[];mw.#e=!0;let s=new mw(e,r);return mw.#e=!1,s}constructor(e,r){if(!mw.#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]}},yCt=class aNe{#e;#t;#s;#r;#i;#n;#u;#l;get perf(){return this.#l}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#f;#p;#h;#o;#y;#I;#g;#A;#x;#m;#B;#S;#E;#C;#b;#R;#c;#O;static unsafeExposeInternals(e){return{starts:e.#S,ttls:e.#E,autopurgeTimers:e.#C,sizes:e.#B,keyMap:e.#p,keyList:e.#h,valList:e.#o,next:e.#y,prev:e.#I,get head(){return e.#g},get tail(){return e.#A},free:e.#x,isBackgroundFetch:r=>e.#d(r),backgroundFetch:(r,s,i,n)=>e.#G(r,s,i,n),moveToTail:r=>e.#P(r),indexes:r=>e.#v(r),rindexes:r=>e.#T(r),isStale:r=>e.#w(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#f}get size(){return this.#a}get fetchMethod(){return this.#n}get memoMethod(){return this.#u}get dispose(){return this.#s}get onInsert(){return this.#r}get disposeAfter(){return this.#i}constructor(e){let{max:r=0,ttl:s,ttlResolution:i=1,ttlAutopurge:n,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:l,onInsert:u,disposeAfter:h,noDisposeOnSet:d,noUpdateTTL:f,maxSize:p=0,maxEntrySize:m=0,sizeCalculation:E,fetchMethod:y,memoMethod:C,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:N,allowStaleOnFetchAbort:P,ignoreFetchAbort:Q,perf:k}=e;if(k!==void 0&&typeof k?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#l=k??ACt,r!==0&&!kd(r))throw new TypeError("max option must be a nonnegative integer");let G=r?oNe(r):Array;if(!G)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=p,this.maxEntrySize=m||this.#t,this.sizeCalculation=E,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(C!==void 0&&typeof C!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#u=C,y!==void 0&&typeof y!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#n=y,this.#R=!!y,this.#p=new Map,this.#h=new Array(r).fill(void 0),this.#o=new Array(r).fill(void 0),this.#y=new G(r),this.#I=new G(r),this.#g=0,this.#A=0,this.#x=gCt.create(r),this.#a=0, Line truncated
Wanted: ${t}
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}});var vNe=A((Wer,N6)=>{"use strict";var SNe=ky(),xNe=yw(),NNe=BNe(),eIt=Zb(),{PassThrough:tIt}=Ij(),rIt=Xp(),RNe=t=>({algorithms:["sha512"],...t});N6.exports=sIt;async function sIt(t,e,r,s={}){let{memoize:i}=s;s=RNe(s);let n=await NNe(t,r,s),o=await SNe.insert(t,e,n.integrity,{...s,size:n.size});return i&&xNe.put(t,o,r,s),n.integrity}N6.exports.stream=iIt;function iIt(t,e,r={}){let{memoize:s}=r;r=RNe(r);let i,n,o,a,c=new rIt;if(s){let u=new tIt().on("collect",h=>{a=h});c.push(u)}let l=NNe.stream(t,r).on("integrity",u=>{i=u}).on("size",u=>{n=u}).on("error",u=>{o=u});return c.push(l),c.push(new eIt({async flush(){if(!o){let u=await SNe.insert(t,e,i,{...r,size:n});s&&a&&xNe.put(t,u,a,r),c.emit("integrity",i),c.emit("size",n)}}})),c}});var $Ne=A(ht=>{"use strict";var zs=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nIt=zs(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=t.balanced=void 0;var e=(i,n,o)=>{let a=i instanceof RegExp?r(i,o):i,c=n instanceof RegExp?r(n,o):n,l=a!==null&&c!=null&&(0,t.range)(a,c,o);return l&&{start:l[0],end:l[1],pre:o.slice(0,l[0]),body:o.slice(l[0]+a.length,l[1]),post:o.slice(l[1]+c.length)}};t.balanced=e;var r=(i,n)=>{let o=n.match(i);return o?o[0]:null},s=(i,n,o)=>{let a,c,l,u,h,d=o.indexOf(i),f=o.indexOf(n,d+1),p=d;if(d>=0&&f>0){if(i===n)return[d,f];for(a=[],l=o.length;p>=0&&!h;){if(p===d)a.push(p),d=o.indexOf(i,p+1);else if(a.length===1){let m=a.pop();m!==void 0&&(h=[m,f])}else c=a.pop(),c!==void 0&&c<l&&(l=c,u=f),f=o.indexOf(n,p+1);p=d<f&&d>=0?d:f}a.length&&u!==void 0&&(h=[l,u])}return h};t.range=s}),oIt=zs(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EXPANSION_MAX=void 0,t.expand=N;var e=nIt(),r="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",n="\0COMMA"+Math.random()+"\0",o="\0PERIOD"+Math.random()+"\0",a=new RegExp(r,"g"),c=new RegExp(s,"g"),l=new RegExp(i,"g"),u=new RegExp(n,"g"),h=new RegExp(o,"g"),d=/\\\\/g,f=/\\{/g,p=/\\}/g,m=/\\,/g,E=/\\./g;t.EXPANSION_MAX=1e5;function y(L){return isNaN(L)?L.charCodeAt(0):parseInt(L,10)}function C(L){return L.replace(d,r).replace(f,s).replace(p,i).replace(m,n).replace(E,o)}function w(L){return L.replace(a,"\\").replace(c,"{").replace(l,"}").replace(u,",").replace(h,".")}function S(L){if(!L)return[""];let U=[],q=(0,e.balanced)("{","}",L);if(!q)return L.split(",");let{pre:V,body:re,post:_e}=q,we=V.split(",");we[we.length-1]+="{"+re+"}";let le=S(_e);return _e.length&&(we[we.length-1]+=le.shift(),we.push.apply(we,le)),U.push.apply(U,we),U}function N(L,U={}){if(!L)return[];let{max:q=t.EXPANSION_MAX}=U;return L.slice(0,2)==="{}"&&(L="\\{\\}"+L.slice(2)),X(C(L),q,!0).map(w)}function P(L){return"{"+L+"}"}function Q(L){return/^-?0\d/.test(L)}function k(L,U){return L<=U}function G(L,U){return L>=U}function X(L,U,q){let V=[],re=(0,e.balanced)("{","}",L);if(!re)return[L];let _e=re.pre,we=re.post.length?X(re.post,U,!1):[""];if(/\$$/.test(re.pre))for(let le=0;le<we.length&&le<U;le++){let ct=_e+"{"+re.body+"}"+we[le];V.push(ct)}else{let le=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(re.body),ct=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(re.body),Ze=le||ct,Et=re.body.indexOf(",")>=0;if(!Ze&&!Et)return re.post.match(/,(?!,).*\}/)?(L=re.pre+"{"+re.body+i+re.post,X(L,U,!0)):[L];let Pe;if(Ze)Pe=re.body.split(/\.\./);else if(Pe=S(re.body),Pe.length===1&&Pe[0]!==void 0&&(Pe=X(Pe[0],U,!1).map(P),Pe.length===1))return we.map(Ft=>re.pre+Pe[0]+Ft);let dt;if(Ze&&Pe[0]!==void 0&&Pe[1]!==void 0){let Ft=y(Pe[0]),es=y(Pe[1]),Rn=Math.max(Pe[0].length,Pe[1].length),St=Pe.length===3&&Pe[2]!==void 0?Math.abs(y(Pe[2])):1,go=k;es<Ft&&(St*=-1,go=G);let v=Pe.some(Q);dt=[];for(let _=Ft;go(_,es);_+=St){let D;if(ct)D=String.fromCharCode(_),D==="\\"&&(D="");else if(D=String(_),v){let F=Rn-D.length;if(F>0){let Y=new Array(F+1).join("0");_<0?D="-"+Y+D.slice(1):D=Y+D}}dt.push(D)}}else{dt=[];for(let Ft=0;Ft<Pe.length;Ft++)dt.push.apply(dt,X(Pe[Ft],U,!1))}for(let Ft=0;Ft<dt.length;Ft++)for(let es=0;es<we.length&&V.length<U;es++){let Rn=_e+dt[Ft]+we[es];(!q||Ze||Rn)&&V.push(Rn)}}return V}}),aIt=zs(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidPattern=void 0;var e=1024*64,r=s=>{if(typeof s!="string")throw new TypeError("invalid pattern");if(s.length>e)throw new TypeError("pattern is too long")};t.assertValidPattern=r}),cIt=zs(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseClass=void 0;var e={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},r=o=>o.replace(/[[\]\\-]/g,"\\$&"),s= Line truncated
globstar while`,v,ee,_,Oe,nt),this.matchOne(v.slice(ee),_.slice(Oe),D))return this.debug("globstar found match!",ee,R,nt),!0;if(nt==="."||nt===".."||!F.dot&&nt.charAt(0)==="."){this.debug("dot detected!",v,ee,_,Oe);break}this.debug("globstar swallow a segment, and continue"),ee++}return!!(D&&(this.debug(`
>>> no match, partial?`,v,ee,_,Oe),ee===R))}let rt;if(typeof $=="string"?(rt=ge===$,this.debug("string match",$,ge,rt)):(rt=$.test(ge),this.debug("pattern match",$,ge,rt)),!rt)return!1}if(g===R&&B===M)return!0;if(g===R)return D;if(B===M)return g===R-1&&v[g]==="";throw new Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(v){(0,r.assertValidPattern)(v);let _=this.options;if(v==="**")return t.GLOBSTAR;if(v==="")return"";let D,F=null;(D=v.match(y))?F=_.dot?w:C:(D=v.match(a))?F=(_.nocase?_.dot?h:u:_.dot?l:c)(D[1]):(D=v.match(S))?F=(_.nocase?_.dot?P:N:_.dot?Q:k)(D):(D=v.match(d))?F=_.dot?p:f:(D=v.match(m))&&(F=E);let Y=s.AST.fromGlob(v,this.options).toMMPattern();return F&&typeof Y=="object"&&Reflect.defineProperty(Y,"test",{value:F}),Y}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let v=this.set;if(!v.length)return this.regexp=!1,this.regexp;let _=this.options,D=_.noglobstar?V:_.dot?re:_e,F=new Set(_.nocase?["i"]:[]),Y=v.map(R=>{let M=R.map(ge=>{if(ge instanceof RegExp)for(let ee of ge.flags.split(""))F.add(ee);return typeof ge=="string"?Ft(ge):ge===t.GLOBSTAR?t.GLOBSTAR:ge._src});M.forEach((ge,ee)=>{let Oe=M[ee+1],nt=M[ee-1];ge!==t.GLOBSTAR||nt===t.GLOBSTAR||(nt===void 0?Oe!==void 0&&Oe!==t.GLOBSTAR?M[ee+1]="(?:\\/|"+D+"\\/)?"+Oe:M[ee]=D:Oe===void 0?M[ee-1]=nt+"(?:\\/|\\/"+D+")?":Oe!==t.GLOBSTAR&&(M[ee-1]=nt+"(?:\\/|\\/"+D+"\\/)"+Oe,M[ee+1]=t.GLOBSTAR))});let $=M.filter(ge=>ge!==t.GLOBSTAR);if(this.partial&&$.length>=1){let ge=[];for(let ee=1;ee<=$.length;ee++)ge.push($.slice(0,ee).join("/"));return"(?:"+ge.join("|")+")"}return $.join("/")}).join("|"),[g,B]=v.length>1?["(?:",")"]:["",""];Y="^"+g+Y+B+"$",this.partial&&(Y="^(?:\\/|"+g+Y.slice(1,-1)+B+")$"),this.negate&&(Y="^(?!"+Y+").+$");try{this.regexp=new RegExp(Y,[...F].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(v){return this.preserveMultipleSlashes?v.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(v)?["",...v.split(/\/+/)]:v.split(/\/+/)}match(v,_=this.partial){if(this.debug("match",v,this.pattern),this.comment)return!1;if(this.empty)return v==="";if(v==="/"&&_)return!0;let D=this.options;this.isWindows&&(v=v.split("\\").join("/"));let F=this.slashSplit(v);this.debug(this.pattern,"split",F);let Y=this.set;this.debug(this.pattern,"set",Y);let g=F[F.length-1];if(!g)for(let B=F.length-2;!g&&B>=0;B--)g=F[B];for(let B=0;B<Y.length;B++){let R=Y[B],M=F;if(D.matchBase&&R.length===1&&(M=[g]),this.matchOne(M,R,_))return D.flipNegate?!0:!this.negate}return D.flipNegate?!1:this.negate}static defaults(v){return t.minimatch.defaults(v).Minimatch}};t.Minimatch=es;var Rn=TNe();Object.defineProperty(t,"AST",{enumerable:!0,get:function(){return Rn.AST}});var St=_Ne();Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return St.escape}});var go=R6();Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return go.unescape}}),t.minimatch.AST=s.AST,t.minimatch.Minimatch=es,t.minimatch.escape=i.escape,t.minimatch.unescape=n.unescape}),lIt=zs(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;var e=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r=new Set,s=typeof process=="object"&&process?process:{},i=(f,p,m,E)=>{typeof s.emitWarning=="function"?s.emitWarning(f,p,m,E):console.error(`[${m}] ${p}: ${f}`)},n=globalThis.AbortController,o=globalThis.AbortSignal;if(typeof n>"u"){o=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(m,E){this._onabort.push(E)}},n=class{constructor(){p()}signal=new o;abort(m){if(!this.signal.aborted){this.signal.reason=m,this.signal.aborted=!0;for(let E of this.signal._onabort)E(m);this.signal.onabort?.(m)}}};let f=s.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",p=()=>{f&&(f=!1,i("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",p))}}var a=f=>!r.has(f),c=f=>f&&f===Math.floor(f)&&f>0&&isFinite(f),l=f=>c(f)?f<=Math.pow(2,8)?Uint8Array:f<=Math.pow(2,16)?Uint16Array:f<=Math.pow(2,32)?Uint32Array:f<=Number.MAX_SAFE_INTEGER?u:null:null,u=class extends Array{constructor(f){super(f),this.fill(0)}},h=class Sw{heap;length;static#e=!1;static create(p){let m=l(p);if(!m)return[];Sw.#e=!0;let E=new Sw(p,m);return Sw.#e=!1,E}constructor(p,m){if(!Sw.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new m(p),this.length=0}push(p){this.heap[this.length++]=p}pop(){return this.heap[--this.length]}},d=class ONe{#e;#t;#s;#r;#i;#n;#u;#l;get perf(){return this.#l}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation Line truncated
\r
`);if(d===-1){cP("have not received end of HTTP headers yet..."),n();return}let f=h.slice(0,d).toString("ascii").split(`\r
`),p=f.shift();if(!p)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let m=p.split(" "),E=+m[1],y=m.slice(2).join(" "),C={};for(let w of f){if(!w)continue;let S=w.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let N=w.slice(0,S).toLowerCase(),P=w.slice(S+1).trimStart(),Q=C[N];typeof Q=="string"?C[N]=[Q,P]:Array.isArray(Q)?Q.push(P):C[N]=P}cP("got proxy server response: %o %o",p,C),o(),e({connect:{statusCode:E,statusText:y,headers:C},buffered:h})}t.on("error",c),t.on("end",a),n()})}Jy.parseProxyResponse=U0t});var kRe=A(ca=>{"use strict";var F0t=ca&&ca.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),q0t=ca&&ca.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ORe=ca&&ca.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&F0t(e,t,r);return q0t(e,t),e},DRe=ca&&ca.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ca,"__esModule",{value:!0});ca.HttpsProxyAgent=void 0;var vw=ORe(require("net")),QRe=ORe(require("tls")),G0t=DRe(require("assert")),H0t=DRe(Jf()),z0t=PI(),V0t=require("url"),$0t=_Re(),Tw=(0,H0t.default)("https-proxy-agent"),lP=class extends z0t.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new V0t.URL(e):e,this.proxyHeaders=r?.headers??{},Tw("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?PRe(r,"headers"):null,host:s,port:i}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let i;if(s.protocol==="https:"){Tw("Creating `tls.Socket`: %o",this.connectOpts);let d=this.connectOpts.servername||this.connectOpts.host;i=QRe.connect({...this.connectOpts,servername:d&&vw.isIP(d)?void 0:d})}else Tw("Creating `net.Socket`: %o",this.connectOpts),i=vw.connect(this.connectOpts);let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=vw.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)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(n))a+=`${d}: ${n[d]}\r
`;let c=(0,$0t.parseProxyResponse)(i);i.write(`${a}\r
`);let{connect:l,buffered:u}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",j0t),r.secureEndpoint){Tw("Upgrading socket connection to TLS");let d=r.servername||r.host;return QRe.connect({...PRe(r,"host","path","port"),socket:i,servername:vw.isIP(d)?void 0:d})}return i}i.destroy();let h=new vw.Socket({writable:!1});return h.readable=!0,e.once("socket",d=>{Tw("Replaying proxy buffer for failed request"),(0,G0t.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),h}};lP.protocols=["http","https"];ca.HttpsProxyAgent=lP;function j0t(t){t.resume()}function PRe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var FRe=A(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});var MRe=require("buffer"),uA={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};uh.ERRORS=uA;function J0t(t){if(!MRe.Buffer.isEncoding(t))throw new Error(uA.INVALID_ENCODING)}uh.checkEncoding=J0t;function LRe(t){return typeof t=="number"&&isFinite(t)&&X0t(t)}uh.isFiniteInteger=LRe;function URe(t,e){if(typeof t=="number"){if(!LRe(t)||t<0)throw new Error(e?uA.INVALID_OFFSET:uA.INVALID_LENGTH)}else throw new Error(e?uA.INVALID_OFFSET_NON_NUMBER:uA.INVALID_LENGTH_NON_NUMBER)}function Y0t(t){URe(t,!1)}uh.checkLengthValue=Y0t;function W0t(t){URe(t,!0)}uh.checkOffsetValue=W0t;function K0t(t,e){if(t<0||t>e.length)throw new Error(uA.INVALID_TARGET_OFFSET)}uh.checkTargetOffset=K0t;function X0t(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function Z0t(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof MRe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}uh.bigIntAndBufferInt64Check=Z0t});var GRe=A(X6=>{"use strict";Object.defineProperty(X6,"__esModule",{value:!0});var tt=FRe(),qRe=4096,ebt="utf8",K6=class t{constructor(e){if(this.length=0,this._encoding=ebt,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(tt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(tt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(tt.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(tt.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(qRe);else{if(typeof e<"u")throw new Error(tt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(qRe)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return tt.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return tt.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,r){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,r),this}insertInt8(e,r){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,r)}writeInt16BE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}insertInt16BE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}writeInt16LE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}insertInt16LE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}writeInt32BE(e,r){return t Line truncated
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var n=this.popStack();s.splice(1,0,n),this.push(this.source.functionCall(r,"call",s))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,s,n){var i=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,s)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},"lookupData"),resolvePath:o(function(e,r,s,n,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(XUe(this.options.strict&&i,this,r,s,e));return}for(var c=r.length,l=o(function(d){a.replaceStack(function(A){var p=a.nameLookup(A,r[d],e);return n?[" && ",p]:[" != null ? ",p," : ",A]})},"_loop"),u=s;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var s=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",s,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",n])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,s){var n=this.popStack(),i=this.setupHelper(e,r),a=[];s&&a.push(i.name),a.push(n),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",i.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var s=[];s.push(e[0]);for(var n=1;n<e.length;n++)s.push(r,e[n]);return s},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var s=this.setupHelper(e,r);this.push(this.source.functionCall(s.name,"call",s.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var s=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",s,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};Nt.prototype.Program=function(t){var e="",r=t.body,s=void 0,n=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(s=0,n=t.blockParams.length;s<n;s++)i+=" "+t.blockParams[s];i+=" ]",e+=this.pad(i)}for(s=0,n=r.length;s<n;s++)e+=this.accept(r[s]);return this.padding--,e};Nt.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};Nt.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};Nt.prototype.BlockStatement=Nt.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};Nt.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};Nt.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};Nt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Nt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Nt.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",s=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+s};Nt.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};Nt.prototype.StringLiteral=function(t){return'"'+t.value+'"'};Nt.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};Nt.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};Nt.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Nt.prototype.NullLiteral=function(){return"NULL"};Nt.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,n=e.length;s<n;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};Nt.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var Sre=h((O0t,wre)=>{var Xw=Cre().default,bre=Ire();Xw.PrintVisitor=bre.PrintVisitor;Xw.print=bre.print;wre.exports=Xw;function Bre(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=Xw.compile(s)}o(Bre,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=Bre,require.extensions[".hbs"]=Bre)});var Ore=h(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});s0.getProxyUrl=g2e;s0.checkBypass=Dre;function g2e(t){let e=t.protocol==="https:";if(Dre(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 r0(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new r0(`http://${r}`)}else return}o(g2e,"getProxyUrl");function Dre(t){if(!t.hostname)return!1;let e=t.hostname;if(E2e(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.hostname.toUpperCase()];typeof s=="number"&&n.push(`${n[0]}:${s}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||n.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(Dre,"checkBypass");function E2e(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(E2e,"isLoopbackAddress");var r0=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var Lre=h(At=>{"use strict";var y2e=At&&At.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),C2e=At&&At.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),a0=At&&At.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(s[s.length]=n);return s},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),n=0;n<s.length;n++)s[n]!=="default"&&y2e(r,e,s[n]);return C2e(r,e), Line truncated
`).join(`
`+n),t.push(i+"m+"+bO.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=SRt()+e+" "+t[0]}function SRt(){return Ds.inspectOpts.hideDate?"":new Date().toISOString()+" "}function xRt(...t){return process.stderr.write(IO.formatWithOptions(Ds.inspectOpts,...t)+`
`)}function NRt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function RRt(){return process.env.DEBUG}function vRt(t){t.inspectOpts={};let e=Object.keys(Ds.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ds.inspectOpts[e[r]]}bO.exports=YY()(Ds);var{formatters:__e}=bO.exports;__e.o=function(t){return this.inspectOpts.colors=this.useColors,IO.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};__e.O=function(t){return this.inspectOpts.colors=this.useColors,IO.inspect(t,this.inspectOpts)}});var KY=A((Esr,WY)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?WY.exports=T_e():WY.exports=Q_e()});var O_e=A((Csr,P_e)=>{var TRt=require("dns"),_Rt=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],QRt=t=>{let{strictSSL:e,...r}={...t};if(r.method=r.method?r.method.toUpperCase():"GET",e==null?r.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0":r.rejectUnauthorized=e!==!1,!r.retry)r.retry={retries:0};else if(typeof r.retry=="string"){let s=parseInt(r.retry,10);isFinite(s)?r.retry={retries:s}:r.retry={retries:0}}else typeof r.retry=="number"?r.retry={retries:r.retry}:r.retry={retries:0,...r.retry};return r.dns={ttl:300*1e3,lookup:TRt.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(i=>_Rt.includes(i.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r};P_e.exports=QRt});var ZY=A((Isr,U_e)=>{var D_e=K$(),k_e=sj(),PRt=Il(),M_e={shared:!1,ignoreCargoCult:!0},ORt={status:200,headers:{}},bE=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},L_e=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},XY=class{constructor({entry:e,request:r,response:s,options:i}){this.entry=e,this.request=bE(r),this.response=L_e(s),this.options=i,this.policy=new D_e(this.request,this.response,M_e),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new D_e(bE(e),ORt,M_e).storable()}satisfies(e){let r=bE(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let s=new k_e(this.request),i=new k_e(r);return JSON.stringify(s.mediaTypes())!==JSON.stringify(i.mediaTypes())||JSON.stringify(s.languages())!==JSON.stringify(i.languages())||JSON.stringify(s.encodings())!==JSON.stringify(i.encodings())?!1:this.options.integrity?PRt.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=bE(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=bE(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let s=bE(e),i=L_e(r);return!this.policy.revalidatedPolicy(s,i).modified}};U_e.exports=XY});var q_e=A((bsr,F_e)=>{var e9=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};F_e.exports={NotCachedError:e9}});var r9=A((wsr,G_e)=>{"use strict";var DRt=Xp(),t9=class extends DRt{#e=[];#t=new Map;constructor(e,...r){super(),this.#e=e.events,r.length&&this.push(...r)}on(e,r){return this.#e.includes(e)&&this.#t.has(e)?r(...this.#t.get(e)):super.on(e,r)}emit(e,...r){return this.#e.includes(e)&&this.#t.set(e,r),super.emit(e,...r)}};G_e.exports=t9});var z_e=A((Bsr,H_e)=>{var{URL:kRt,format:MRt}=require("url"),LRt={auth:!1,fragment:!1,search:!0,unicode:!1},URt=t=>{let e=new kRt(t.url);return`make-fetch-happen:request-cache:${MRt(e,LRt)}`};H_e.exports=URt});var $_e=A((Ssr,V_e)=>{var FRt=z6(),qRt=t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried");async function GRt(t,e={}){let r=FRt.operation(e);return new Promise(function(s,i){r.attempt(async n=>{try{let o=await t(a=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:a})},n,r);return s(o)}catch(o){return qRt(o)?r.retry(o.retried||new Error)?void 0:i(o.retried):i(o)}})})}V_e.exports={promiseRetry:GRt}});var j_e=A((xsr,HRt)=>{HRt.exports={name:"make-fetch-happen",version:"15.0.4",description:"Opinionated, caching, retrying fetch client",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",posttest:"npm run lint",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",postlint:"template-oss-check",snap:"tap","template-oss-apply":"template-oss-apply --force"},repository:{type:"git",url:"git+https://github.com/npm/make-fetch-happen.git"},keywords:["http","request","fetch","mean girls","caching","cache","subresource integrity"],author:"GitHub Inc.",license:"ISC",dependencies:{"@gar/promise-retry":"^1.0.0","@npmcli/agent":"^4.0.0",cacache:"^20.0.1","http-cache-semantics":"^4.1.1",minipass:"^7.0.2","minipass-fetch":"^5.0.0","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4",negotiator:"^1.0.0","proc-log":"^6.0.0",ssri:"^13.0.0"},devDependencies:{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",nock:"^13.2.4","safe-buffer":"^5.2.1","standard-version":"^9.3. Line truncated
`).forEach(r=>{r.match(_Tt)||r.match(QTt)||(e+=r)}),Buffer.from(e,"base64")}function OTt(t,e="CERTIFICATE"){let s=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...s,`-----END ${e}-----`].join(`
`+i),t.push(n+"m+"+ES.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=u$e()+e+" "+t[0]}o(l$e,"formatArgs");function u$e(){return Ar.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(u$e,"getDate");function d$e(...t){return process.stderr.write(gS.formatWithOptions(Ar.inspectOpts,...t)+`
`)}o(d$e,"log");function A$e(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(A$e,"save");function p$e(){return process.env.DEBUG}o(p$e,"load");function f$e(t){t.inspectOpts={};let e=Object.keys(Ar.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ar.inspectOpts[e[r]]}o(f$e,"init");ES.exports=fU()(Ar);var{formatters:Koe}=ES.exports;Koe.o=function(t){return this.inspectOpts.colors=this.useColors,gS.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Koe.O=function(t){return this.inspectOpts.colors=this.useColors,gS.inspect(t,this.inspectOpts)}});var mU=h((JTt,hU)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?hU.exports=joe():hU.exports=Xoe()});var CS=h(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.DownloadHTTPError=xt.DownloadLengthMismatchError=xt.DownloadError=xt.ExpiredMetadataError=xt.EqualVersionError=xt.BadVersionError=xt.RepositoryError=xt.PersistError=xt.RuntimeError=xt.ValueError=void 0;var gU=class extends Error{static{o(this,"ValueError")}};xt.ValueError=gU;var EU=class extends Error{static{o(this,"RuntimeError")}};xt.RuntimeError=EU;var yU=class extends Error{static{o(this,"PersistError")}};xt.PersistError=yU;var Ug=class extends Error{static{o(this,"RepositoryError")}};xt.RepositoryError=Ug;var yS=class extends Ug{static{o(this,"BadVersionError")}};xt.BadVersionError=yS;var CU=class extends yS{static{o(this,"EqualVersionError")}};xt.EqualVersionError=CU;var IU=class extends Ug{static{o(this,"ExpiredMetadataError")}};xt.ExpiredMetadataError=IU;var qg=class extends Error{static{o(this,"DownloadError")}};xt.DownloadError=qg;var BU=class extends qg{static{o(this,"DownloadLengthMismatchError")}};xt.DownloadLengthMismatchError=BU;var bU=class extends qg{static{o(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};xt.DownloadHTTPError=bU});var eae=h(Pp=>{"use strict";var SU=Pp&&Pp.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pp,"__esModule",{value:!0});Pp.withTempFile=void 0;var wU=SU(require("fs/promises")),h$e=SU(require("os")),Zoe=SU(require("path")),m$e=o(async t=>g$e(async e=>t(Zoe.default.join(e,"tempfile"))),"withTempFile");Pp.withTempFile=m$e;var g$e=o(async t=>{let e=await wU.default.realpath(h$e.default.tmpdir()),r=await wU.default.mkdtemp(e+Zoe.default.sep);try{return await t(r)}finally{await wU.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var rae=h((KTt,tae)=>{var NU=class{static{o(this,"RetryOperation")}#e=1;#t=null;#s=[];#r=null;#n;#i=null;#a;#o;#l=null;#c;constructor(e,r={}){this.#a=[...e],this.#o=[...e],this.#c=r.unref,this.#n=r.maxRetryTime||1/0,r.forever&&(this.#t=[...this.#o])}get timeouts(){return[...this.#o]}get errors(){return[...this.#s]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#s.length){let r=0,s={};for(let n=0;n<this.#s.length;n++){let i=this.#s[n],{message:a}=i;s[a]||(s[a]=0),s[a]++,s[a]>=r&&(e=i,r=s[a])}}return e}reset(){this.#e=1,this.#o=[...this.#a]}stop(){this.#l&&clearTimeout(this.#l),this.#o=[],this.#t=null}retry(e){if(this.#s.push(e),new Date().getTime()-this.#i>=this.#n)return this.#s.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#o.shift();if(r===void 0)if(this.#t)this.#s.pop(),r=this.#t.at(-1);else return!1;return this.#l=setTimeout(()=>{this.#e++,this.#r(this.#e)},r),this.#c&&this.#l.unref(),!0}attempt(e){this.#r=e,this.#i=new Date().getTime(),this.#r(this.#e)}};tae.exports={RetryOperation:NU}});var iae=h((ZTt,nae)=>{var{RetryOperation:E$e}=rae(),sae=o((t,e)=>Math.min(Math.round((1+(e.randomize?Math.random():0))*Math.max(e.minTimeout,1)*Math.pow(e.factor,t)),e.maxTimeout),"createTimeout"),y$e=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),C$e=o(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(n.retries){for(let i=0;i<n.retries;i++)r.push(sae(i,n));r.sort((i,a)=>i-a)}else e.forever&&r.push(sae(0,n))}let s=new E$e(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(n,i){s.attempt(async a=>{try{let c=await t(l=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:l})},a,s);return n(c)}catch(c){if(!y$e(c))return i(c);if(!s.retry(c.retried||new Error))return i(c.retried)}})})},"promiseRetry");nae.exports={promiseRetry:C$e}});var RU=h(Hc=>{"use strict";var QU=Hc&&Hc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Hc,"__esModule",{value:!0});Hc.DefaultFetcher=Hc.BaseFetcher=void 0;var I$e=QU(mU()),oae=QU(require("fs")),B$e=QU(require("util")),aae=CS(),b$e=eae(),w$e=iae(),S$e=(0,I$e.default)("tuf:fetch"),N$e="User-Agent",IS=class{static{o(this,"BaseFetcher")}async downloadFile(e,r,s){return(0,b$e.withTempFile)(async n=>{let i=await this.fetch(e),a=0,c=oae.default.createWriteStream(n),l=i.getReader();try{for(;;){let{done:u,value:d}=await l.read();if(u)break;if(a+=d.length,a>r)throw new aae.DownloadLengthMismatchError("Max length reached");await x$e(c,Buffer.from(d))}}finally{l.releaseLock(),await B$e.default.promisify(c.close).bind(c)()}return s(n)})}async downloadBytes(e,r){return this.downloadFile(e,r,async s=>{let n=oae.defau Line truncated
`).forEach(r=>{r.match(P3e)||r.match(_3e)||(e+=r)}),Buffer.from(e,"base64")}o(k3e,"toDER");function D3e(t,e="CERTIFICATE"){let s=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...s,`-----END ${e}-----`].join(`
`).concat(`
`)}});var JO=A(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.SHA2_HASH_ALGOS=Zd.RSA_SIGNATURE_ALGOS=Zd.ECDSA_SIGNATURE_ALGOS=void 0;Zd.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};Zd.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};Zd.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var H9=A(YO=>{"use strict";Object.defineProperty(YO,"__esModule",{value:!0});YO.RFC3161TimestampVerificationError=void 0;var G9=class extends Error{};YO.RFC3161TimestampVerificationError=G9});var VQe=A(Ol=>{"use strict";var DTt=Ol&&Ol.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),kTt=Ol&&Ol.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),MTt=Ol&&Ol.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&DTt(r,e,s[i]);return kTt(r,e),r}})();Object.defineProperty(Ol,"__esModule",{value:!0});Ol.TSTInfo=void 0;var zQe=MTt(TE()),LTt=JO(),UTt=H9(),z9=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return LTt.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=zQe.digest(this.messageImprintHashAlgorithm,e);if(!zQe.bufferEqual(r,this.messageImprintHashedMessage))throw new UTt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Ol.TSTInfo=z9});var jQe=A(Dl=>{"use strict";var FTt=Dl&&Dl.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),qTt=Dl&&Dl.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),GTt=Dl&&Dl.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&FTt(r,e,s[i]);return qTt(r,e),r}})();Object.defineProperty(Dl,"__esModule",{value:!0});Dl.RFC3161Timestamp=void 0;var HTt=VO(),V9=GTt(TE()),$Qe=JO(),sB=H9(),zTt=VQe(),VTt="1.2.840.113549.1.7.2",$Tt="1.2.840.113549.1.9.16.1.4",jTt="1.2.840.113549.1.9.4",$9=class t{root;constructor(e){this.root=e}static parse(e){let r=HTt.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return $Qe.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return $Qe.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new zTt.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new sB.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==VTt)throw new sB.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==$Tt)throw new sB.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=V9.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!V9.bufferEqual(e,r))throw new sB.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toDER();if(r[0 Line truncated
`)}o(D3e,"fromDER")});var MS=h($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.SHA2_HASH_ALGOS=$c.RSA_SIGNATURE_ALGOS=$c.ECDSA_SIGNATURE_ALGOS=void 0;$c.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};$c.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};$c.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var ZU=h(LS=>{"use strict";Object.defineProperty(LS,"__esModule",{value:!0});LS.RFC3161TimestampVerificationError=void 0;var XU=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};LS.RFC3161TimestampVerificationError=XU});var Mae=h(To=>{"use strict";var O3e=To&&To.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),M3e=To&&To.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),L3e=To&&To.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(s[s.length]=n);return s},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),n=0;n<s.length;n++)s[n]!=="default"&&O3e(r,e,s[n]);return M3e(r,e),r}})();Object.defineProperty(To,"__esModule",{value:!0});To.TSTInfo=void 0;var Oae=L3e(Lp()),F3e=MS(),U3e=ZU(),e2=class{static{o(this,"TSTInfo")}root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return F3e.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Oae.digest(this.messageImprintHashAlgorithm,e);if(!Oae.bufferEqual(r,this.messageImprintHashedMessage))throw new U3e.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};To.TSTInfo=e2});var Fae=h(vo=>{"use strict";var q3e=vo&&vo.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),G3e=vo&&vo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),H3e=vo&&vo.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(s[s.length]=n);return s},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),n=0;n<s.length;n++)s[n]!=="default"&&q3e(r,e,s[n]);return G3e(r,e),r}})();Object.defineProperty(vo,"__esModule",{value:!0});vo.RFC3161Timestamp=void 0;var V3e=kS(),t2=H3e(Lp()),Lae=MS(),Yg=ZU(),z3e=Mae(),J3e="1.2.840.113549.1.7.2",Y3e="1.2.840.113549.1.9.16.1.4",$3e="1.2.840.113549.1.9.4",r2=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=V3e.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return Lae.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return Lae.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new z3e.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new Yg.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==J3e)throw new Yg.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==Y3e)throw new Yg.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=t2.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].valu Line truncated
`,uQt=/\u2014 (\S+) (\S+)\n/g;function hQt(t,e){let r=t.inclusionProof,s=CW.fromString(r.checkpoint.envelope),i=aD.fromString(s.note);if(!dQt(s,e))throw new lB.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return i}function dQt(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(s=>{let i=e.find(n=>E1e.crypto.bufferEqual(n.logID.subarray(0,4),s.keyHint)&&n.baseURL.match(s.name));return i?E1e.crypto.verify(r,i.publicKey,s.signature):!1})}var CW=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(EW))throw new lB.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(EW),s=e.slice(0,r+1),n=e.slice(r+EW.length).matchAll(uQt),o=Array.from(n,a=>{let[,c,l]=a,u=Buffer.from(l,"base64");if(u.length<5)throw new lB.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:u.subarray(0,4),signature:u.subarray(4)}});if(o.length===0)throw new lB.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(s,o)}},aD=class t{origin;logSize;logHash;rest;constructor(e,r,s,i){this.origin=e,this.logSize=r,this.logHash=s,this.rest=i}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new lB.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let s=r[0],i=BigInt(r[1]),n=Buffer.from(r[2],"base64"),o=r.slice(3);return new t(s,i,n,o)}};uB.LogCheckpoint=aD});var I1e=A(BW=>{"use strict";Object.defineProperty(BW,"__esModule",{value:!0});BW.verifyMerkleInclusion=AQt;var wW=ec(),IW=pi(),fQt=Buffer.from([0]),pQt=Buffer.from([1]);function AQt(t,e){let r=t.inclusionProof,s=BigInt(r.logIndex),i=BigInt(e.logSize);if(s<0n||s>=i)throw new IW.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${s}`});let{inner:n,border:o}=mQt(s,i);if(r.hashes.length!==n+o)throw new IW.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,n),c=r.hashes.slice(n),l=bQt(t.canonicalizedBody),u=yQt(gQt(l,a,s),c);if(!wW.crypto.bufferEqual(u,e.logHash))throw new IW.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function mQt(t,e){let r=EQt(t,e),s=CQt(t>>BigInt(r));return{inner:r,border:s}}function gQt(t,e,r){return e.reduce((s,i,n)=>r>>BigInt(n)&BigInt(1)?bW(i,s):bW(s,i),t)}function yQt(t,e){return e.reduce((r,s)=>bW(s,r),t)}function EQt(t,e){return IQt(t^e-BigInt(1))}function CQt(t){return t.toString(2).split("1").length-1}function IQt(t){return t===0n?0:t.toString(2).length}function bW(t,e){return wW.crypto.digest("sha256",pQt,t,e)}function bQt(t){return wW.crypto.digest("sha256",fQt,t)}});var w1e=A(SW=>{"use strict";Object.defineProperty(SW,"__esModule",{value:!0});SW.verifyTLogSET=SQt;var b1e=ec(),wQt=pi(),BQt=PE();function SQt(t,e){if(!(0,BQt.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(i=>{let n=xQt(t),o=Buffer.from(b1e.json.canonicalize(n),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return b1e.crypto.verify(o,i.publicKey,a)}))throw new wQt.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function xQt(t){let{integratedTime:e,logIndex:r,logId:s,canonicalizedBody:i}=t;return{body:i.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:s.keyId.toString("hex")}}});var S1e=A(cD=>{"use strict";Object.defineProperty(cD,"__esModule",{value:!0});cD.verifyTLogBody=_Qt;cD.verifyTLogInclusion=QQt;var B1e=$J(),RW=pi(),xW=m1e(),NW=g1e(),NQt=y1e(),RQt=C1e(),vQt=I1e(),TQt=w1e();function _Qt(t,e){let{kind:r,version:s}=t.kindVersion,i=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==i.kind||s!==i.apiVersion)throw new RW.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${s}, received: ${i.kind}/${i.apiVersion}`});switch(r){case"dsse":if(s==xW.DSSE_API_VERSION_V1)return(0,xW.verifyDSSETLogBody)(i,e);{let n=B1e.Entry.fromJSON(i);return(0,xW.verifyDSSETLogBodyV2)(n,e)}case"intoto":return(0,NQt.verifyIntotoTLogBody)(i,e);case"hashedrekord":if(s==NW.HASHEDREKORD_API_VERSION_V1)return(0,NW.verifyHashedRekordTLogBody)(i,e);{let n=B1e.Entry.fromJSON(i);return(0,NW.verifyHashedRekordTLogBodyV2)(n,e)}default:throw new RW.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}function QQt(t,e){let r=!1;if(PQt(t)&&((0,TQt.verifyTLogSET)(t,e),r=!0),OQt(t)){let s=(0,RQt.verifyCheckpoint)(t,e);(0,vQt.verifyMerkleInclusion)(t,s),r=!0}if(!r)throw new RW.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function PQt(t){return t.inclusionPromise!==void 0}function OQt(t){return t.inclusionProof!==void 0}});var T1e=A(lD=>{"use strict";Object.defineProperty(lD,"__esModule",{value:!0});lD.Verifier=void 0;var DQt=require("util"),OE=pi(),x1e=h1e(),vW=d1e(),N1e=A1e(),R1e=S1e(),TW=class{trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let s=this.verifyTimestamps(e),i=this.verifySigningKey(e,s);return this.verifyTLogs(e),this.verifySignature(e,i),r&&this.verifyPolicy(r,i.identity||{}),i}verifyTimestamps(e){let r=[];for(let s of e.timestamps)switch(s.$case){case"timestamp-authority":r.push((0,N1e.getTSATimestamp)(s.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities));break;case"transparency-log":{let i=(0,N1e.getTLogTimestamp)(s.tlogEntry);i&&r.push(i);break}}if(v1e(r))throw new OE.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r.length<this.options.timestampThreshold)throw new OE.VerificationError({code:"TIMESTAMP_ERROR",message:`expected ${this.options.timestampThreshold} timestamps, got ${r.length}`});return r.map(s=>s.timestamp)}verifySigningKey({key:e},r){switch(e.$case){case"public-key":return(0,x1e.verifyPublicKey)(e.hint,r,this.trustMaterial);case"certificate":{let s=(0,x1e.verifyCertificate)(e.certificate,r,this.trustMaterial);if(v1e(s.scts))throw new OE.Verifica Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function E2(){return process.env.RUNNER_DEBUG==="1"}function ot(t){PD("debug",{},t)}function _m(t){process.stdout.write(t+Hie.EOL)}function xze(t){OD("group",t)}function Nze(){OD("endgroup")}function WC(t,e){return Sze(this,void 0,void 0,function*(){xze(t);let r;try{r=yield e()}finally{Nze()}return r})}var $ie=O(require("os"),1);function Hh(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function C2(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 zh(t,e,r){let s=new I2(t,e,r);process.stdout.write(s.toString()+$ie.EOL)}function b2(t,e=""){zh(t,{},e)}var Vie="::",I2=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=Vie+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnProperty(s)){let i=this.properties[s];i&&(r?r=!1:e+=",",e+=`${s}=${vze(i)}`)}}return e+=`${Vie}${Rze(this.message)}`,e}};function Rze(t){return Hh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function vze(t){return Hh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var jie=O(require("crypto"),1),Ix=O(require("fs"),1),Cx=O(require("os"),1);function w2(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!Ix.existsSync(r))throw new Error(`Missing file at path: ${r}`);Ix.appendFileSync(r,`${Hh(e)}${Cx.EOL}`,{encoding:"utf8"})}function Jie(t,e){let r=`ghadelimiter_${jie.randomUUID()}`,s=Hh(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(s.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${Cx.EOL}${s}${Cx.EOL}${r}`}var Zie=O(require("os"),1),ene=O(require("path"),1);var bx=O(af(),1),_ze=O(Fh(),1);var pc;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(pc||(pc={}));var Yie;(function(t){t.Accept="accept",t.ContentType="content-type"})(Yie||(Yie={}));var Wie;(function(t){t.ApplicationJson="application/json"})(Wie||(Wie={}));var vOt=[pc.MovedPermanently,pc.ResourceMoved,pc.SeeOther,pc.TemporaryRedirect,pc.PermanentRedirect],TOt=[pc.BadGateway,pc.ServiceUnavailable,pc.GatewayTimeout];var Xie=require("os"),XC=require("fs"),B2=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},{access:Qze,appendFile:Pze,writeFile:Oze}=XC.promises,Kie="GITHUB_STEP_SUMMARY";var S2=class{constructor(){this._buffer=""}filePath(){return B2(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Kie];if(!e)throw new Error(`Unable to find environment variable for $${Kie}. Check if your runtime environment supports job summaries.`);try{yield Qze(e,XC.constants.R_OK|XC.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,s={}){let i=Object.entries(s).map(([n,o])=>` ${n}="${o}"`).join("");return r?`<${e}${i}>${r}</${e}>`:`<${e}${i}>`}write(e){return B2(this,void 0,void 0,function*(){let r=!!e?.overwrite,s=yield this.filePath();return yield(r?Oze:Pze)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return B2(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.addELine truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function rne(t){process.exitCode=N2.Failure,Mze(t)}function z(t){zh("debug",{},t)}function Mze(t,e={}){zh("error",C2(e),t instanceof Error?t.toString():t)}function Ro(t,e={}){zh("warning",C2(e),t instanceof Error?t.toString():t)}function j(t){process.stdout.write(t+Zie.EOL)}function Lze(t){b2("group",t)}function Uze(){b2("endgroup")}function Vh(t,e){return kze(this,void 0,void 0,function*(){Lze(t);let r;try{r=yield e()}finally{Uze()}return r})}function wx(t,e){if(process.env.GITHUB_STATE||"")return w2("STATE",Jie(t,e));zh("save-state",{name:t},Hh(e))}function sne(t){return process.env[`STATE_${t}`]||""}var NT=O(require("fs"),1),Rz=O(require("os"),1),vz=O(require("path"),1);var Y2=O(require("crypto"),1),Ks=O(require("fs"),1);var D5e=O(j2(),1);var Lx=O(require("os"),1),Ta=O(require("path"),1);var _o=O(j2(),1),joe=O(require("stream"),1),Joe=O(require("util"),1),W2=require("assert");var $oe=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},kx=class{constructor(e,r,s){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(s),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return $oe(this,void 0,void 0,function*(){let s=1;for(;s<this.maxAttempts;){try{return yield e()}catch(n){if(r&&!r(n))throw n;_m(n.message)}let i=this.getSleepAmount();_m(`Waiting ${i} seconds before trying again`),yield this.sleep(i),s++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return $oe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var gc=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Mx=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},Yoe=process.platform==="win32",XDt=process.platform==="darwin",M5e="actions/tool-cache";function Qo(t,e,r,s){return gc(this,void 0,void 0,function*(){e=e||Ta.join(tae(),Y2.randomUUID()),yield su(Ta.dirname(e)),ot(`Downloading ${t}`),ot(`Destination ${e}`);let i=3,n=J2("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=J2("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new kx(i,n,o).execute(()=>gc(this,void 0,void 0,function*(){return yield L5e(t,e||"",r,s)}),c=>!(c instanceof Mx&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function L5e(t,e,r,s){return gc(this,void 0,void 0,function*(){if(Ks.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let i=new HC(M5e,[],{allowRetries:!1});r&&(ot("set auth"),s===void 0&&(s={}),s.authorization=r);let n=yield i.get(t,s);if(n.message.statusCode!==200){let u=new Mx(n.message.statusCode);throw ot(`Failed to download from "${t}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`),u}let o=Joe.promisify(joe.pipeline),c=J2("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>n.message)(),l=!1;try{return yield o(c,Ks.createWriteStream(e)),ot("download complete"),l=!0,e}finally{if(!l){ot("download failed");try{yield gx(e)}catch(u){ot(`Failed to delete '${e}'. ${u.message}`)}}}})}function Woe(t,e){return gc(this,arguments,void 0,function*(r,s,i="xz"){if(!r)throw new Error("parameter 'file' is required");s=yield Zoe(s),ot("Checking tar --version");let n="";yield qn("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:u=>n+=u.toString(),stderr:u=>n+=u.toString()}}),ot(n.trim());let o=n.toUpperCase().includes("GNU TAR"),a;i instanceof Array?a=i:a=[i],E2()&&!i.includes("v")&&a.push("-v");let c=s,l=r;return Yoe&&o&&(a.push("--force-local"),c=s.replace(/\\/g,"/"),l=r.replace(/\\/g,"/")),o&&(a.push("--warning=no-unknown-keyword"),a.push("--overwrite")),a.push("-C",c,"-f",l),yield qn("tar",a),s})}function Koe(t,e){return gc(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield Zoe(e),Yoe?yield U5e(t,e):yield F5e(t,e),e})}function U5e(t,e){return gc(this,void 0,void 0,function*(){let r=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield Ls("pwsh",!1);if(i){let o=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ;","try { Add-Type -AssemblyName System.IO.Compression.ZipFile Line truncated
`,fje=/\u2014 (\S+) (\S+)\n/g;function hje(t,e){let r=t.inclusionProof,s=P2.fromString(r.checkpoint.envelope),n=nN.fromString(s.note);if(!mje(s,e))throw new Xg.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}o(hje,"verifyCheckpoint");function mje(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(s=>{let n=e.find(i=>yce.crypto.bufferEqual(i.logID.subarray(0,4),s.keyHint)&&i.baseURL.match(s.name));return n?yce.crypto.verify(r,n.publicKey,s.signature):!1})}o(mje,"verifySignedNote");var P2=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(v2))throw new Xg.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(v2),s=e.slice(0,r+1),i=e.slice(r+v2.length).matchAll(fje),a=Array.from(i,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new Xg.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:l,keyHint:d.subarray(0,4),signature:d.subarray(4)}});if(a.length===0)throw new Xg.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(s,a)}},nN=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,s,n){this.origin=e,this.logSize=r,this.logHash=s,this.rest=n}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new Xg.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let s=r[0],n=BigInt(r[1]),i=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(s,n,i,a)}};Zg.LogCheckpoint=nN});var Ice=h(O2=>{"use strict";Object.defineProperty(O2,"__esModule",{value:!0});O2.verifyMerkleInclusion=yje;var D2=gi(),_2=Tr(),gje=Buffer.from([0]),Eje=Buffer.from([1]);function yje(t,e){let r=t.inclusionProof,s=BigInt(r.logIndex),n=BigInt(e.logSize);if(s<0n||s>=n)throw new _2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${s}`});let{inner:i,border:a}=Cje(s,n);if(r.hashes.length!==i+a)throw new _2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,i),l=r.hashes.slice(i),u=Nje(t.canonicalizedBody),d=Bje(Ije(u,c,s),l);if(!D2.crypto.bufferEqual(d,e.logHash))throw new _2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(yje,"verifyMerkleInclusion");function Cje(t,e){let r=bje(t,e),s=wje(t>>BigInt(r));return{inner:r,border:s}}o(Cje,"decompInclProof");function Ije(t,e,r){return e.reduce((s,n,i)=>r>>BigInt(i)&BigInt(1)?k2(n,s):k2(s,n),t)}o(Ije,"chainInner");function Bje(t,e){return e.reduce((r,s)=>k2(s,r),t)}o(Bje,"chainBorderRight");function bje(t,e){return Sje(t^e-BigInt(1))}o(bje,"innerProofSize");function wje(t){return t.toString(2).split("1").length-1}o(wje,"onesCount");function Sje(t){return t===0n?0:t.toString(2).length}o(Sje,"bitLength");function k2(t,e){return D2.crypto.digest("sha256",Eje,t,e)}o(k2,"hashChildren");function Nje(t){return D2.crypto.digest("sha256",gje,t)}o(Nje,"hashLeaf")});var bce=h(M2=>{"use strict";Object.defineProperty(M2,"__esModule",{value:!0});M2.verifyTLogSET=Rje;var Bce=gi(),xje=Tr(),Qje=qp();function Rje(t,e){if(!(0,Qje.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let i=Tje(t),a=Buffer.from(Bce.json.canonicalize(i),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return Bce.crypto.verify(a,n.publicKey,c)}))throw new xje.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(Rje,"verifyTLogSET");function Tje(t){let{integratedTime:e,logIndex:r,logId:s,canonicalizedBody:n}=t;return{body:n.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:s.keyId.toString("hex")}}o(Tje,"toVerificationPayload")});var Sce=h(iN=>{"use strict";Object.defineProperty(iN,"__esModule",{value:!0});iN.verifyTLogBody=Dje;iN.verifyTLogInclusion=Oje;var wce=hce(),U2=Tr(),L2=mce(),F2=gce(),vje=Ece(),Pje=Cce(),_je=Ice(),kje=bce();function Dje(t,e){let{kind:r,version:s}=t.kindVersion,n=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==n.kind||s!==n.apiVersion)throw new U2.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${s}, received: ${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(s==L2.DSSE_API_VERSION_V1)return(0,L2.verifyDSSETLogBody)(n,e);{let i=wce.Entry.fromJSON(n);return(0,L2.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,vje.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(s==F2.HASHEDREKORD_API_VERSION_V1)return(0,F2.verifyHashedRekordTLogBody)(n,e);{let i=wce.Entry.fromJSON(n);return(0,F2.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new U2.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(Dje,"verifyTLogBody");function Oje(t,e){let r=!1;if(Mje(t)&&((0,kje.verifyTLogSET)(t,e),r=!0),Lje(t)){let s=(0,Pje.verifyCheckpoint)(t,e);(0,_je.verifyMerkleInclusion)(t,s),r=!0}if(!r)throw new U2.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(Oje,"verifyTLogInclusion");function Mje(t){return t.inclusionPromise!==void 0}o(Mje,"isTLogEntryWithInclusionPromise");function Lje(t){return t.inclusionProof!==void 0}o(Lje,"isTLogEntryWithInclusionProof")});var Tce=h(oN=>{"use strict";Object.defineProperty(oN,"__esModule",{value:!0});oN.Verifier=void 0;var Fje=require("util"),zp=Tr(),Nce=sce(),q2=nce(),xce=ace(),Qce=Sce(),G2=class{static{o(this,"Verifier")}trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let s=this.verifyTimestamps(e),n=this.verifySigningKey(e,s);return this.verifyTLogs(e),this.verifySignature(e,n),r&&this.verifyPolicy(r,n.identity||{}),n}verifyTimestamps(e){let r=[];for(let s of e.timestamps)switch(s.$case){case"timestamp-authority":r.push((0,xce.getTSATimestamp)(s.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities));break;case"transparency-log":{let n=(0,xce.getTLogTimestamp)(s.tlogEntry);n&&r.push(n);break}}if(Rce(r))throw new zp.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r.length<this.options.timestampThresho Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(cC,"getBooleanInput");function tW(t){process.exitCode=fT.Failure,Vd(t)}o(tW,"setFailed");function Rl(){return process.env.RUNNER_DEBUG==="1"}o(Rl,"isDebug");function b(t){Ua("debug",{},t)}o(b,"debug");function Vd(t,e={}){Ua("error",wN(e),t instanceof Error?t.toString():t)}o(Vd,"error");function et(t,e={}){Ua("warning",wN(e),t instanceof Error?t.toString():t)}o(et,"warning");function S(t){process.stdout.write(t+Z3.EOL)}o(S,"info");function RBe(t){NN("group",t)}o(RBe,"startGroup");function TBe(){NN("endgroup")}o(TBe,"endGroup");function Ms(t,e){return QBe(this,void 0,void 0,function*(){RBe(t);let r;try{r=yield e()}finally{TBe()}return r})}o(Ms,"group");function lC(t,e){if(process.env.GITHUB_STATE||"")return xN("STATE",eq(t,e));Ua("save-state",{name:t},Fa(e))}o(lC,"saveState");function rW(t){return process.env[`STATE_${t}`]||""}o(rW,"getState");var pw=w(require("fs"),1),IL=w(require("os"),1),BL=w(require("path"),1);var nW=w(require("os"),1);function ch(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(ch,"toCommandValue");function iW(t,e,r){let s=new hT(t,e,r);process.stdout.write(s.toString()+nW.EOL)}o(iW,"issueCommand");var sW="::",hT=class{static{o(this,"Command")}constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=sW+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnProperty(s)){let n=this.properties[s];n&&(r?r=!1:e+=",",e+=`${s}=${PBe(n)}`)}}return e+=`${sW}${vBe(this.message)}`,e}};function vBe(t){return ch(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(vBe,"escapeData");function PBe(t){return ch(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(PBe,"escapeProperty");var lW=w(require("os"),1);var aW=require("os"),lh=require("fs");var mT=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},{access:_Be,appendFile:kBe,writeFile:DBe}=lh.promises,oW="GITHUB_STEP_SUMMARY";var gT=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return mT(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[oW];if(!e)throw new Error(`Unable to find environment variable for $${oW}. Check if your runtime environment supports job summaries.`);try{yield _Be(e,lh.constants.R_OK|lh.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,s={}){let n=Object.entries(s).map(([i,a])=>` ${i}="${a}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return mT(this,void 0,void 0,function*(){let r=!!e?.overwrite,s=yield this.filePath();return yield(r?DBe:kBe)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return mT(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(aW.EOL)}addCodeBlock(e,r){let s=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),s);return this.addRaw(n).addEOL()}addList(e,r=!1){let s=r?"ol":"ul",n=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(s,n);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(n=>{let i=n.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,A=c?"th":"td",p=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(A,l,p)}).join("");return this.wrap("tr",i)}).join(""),s=this.wrap("table",r);return this.addRaw(s).addEOL()}addDetails(e,r){let s=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(s).addEOL()}addImage(e,r,s){let{width:n,height:i}=s||{},a=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let s=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(s)?s:"h1",i=this.wrap(n,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 s=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,s);return this.addRaw(n).addEOL()}addLink(e,r){let s=this.wrap("a",e,{href:r});return this.addRaw(s).addEOL()}},b9e=new gT;var ET=w(require("os"),1);var Q9e=ET.default.platform(),R9e=ET.defauLine truncated
`),e=e.replace(/\r/g,`
`));let i=e.split(`
`).map(n=>n.trim());for(let n of i)!n||n.startsWith("#")||s.patterns.push(new fI(n));return s.searchPaths.push(...nU(s.patterns)),s})}static stat(e,r,s){return uU(this,void 0,void 0,function*(){let i;if(r.followSymbolicLinks)try{i=yield Fm.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){ot(`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 i=yield Fm.promises.lstat(e.path);if(i.isDirectory()&&r.followSymbolicLinks){let n=yield Fm.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===n)){ot(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}s.push(n)}return i})}};var N$e=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function kae(t,e){return N$e(this,void 0,void 0,function*(){return yield zx.create(t,e)})}var oN=O(require("crypto"),1),Hm=O(require("fs"),1),qf=O(require("path"),1),Nle=O(Sle(),1),Rle=O(require("util"),1);var bI;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(bI||(bI={}));var Bi;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Bi||(Bi={}));var Hn;(function(t){t.GNU="gnu",t.BSD="bsd"})(Hn||(Hn={}));var iN=2,nN=5e3,TU=5e3,_U=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,xle=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,wI="cache.tar",QU="manifest.txt",VMt=10*Math.pow(1024,3);var Gm=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},BJe=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(n){r[n]=t[n]&&function(o){return new Promise(function(a,c){o=t[n](o),i(a,c,o.done,o.value)})}}function i(n,o,a,c){Promise.resolve(c).then(function(l){n({value:l,done:a})},o)}},SJe="1.0";function BI(){return Gm(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=qf.join(s,"actions","temp")}let r=qf.join(e,oN.randomUUID());return yield su(r),r})}function Cc(t){return Hm.statSync(t).size}function PU(t){return Gm(this,void 0,void 0,function*(){var e,r,s,i,n;let o=[],a=(n=process.env.GITHUB_WORKSPACE)!==null&&n!==void 0?n:process.cwd(),c=yield kae(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,u=BJe(c.globGenerator()),h;h=yield u.next(),e=h.done,!e;l=!0){i=h.value,l=!1;let f=qf.relative(a,i).replace(new RegExp(`\\${qf.sep}`,"g"),"/");se(`Matched: ${f}`),f===""?o.push("."):o.push(`${f}`)}}catch(d){r={error:d}}finally{try{!l&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function SI(t){return Gm(this,void 0,void 0,function*(){return Rle.promisify(Hm.unlink)(t)})}function vle(t){return Gm(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),se(`Checking ${e} ${r.join(" ")}`);try{yield qn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>s+=i.toString(),stderr:i=>s+=i.toString()}})}catch(i){se(i.message)}return s=s.trim(),se(s),s})}function xI(){return Gm(this,void 0,void 0,function*(){let t=yield vle("zstd",["--quiet"]),e=Nle.clean(t);return se(`zstd version: ${e}`),t===""?Bi.Gzip:Bi.ZstdWithoutLong})}function Kh(t){return t===Bi.Gzip?bI.Gzip:bI.Zstd}function Tle(){return Gm(this,void 0,void 0,function*(){return Hm.existsSync(_U)?_U:(yield vle("tar")).toLowerCase().includes("gnu tar")?Ls("tar"):""})}function OU(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function zm(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(SJe),oN.createHash("sha256").update(s.join("|")).digest("hex")}function _le(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var RI=O(require("http"),1),MU=O(require("https"),1);function DU(t){let e=t.protocol==="https:";if(xJe(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 cN(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new cN(`http://${r}`)}else return}function xJe(t){if(!t.hostname)return!1;let e=t.hostname;if(NJe(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 i=[t.hostname.toUpperCase()];typeof s=="number"&&i.push(`${i[0]}:${s}`);for(let n of r.split(",").map(o=>o.trim().toUpperCase()).filter(o=>o))if(n==="*"||i.some(o=>o===n||o.endsWith(`.${n}`)||n.startsWith(".")&&o.endsWith(`${n}`)))return!0;return!1}function NJe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}var cN=class extends URL{constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Xh=O(af(),1),Qle=O(Fh(),1),Qr=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},mr;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(mr||(mr={}));var Si;(function(t){t.Accept="accept",t.ContentType="content-type"})(Si||(Si={}));var au;(function(t){t.ApplicationJson="application/json"})(au||(au={}));var vJe=[mr.MovedPermanently,mr.ResourceMoved,mr.SeeOther,mr.TemporaryRedirect,mr.PermanentRedirect],TJe=[mr.BadGateway,mr.ServiceUnavailable,mr.GatewayTimeout],_Je=["OPTIONS","GET","DELETE","HEAD"],QJe=10,PJe=5,Ic=class t extends Error{constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},kU=class{constructor(e){this.message=e}readBody(){return Qr(this,void 0,void 0,function*(){return new Promise(e=>Qr(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",s=>{r=Buffer.concat([r,s])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return Qr(this,void 0,void 0,f Line truncated
${GJe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function pN(t){return t instanceof xi?!0:Hf(t)&&t.name==="RestError"}function sn(t,e){return Buffer.from(t,e)}var AN=O(require("node:http"),1),mN=O(require("node:https"),1),jU=O(require("node:zlib"),1),Wle=require("node:stream");var Do=vI("ts-http-runtime");var HJe={};function TI(t){return t&&typeof t.pipe=="function"}function Yle(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 Kle(t){return t&&typeof t.byteLength=="number"}var gN=class extends Wle.Transform{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(i){s(i)}}constructor(e){super(),this.progressCallback=e}},JU=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new bc("The operation was aborted. Request has already been canceled.");s=l=>{l.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let i;e.timeout>0&&(i=setTimeout(()=>{let l=new Oa;Do.info(`request to '${l.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let n=e.headers.get("Accept-Encoding"),o=n?.includes("gzip")||n?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let l=jJe(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let p=e.onUploadProgress,m=new gN(p);m.on("error",E=>{Do.error("Error in upload progress",E)}),TI(a)?a.pipe(m):m.end(a),a=m}let l=await this.makeRequest(e,r,a);i!==void 0&&clearTimeout(i);let u=zJe(l),d={status:l.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return l.resume(),d;c=o?VJe(l,u):l;let f=e.onDownloadProgress;if(f){let p=new gN(f);p.on("error",m=>{Do.error("Error in download progress",m)}),c.pipe(p),c=p}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await $Je(c),d}finally{if(e.abortSignal&&s){let l=Promise.resolve();TI(a)&&(l=Yle(a));let u=Promise.resolve();TI(c)&&(u=Yle(c)),Promise.all([l,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(h=>{Do.warning("Error when cleaning up abortListener on httpRequest",h)})}}}makeRequest(e,r,s){let i=new URL(e.url),n=i.protocol!=="https:";if(n&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,n),hostname:i.hostname,path:`${i.pathname}${i.search}`,port:i.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,l)=>{let u=n?AN.default.request(a,c):mN.default.request(a,c);u.once("error",h=>{l(new xi(h.message,{code:h.code??xi.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let h=new bc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(h),l(h)}),s&&TI(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):Kle(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Do.error("Unrecognized body type",s),l(new xi("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?AN.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new AN.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return mN.default.globalAgent;let i=e.tlsSettings??HJe,n=this.cachedHttpsAgents.get(i);return n&&n.options.keepAlive===!s||(Do.info("No cached TLS Agent exist, creating a new Agent"),n=new mN.default.Agent({keepAlive:!s,...i}),this.cachedHttpsAgents.set(i,n)),n}}};function zJe(t){let e=zn();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 VJe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=jU.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=jU.default.createInflate();return t.pipe(s),s}return t}function $Je(t){return new Promise((e,r)=>{let s=[];t.on("data",i=>{Buffer.isBuffer(i)?s.push(i):s.push(Buffer.from(i))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",i=>{i&&i?.name==="AbortError"?r(i):r(new xi(`Error reading response as text: ${i.message}`,{code:xi.PARSE_ERROR}))})})}function jJe(t){return t?Buffer.isBuffer(t)?t.length:TI(t)?null:Kle(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Xle(){return new JU}function yN(){return Xle()}var YU="logPolicy";function EN(t={}){let e=t.logger??Do.info,r=new Oa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additional Line truncated
`;return e}function S9e(t){return t instanceof Uint8Array?t.byteLength:FN(t)?t.size===-1?void 0:t.size:void 0}function x9e(t){let e=0;for(let r of t){let s=S9e(r);if(s===void 0)return;e+=s}return e}async function N9e(t,e,r){let s=[sn(`--${r}`,"utf-8"),...e.flatMap(n=>[sn(`\r
`,"utf-8"),sn(B9e(n.headers),"utf-8"),sn(`\r
`,"utf-8"),n.body,sn(`\r
--${r}`,"utf-8")]),sn(`--\r
`));let n=e.split(`
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new Bh(i));return s.searchPaths.push(...XT(s.patterns)),s})}static stat(e,r,s){return sv(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Kd.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){hn(`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 Kd.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Kd.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(a=>a===i)){hn(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var BSe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function q4(t,e){return BSe(this,void 0,void 0,function*(){return yield RC.create(t,e)})}o(q4,"create");var zC=w(require("crypto"),1),eA=w(require("fs"),1),Dl=w(require("path"),1),P8=w(T8(),1),_8=w(require("util"),1);var vh;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(vh||(vh={}));var Ur;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ur||(Ur={}));var Fs;(function(t){t.GNU="gnu",t.BSD="bsd"})(Fs||(Fs={}));var HC=2,VC=5e3,bv=5e3,wv=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,v8=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Ph="cache.tar",Sv="manifest.txt",Pet=10*Math.pow(1024,3);var Zd=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},yQe=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(a){return new Promise(function(c,l){a=t[i](a),n(c,l,a.done,a.value)})}}function n(i,a,c,l){Promise.resolve(l).then(function(u){i({value:u,done:c})},a)}},CQe="1.0";function _h(){return Zd(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=Dl.join(s,"actions","temp")}let r=Dl.join(e,zC.randomUUID());return yield ra(r),r})}o(_h,"createTempDirectory");function Li(t){return eA.statSync(t).size}o(Li,"getArchiveFileSizeInBytes");function Nv(t){return Zd(this,void 0,void 0,function*(){var e,r,s,n,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),l=yield q4(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,d=yQe(l.globGenerator()),A;A=yield d.next(),e=A.done,!e;u=!0){n=A.value,u=!1;let f=Dl.relative(c,n).replace(new RegExp(`\\${Dl.sep}`,"g"),"/");b(`Matched: ${f}`),f===""?a.push("."):a.push(`${f}`)}}catch(p){r={error:p}}finally{try{!u&&!e&&(s=d.return)&&(yield s.call(d))}finally{if(r)throw r.error}}return a})}o(Nv,"resolvePaths");function kh(t){return Zd(this,void 0,void 0,function*(){return _8.promisify(eA.unlink)(t)})}o(kh,"unlinkFile");function k8(t){return Zd(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),b(`Checking ${e} ${r.join(" ")}`);try{yield Os(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(n=>s+=n.toString(),"stdout"),stderr:o(n=>s+=n.toString(),"stderr")}})}catch(n){b(n.message)}return s=s.trim(),b(s),s})}o(k8,"getVersion");function Dh(){return Zd(this,void 0,void 0,function*(){let t=yield k8("zstd",["--quiet"]),e=P8.clean(t);return b(`zstd version: ${e}`),t===""?Ur.Gzip:Ur.ZstdWithoutLong})}o(Dh,"getCompressionMethod");function pc(t){return t===Ur.Gzip?vh.Gzip:vh.Zstd}o(pc,"getCacheFileName");function D8(){return Zd(this,void 0,void 0,function*(){return eA.existsSync(wv)?wv:(yield k8("tar")).toLowerCase().includes("gnu tar")?fr("tar"):""})}o(D8,"getGnuTarPathOnWindows");function xv(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(xv,"assertDefined");function tA(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(CQe),zC.createHash("sha256").update(s.join("|")).digest("hex")}o(tA,"getCacheVersion");function O8(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(O8,"getRuntimeToken");var Mh=w(require("http"),1),Tv=w(require("https"),1);function Qv(t){let e=t.protocol==="https:";if(IQe(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 YC(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new YC(`http://${r}`)}else return}o(Qv,"getProxyUrl");function IQe(t){if(!t.hostname)return!1;let e=t.hostname;if(BQe(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.hostname.toUpperCase()];typeof s=="number"&&n.push(`${n[0]}:${s}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||n.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(IQe,"checkBypass");function BQe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(BQe,"isLoopbackAddress");var YC=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var fc=w(Zp(),1),M8=w(qd(),1);var vt=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},yt;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(yt||(yt={}));var qr;(function(t){t.Accept="accept",t.ContentType="content-type"})(qr||(qr={}));var oa;(function(t){t.ApplicationJson="application/json"})(oa||(oa={}));var wQe=[yt.MovedPermanently,yt.ResourceMoved,yt.SeeOther,yt.TemporaryRedirect,yt.PermanentRedirect],SQe=[yt.BadGateway,yt.ServiceUnavailable,yt.GatewayTimeout],NQe=["OPTIONS","GET","DELETE","HEAD"],xQe=10,QQe=5,Fi=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r) Line truncated
${MQe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function ZC(t){return t instanceof Gr?!0:Ml(t)&&t.name==="RestError"}o(ZC,"isRestError");function is(t,e){return Buffer.from(t,e)}o(is,"stringToUint8Array");var eI=w(require("node:http"),1),tI=w(require("node:https"),1),Uv=w(require("node:zlib"),1),t6=require("node:stream");var En=Lh("ts-http-runtime");var LQe={};function Fh(t){return t&&typeof t.pipe=="function"}o(Fh,"isReadableStream");function e6(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(e6,"isStreamComplete");function r6(t){return t&&typeof t.byteLength=="number"}o(r6,"isArrayBuffer");var rI=class extends t6.Transform{static{o(this,"ReportTransform")}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}},qv=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new Ui("The operation was aborted. Request has already been canceled.");s=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let u=new ni;En.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),a=i?.includes("gzip")||i?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=GQe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let m=e.onUploadProgress,g=new rI(m);g.on("error",y=>{En.error("Error in upload progress",y)}),Fh(c)?c.pipe(g):g.end(c),c=g}let u=await this.makeRequest(e,r,c);n!==void 0&&clearTimeout(n);let d=FQe(u),p={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?UQe(u,d):u;let f=e.onDownloadProgress;if(f){let m=new rI(f);m.on("error",g=>{En.error("Error in download progress",g)}),l.pipe(m),l=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(p.status)?p.readableStreamBody=l:p.bodyAsText=await qQe(l),p}finally{if(e.abortSignal&&s){let u=Promise.resolve();Fh(c)&&(u=e6(c));let d=Promise.resolve();Fh(l)&&(d=e6(l)),Promise.all([u,d]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(A=>{En.warning("Error when cleaning up abortListener on httpRequest",A)})}}}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 c={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((l,u)=>{let d=i?eI.default.request(c,l):tI.default.request(c,l);d.once("error",A=>{u(new Gr(A.message,{code:A.code??Gr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new Ui("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(A),u(A)}),s&&Fh(s)?s.pipe(d):s?typeof s=="string"||Buffer.isBuffer(s)?d.end(s):r6(s)?d.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(En.error("Unrecognized body type",s),u(new Gr("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?eI.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new eI.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return tI.default.globalAgent;let n=e.tlsSettings??LQe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(En.info("No cached TLS Agent exist, creating a new Agent"),i=new tI.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function FQe(t){let e=Us();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}o(FQe,"getResponseHeaders");function UQe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=Uv.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=Uv.default.createInflate();return t.pipe(s),s}return t}o(UQe,"getDecodedResponseStream");function qQe(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 Gr(`Error reading response as text: ${n.message}`,{code:Gr.PARSE_ERROR}))})})}o(qQe,"streamToText");function GQe(t){return t?Buffer.isBuffer(t)?t.length:Fh(t)?nul Line truncated
`;return e}o(yTe,"encodeHeaders");function CTe(t){return t instanceof Uint8Array?t.byteLength:NI(t)?t.size===-1?void 0:t.size:void 0}o(CTe,"getLength");function ITe(t){let e=0;for(let r of t){let s=CTe(r);if(s===void 0)return;e+=s}return e}o(ITe,"getTotalLength");async function BTe(t,e,r){let s=[is(`--${r}`,"utf-8"),...e.flatMap(i=>[is(`\r
`,"utf-8"),is(yTe(i.headers),"utf-8"),is(`\r
`,"utf-8"),i.body,is(`\r
--${r}`,"utf-8")]),is(`--\r
\r
`,"utf-8")],i=x9e(s);i&&t.headers.set("Content-Length",i),t.body=await Zue(s)}var OI="multipartPolicy",R9e=70,v9e=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function T9e(t){if(t.length>R9e)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!v9e.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function GN(){return{name:OI,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",i=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,n,o]=i;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?T9e(r):r=w9e(),t.headers.set("Content-Type",`${n}; boundary=${r}`),await N9e(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function HN(){return fN()}var ehe=uN({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),TFt=ehe.logger;function Sc(t){return ehe.createClientLogger(t)}var xc=Sc("core-rest-pipeline");function pF(t={}){return EN({logger:xc.info,...t})}var AF=CN;function mF(t={}){return IN(t)}var zN=O(require("node:os"),1),VN=O(require("node:process"),1);function the(){return"User-Agent"}async function rhe(t){if(VN.default&&VN.default.versions){let e=`${zN.default.type()} ${zN.default.release()}; ${zN.default.arch()}`,r=VN.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var $N="1.22.2";function L9e(t){let e=[];for(let[r,s]of t){let i=s?`${r}/${s}`:r;e.push(i)}return e.join(" ")}function she(){return the()}async function jN(t){let e=new Map;e.set("core-rest-pipeline",$N),await rhe(e);let r=L9e(e);return t?`${t} ${r}`:r}var ihe=she(),nhe="userAgentPolicy";function gF(t={}){let e=jN(t.userAgentPrefix);return{name:nhe,async sendRequest(r,s){return r.headers.has(ihe)||r.headers.set(ihe,await e),s(r)}}}var Jn=class extends Error{constructor(e){super(e),this.name="AbortError"}};function yF(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:i}=e??{};return new Promise((n,o)=>{function a(){o(new Jn(i??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a();try{t(u=>{c(),n(u)},u=>{c(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",l)})}var H9e="The delay was aborted.";function DI(t,e){let r,{abortSignal:s,abortErrorMsg:i}=e??{};return yF(n=>{r=setTimeout(n,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:i??H9e})}function ed(t){if(Hf(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function ohe(t){return Hf(t)}function Zm(){return Gf()}var wt=$f;var ahe=Symbol("rawContent");function CF(t){return typeof t[ahe]=="function"}function che(t){return CF(t)?t[ahe]():t}var JN=OI;function IF(){let t=GN();return{name:JN,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)CF(s.body)&&(s.body=che(s.body));return t.sendRequest(e,r)}}}var bF=bN;function wF(){return wN()}function BF(t={}){return xN(t)}function SF(){return NN()}function td(t){return lF(t)}function xF(t,e){return MN(t,e)}var lhe="setClientRequestIdPolicy";function NF(t="x-ms-client-request-id"){return{name:lhe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function RF(t){return LN(t)}function vF(t){return UN(t)}var eg={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function uhe(t={}){let e=new TF(t.parentContext);return t.span&&(e=e.setValue(eg.span,t.span)),t.namespace&&(e=e.setValue(eg.namespace,t.namespace)),e}var TF=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 dhe=O(hhe(),1),WN=dhe.state;function z9e(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function V9e(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:z9e(),tracingContext:uhe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function kI(){return WN.instrumenterImplementation||(WN.instrumenterImplementation=V9e()),WN.instrumenterImplementation}function MI(t){let{namespace:e,packageName:r,packageVersion:s}=t;function i(l,u,h){let d=kI().startSpan(l,{...h,packageName:r,packageVersion:s,tracingContext:u?.tracingOptions?.tracingContext}),f=d.tracingConte Line truncated
`&&t[n]!=="\r";n++)c+=t[n];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),n--),!fKe(c)){let h;return c.trim().length===0?h="Invalid space after '<'.":h="Tag '"+c+"' is an invalid name.",Pr("InvalidTag",h,Ni(t,n))}let l=cKe(t,n);if(l===!1)return Pr("InvalidAttr","Attributes for '"+c+"' have open quote.",Ni(t,n));let u=l.value;if(n=l.index,u[u.length-1]==="/"){let h=n-u.length;u=u.substring(0,u.length-1);let d=jhe(u,e);if(d===!0)s=!0;else return Pr(d.err.code,d.err.msg,Ni(t,h+d.err.line))}else if(a)if(l.tagClosed){if(u.trim().length>0)return Pr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Ni(t,o));if(r.length===0)return Pr("InvalidTag","Closing tag '"+c+"' has not been opened.",Ni(t,o));{let h=r.pop();if(c!==h.tagName){let d=Ni(t,h.tagStartPos);return Pr("InvalidTag","Expected closing tag '"+h.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Ni(t,o))}r.length==0&&(i=!0)}}else return Pr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Ni(t,n));else{let h=jhe(u,e);if(h!==!0)return Pr(h.err.code,h.err.msg,Ni(t,n-u.length+h.err.line));if(i===!0)return Pr("InvalidXml","Multiple possible root nodes found.",Ni(t,n));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),s=!0}for(n++;n<t.length;n++)if(t[n]==="<")if(t[n+1]==="!"){n++,n=$he(t,n);continue}else if(t[n+1]==="?"){if(n=Vhe(t,++n),n.err)return n}else break;else if(t[n]==="&"){let h=hKe(t,n);if(h==-1)return Pr("InvalidChar","char '&' is not expected.",Ni(t,n));n=h}else if(i===!0&&!zhe(t[n]))return Pr("InvalidXml","Extra text at the end",Ni(t,n));t[n]==="<"&&n--}}else{if(zhe(t[n]))continue;return Pr("InvalidChar","char '"+t[n]+"' is not expected.",Ni(t,n))}if(s){if(r.length==1)return Pr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Ni(t,r[0].tagStartPos));if(r.length>0)return Pr("InvalidXml","Invalid '"+JSON.stringify(r.map(n=>n.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Pr("InvalidXml","Start tag expected.",1);return!0}function zhe(t){return t===" "||t===" "||t===`
`||t==="\r"}function Vhe(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 Pr("InvalidXml","XML declaration allowed only at the start of the document.",Ni(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function $he(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 oKe='"',aKe="'";function cKe(t,e){let r="",s="",i=!1;for(;e<t.length;e++){if(t[e]===oKe||t[e]===aKe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){i=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:i}}var lKe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function jhe(t,e){let r=nR(t,lKe),s={};for(let i=0;i<r.length;i++){if(r[i][1].length===0)return Pr("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",jI(r[i]));if(r[i][3]!==void 0&&r[i][4]===void 0)return Pr("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",jI(r[i]));if(r[i][3]===void 0&&!e.allowBooleanAttributes)return Pr("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",jI(r[i]));let n=r[i][2];if(!dKe(n))return Pr("InvalidAttr","Attribute '"+n+"' is an invalid name.",jI(r[i]));if(!Object.prototype.hasOwnProperty.call(s,n))s[n]=1;else return Pr("InvalidAttr","Attribute '"+n+"' is repeated.",jI(r[i]))}return!0}function uKe(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 hKe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,uKe(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 Pr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function dKe(t){return JF(t)}function fKe(t){return JF(t)}function Ni(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function jI(t){return t.startIndex+t[1].length}var Jhe={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},Yhe={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"},Whe={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",LcaroLine truncated
`);let e=new cn("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let i=this.options,n=new WI(i.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let l=t.charCodeAt(a+1);if(l===47){let u=ng(t,">",a,"Closing Tag is not closed."),h=t.substring(a+2,u).trim();if(i.removeNSPrefix){let f=h.indexOf(":");f!==-1&&(h=h.substr(f+1))}h=rq(i.transformTagName,h,"",i).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(h&&i.unpairedTagsSet.has(h))throw new Error(`Unpaired tag can not be used as closing tag: </${h}>`);d&&i.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",a=u}else if(l===63){let u=sq(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let h=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(h){let d=h[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),n.setXmlVersion(Number(d)||1)}if(!(i.ignoreDeclaration&&u.tagName==="?xml"||i.ignorePiTags)){let d=new cn(u.tagName);d.add(i.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&i.ignoreAttributes!==!0&&(d[":@"]=h),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(l===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=ng(t,"-->",a+4,"Comment is not closed.");if(i.commentPropName){let h=t.substring(a+4,u-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(i.commentPropName,[{[i.textNodeName]:h}])}a=u}else if(l===33&&t.charCodeAt(a+2)===68){let u=n.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(l===33&&t.charCodeAt(a+2)===91){let u=ng(t,"]]>",a,"CDATA is not closed.")-2,h=t.substring(a+9,u);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.parseTextData(h,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),i.cdataPropName?r.add(i.cdataPropName,[{[i.textNodeName]:h}]):r.add(i.textNodeName,d),a=u+2}else{let u=sq(t,a,i.removeNSPrefix);if(!u){let P=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${P}"`)}let h=u.tagName,d=u.rawTagName,f=u.tagExp,p=u.attrExpPresent,m=u.closeIndex;if({tagName:h,tagExp:f}=rq(i.transformTagName,h,f,i),i.strictReservedNames&&(h===i.commentPropName||h===i.cdataPropName||h===i.textNodeName||h===i.attributesGroupName))throw new Error(`Invalid tag name: ${h}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let E=r;E&&i.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(y=!0,h[h.length-1]==="/"?(h=h.substr(0,h.length-1),f=h):f=f.substr(0,f.length-1),p=h!==f);let C=null,w={},S;S=kKe(d),h!==e.tagname&&this.matcher.push(h,{},S),h!==f&&p&&(C=this.buildAttributesMap(f,this.matcher,h),C&&(w=DKe(C,i))),h!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=a;if(this.isCurrentNodeStopNode){let P="";if(y)a=u.closeIndex;else if(i.unpairedTagsSet.has(h))a=u.closeIndex;else{let k=this.readStopNodeData(t,d,m+1);if(!k)throw new Error(`Unexpected end of ${d}`);a=k.i,P=k.tagContent}let Q=new cn(h);C&&(Q[":@"]=C),Q.add(i.textNodeName,P),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,Q,this.readonlyMatcher,N)}else{if(y){({tagName:h,tagExp:f}=rq(i.transformTagName,h,f,i));let P=new cn(h);C&&(P[":@"]=C),this.addChild(r,P,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(h)){let P=new cn(h);C&&(P[":@"]=C),this.addChild(r,P,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let P=new cn(h);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(P[":@"]=C),this.addChild(r,P,this.readonlyMatcher,N),r=P}s="",a=m}}}else s+=t[a];return e.child};function GKe(t,e,r,s){this.options.captureMetaData||(s=void 0);let i=this.options.jPath?r.toString():r,n=this.options.updateTag(e.tagname,i,e[":@"]);n===!1||(typeof n=="string"&&(e.tagname=n),t.addChild(e,s))}function HKe(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let i=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,i)))return t}if(s.tagFilter){let i=this.options.jPath?r.toString():r;if(!s.tagFilter(e,i))return t}return this.entityDecoder.decode(t)}function zKe(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 VKe(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function $Ke(t,e,r=">"){Line truncated
`;function eXe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(lq(r)==="?xml"){let i=r[":@"];if(i){let n=e.attributeNamePrefix+"version";if(i[n])return i[n]}}return"1.0"}function mde(t,e,r,s,i){return!r.sanitizeName||Xf(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}function cq(t,e){let r="";e.format&&(r=ZKe);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 Kn(a)):a instanceof Kn&&s.push(a)}let i=eXe(t,e),n=new vc;return gde(t,e,r,n,s,i)}function gde(t,e,r,s,i,n){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 c=t.toString();return c=aq(c,e),c}return""}for(let c=0;c<t.length;c++){let l=t[c],u=lq(l);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:mde(u,!1,e,s,n),f=tXe(l[":@"],e);s.push(d,f);let p=sXe(s,i);if(d===e.textNodeName){let w=l[u];p||(w=e.tagValueProcessor(d,w),w=aq(w,e)),a&&(o+=r),o+=w,a=!1,s.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let w=l[u][0][e.textNodeName],S=dR(w);o+=`<![CDATA[${S}]]>`,a=!1,s.pop();continue}else if(d===e.commentPropName){let w=l[u][0][e.textNodeName],S=hR(w);o+=r+`<!--${S}-->`,a=!0,s.pop();continue}else if(d[0]==="?"){let w=Ade(l[":@"],e,p,s,n);o+=(d==="?xml"?"":r)+`<${d}${w}?>`,a=!0,s.pop();continue}let m=r;m!==""&&(m+=e.indentBy);let E=Ade(l[":@"],e,p,s,n),y=r+`<${d}${E}`,C;p?C=yde(l[u],e):C=gde(l[u],e,m,s,i,n),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=y+">":o+=y+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=y+"/>":C&&C.endsWith(">")?o+=y+`>${C}${r}</${d}>`:(o+=y+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,s.pop()}return o}function tXe(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let n=i.startsWith(e.attributeNamePrefix)?i.substr(e.attributeNamePrefix.length):i;r[n]=id(t[i]),s=!0}return s?r:null}function yde(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let i=t[s],n=lq(i);if(n===e.textNodeName)r+=i[n];else if(n===e.cdataPropName)r+=i[n][0][e.textNodeName];else if(n===e.commentPropName)r+=i[n][0][e.textNodeName];else{if(n&&n[0]==="?")continue;if(n){let o=rXe(i[":@"],e),a=yde(i[n],e);!a||a.length===0?r+=`<${n}${o}/>`:r+=`<${n}${o}>${a}</${n}>`}}}return r}function rXe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s];i===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${id(i)}"`}return r}function lq(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 Ade(t,e,r,s,i){let n="";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:mde(a,!0,e,s,i),l;r?l=t[o]:(l=e.attributeValueProcessor(o,t[o]),l=aq(l,e)),l===!0&&e.suppressBooleanAttributes?n+=` ${c}`:n+=` ${c}="${id(l)}"`}return n}function sXe(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 aq(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 uq(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 iXe={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 un(t){if(this.options=Object.assign({},iXe,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 Kn(r)):r instanceof Kn&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,"utf-8")],n=ITe(s);n&&t.headers.set("Content-Length",n),t.body=await o9(s)}o(BTe,"buildRequestBody");var Gh="multipartPolicy",bTe=70,wTe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function STe(t){if(t.length>bTe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!wTe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(STe,"assertValidBoundary");function QI(){return{name:Gh,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,a]=n;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?STe(r):r=ETe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await BTe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(QI,"multipartPolicy");function RI(){return XC()}o(RI,"createEmptyPipeline");var a9=WC({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Tit=a9.logger;function Hi(t){return a9.createClientLogger(t)}o(Hi,"createClientLogger");var Vi=Hi("core-rest-pipeline");function oP(t={}){return nI({logger:Vi.info,...t})}o(oP,"logPolicy");var aP=iI;function cP(t={}){return oI(t)}o(cP,"redirectPolicy");var TI=w(require("node:os"),1),vI=w(require("node:process"),1);function c9(){return"User-Agent"}o(c9,"getHeaderName");async function l9(t){if(vI.default&&vI.default.versions){let e=`${TI.default.type()} ${TI.default.release()}; ${TI.default.arch()}`,r=vI.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}o(l9,"setPlatformSpecificData");var PI="1.22.2";function _Te(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}o(_Te,"getUserAgentString");function u9(){return c9()}o(u9,"getUserAgentHeaderName");async function _I(t){let e=new Map;e.set("core-rest-pipeline",PI),await l9(e);let r=_Te(e);return t?`${t} ${r}`:r}o(_I,"getUserAgentValue");var d9=u9(),A9="userAgentPolicy";function lP(t={}){let e=_I(t.userAgentPrefix);return{name:A9,async sendRequest(r,s){return r.headers.has(d9)||r.headers.set(d9,await e),s(r)}}}o(lP,"userAgentPolicy");var Vs=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function uP(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,a)=>{function c(){a(new Vs(n??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){s?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),s?.aborted)return c();try{t(d=>{l(),i(d)},d=>{l(),a(d)})}catch(d){a(d)}s?.addEventListener("abort",u)})}o(uP,"createAbortablePromise");var LTe="The delay was aborted.";function Hh(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return uP(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:n??LTe})}o(Hh,"delay");function mc(t){if(Ml(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}`}}o(mc,"getErrorMessage");function p9(t){return Ml(t)}o(p9,"isError");function uA(){return Ol()}o(uA,"randomUUID");var ke=Ul;var f9=Symbol("rawContent");function AP(t){return typeof t[f9]=="function"}o(AP,"hasRawContent");function h9(t){return AP(t)?t[f9]():t}o(h9,"getRawContent");var kI=Gh;function pP(){let t=QI();return{name:kI,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)AP(s.body)&&(s.body=h9(s.body));return t.sendRequest(e,r)},"sendRequest")}}o(pP,"multipartPolicy");var fP=aI;function hP(){return cI()}o(hP,"decompressResponsePolicy");function mP(t={}){return dI(t)}o(mP,"defaultRetryPolicy");function gP(){return AI()}o(gP,"formDataPolicy");function gc(t){return tP(t)}o(gc,"getDefaultProxySettings");function EP(t,e){return bI(t,e)}o(EP,"proxyPolicy");var m9="setClientRequestIdPolicy";function yP(t="x-ms-client-request-id"){return{name:m9,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(yP,"setClientRequestIdPolicy");function CP(t){return wI(t)}o(CP,"agentPolicy");function IP(t){return SI(t)}o(IP,"tlsPolicy");var dA={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function g9(t={}){let e=new BP(t.parentContext);return t.span&&(e=e.setValue(dA.span,t.span)),t.namespace&&(e=e.setValue(dA.namespace,t.namespace)),e}o(g9,"createTracingContext");var BP=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._context Line truncated
`&&t[i]!=="\r";i++)l+=t[i];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),i--),!cPe(l)){let A;return l.trim().length===0?A="Invalid space after '<'.":A="Tag '"+l+"' is an invalid name.",Pt("InvalidTag",A,Hr(t,i))}let u=sPe(t,i);if(u===!1)return Pt("InvalidAttr","Attributes for '"+l+"' have open quote.",Hr(t,i));let d=u.value;if(i=u.index,d[d.length-1]==="/"){let A=i-d.length;d=d.substring(0,d.length-1);let p=eK(d,e);if(p===!0)s=!0;else return Pt(p.err.code,p.err.msg,Hr(t,A+p.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Pt("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Hr(t,a));if(r.length===0)return Pt("InvalidTag","Closing tag '"+l+"' has not been opened.",Hr(t,a));{let A=r.pop();if(l!==A.tagName){let p=Hr(t,A.tagStartPos);return Pt("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",Hr(t,a))}r.length==0&&(n=!0)}}else return Pt("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Hr(t,i));else{let A=eK(d,e);if(A!==!0)return Pt(A.err.code,A.err.msg,Hr(t,i-d.length+A.err.line));if(n===!0)return Pt("InvalidXml","Multiple possible root nodes found.",Hr(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Z9(t,i);continue}else if(t[i+1]==="?"){if(i=X9(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=oPe(t,i);if(A==-1)return Pt("InvalidChar","char '&' is not expected.",Hr(t,i));i=A}else if(n===!0&&!K9(t[i]))return Pt("InvalidXml","Extra text at the end",Hr(t,i));t[i]==="<"&&i--}}else{if(K9(t[i]))continue;return Pt("InvalidChar","char '"+t[i]+"' is not expected.",Hr(t,i))}if(s){if(r.length==1)return Pt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Hr(t,r[0].tagStartPos));if(r.length>0)return Pt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Pt("InvalidXml","Start tag expected.",1);return!0}o(YI,"validate");function K9(t){return t===" "||t===" "||t===`
`||t==="\r"}o(K9,"isWhiteSpace");function X9(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 Pt("InvalidXml","XML declaration allowed only at the start of the document.",Hr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(X9,"readPI");function Z9(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}o(Z9,"readCommentAndCDATA");var tPe='"',rPe="'";function sPe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===tPe||t[e]===rPe)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}}o(sPe,"readAttributeStr");var nPe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function eK(t,e){let r=zI(t,nPe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Pt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",tm(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Pt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",tm(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Pt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",tm(r[n]));let i=r[n][2];if(!aPe(i))return Pt("InvalidAttr","Attribute '"+i+"' is an invalid name.",tm(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return Pt("InvalidAttr","Attribute '"+i+"' is repeated.",tm(r[n]))}return!0}o(eK,"validateAttributeString");function iPe(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}o(iPe,"validateNumberAmpersand");function oPe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,iPe(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}o(oPe,"validateAmpersand");function Pt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Pt,"getErrorObject");function aPe(t){return UP(t)}o(aPe,"validateAttrName");function cPe(t){return UP(t)}o(cPe,"validateTagName");function Hr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(Hr,"getLineNumberForPosition");function tm(t){return t.startIndex+t[1].length}o(tm,"getPositionFromMatch");var tK={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},rK={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"},sK={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",HstLine truncated
`);let e=new ls("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new nm(n.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let d=mA(t,">",c,"Closing Tag is not closed."),A=t.substring(c+2,d).trim();if(n.removeNSPrefix){let f=A.indexOf(":");f!==-1&&(A=A.substr(f+1))}A=$P(n.transformTagName,A,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(A&&n.unpairedTagsSet.has(A))throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);p&&n.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",c=d}else if(u===63){let d=WP(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let A=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(A){let p=A[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(p)||1),i.setXmlVersion(Number(p)||1)}if(!(n.ignoreDeclaration&&d.tagName==="?xml"||n.ignorePiTags)){let p=new ls(d.tagName);p.add(n.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&n.ignoreAttributes!==!0&&(p[":@"]=A),this.addChild(r,p,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=mA(t,"-->",c+4,"Comment is not closed.");if(n.commentPropName){let A=t.substring(c+4,d-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:A}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=i.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=mA(t,"]]>",c,"CDATA is not closed.")-2,A=t.substring(c+9,d);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let p=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:A}]):r.add(n.textNodeName,p),c=d+2}else{let d=WP(t,c,n.removeNSPrefix);if(!d){let Q=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${Q}"`)}let A=d.tagName,p=d.rawTagName,f=d.tagExp,m=d.attrExpPresent,g=d.closeIndex;if({tagName:A,tagExp:f}=$P(n.transformTagName,A,f,n),n.strictReservedNames&&(A===n.commentPropName||A===n.cdataPropName||A===n.textNodeName||A===n.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let y=r;y&&n.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(E=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),f=A):f=f.substr(0,f.length-1),m=A!==f);let C=null,I={},B;B=vPe(p),A!==e.tagname&&this.matcher.push(A,{},B),A!==f&&m&&(C=this.buildAttributesMap(f,this.matcher,A),C&&(I=TPe(C,n))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let Q="";if(E)c=d.closeIndex;else if(n.unpairedTagsSet.has(A))c=d.closeIndex;else{let le=this.readStopNodeData(t,p,g+1);if(!le)throw new Error(`Unexpected end of ${p}`);c=le.i,Q=le.tagContent}let D=new ls(A);C&&(D[":@"]=C),D.add(n.textNodeName,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,D,this.readonlyMatcher,N)}else{if(E){({tagName:A,tagExp:f}=$P(n.transformTagName,A,f,n));let Q=new ls(A);C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(A)){let Q=new ls(A);C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let Q=new ls(A);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),r=Q}s="",c=g}}}else s+=t[c];return e.child},"parseXml");function MPe(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))}o(MPe,"addChild");function LPe(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)}o(LPe,"replaceEntitiesValue");function FPe(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}o(FPe,"saveTextToParentTag");function UPe(){return this.stopNodeExpressionsLine truncated
`;function WPe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(t_(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}o(WPe,"detectXmlVersionFromArray");function bK(t,e,r,s,n){return!r.sanitizeName||zl(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(bK,"resolveTagName");function e_(t,e){let r="";e.format&&(r=$Pe);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?s.push(new Ys(c)):c instanceof Ys&&s.push(c)}let n=WPe(t,e),i=new Yi;return wK(t,e,r,i,s,n)}o(e_,"toXml");function wK(t,e,r,s,n,i){let a="",c=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=ZP(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=t_(u);if(d===void 0)continue;let p=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName||d[0]==="?"?d:bK(d,!1,e,s,i),f=jPe(u[":@"],e);s.push(p,f);let m=XPe(s,n);if(p===e.textNodeName){let I=u[d];m||(I=e.tagValueProcessor(p,I),I=ZP(I,e)),c&&(a+=r),a+=I,c=!1,s.pop();continue}else if(p===e.cdataPropName){c&&(a+=r);let I=u[d][0][e.textNodeName],B=XI(I);a+=`<![CDATA[${B}]]>`,c=!1,s.pop();continue}else if(p===e.commentPropName){let I=u[d][0][e.textNodeName],B=KI(I);a+=r+`<!--${B}-->`,c=!0,s.pop();continue}else if(p[0]==="?"){let I=BK(u[":@"],e,m,s,i);a+=(p==="?xml"?"":r)+`<${p}${I}?>`,c=!0,s.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let y=BK(u[":@"],e,m,s,i),E=r+`<${p}${y}`,C;m?C=SK(u[d],e):C=wK(u[d],e,g,s,n,i),e.unpairedTags.indexOf(p)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!C||C.length===0)&&e.suppressEmptyNode?a+=E+"/>":C&&C.endsWith(">")?a+=E+`>${C}${r}</${p}>`:(a+=E+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?a+=r+e.indentBy+C+r:a+=C,a+=`</${p}>`),c=!0,s.pop()}return a}o(wK,"arrToStr");function jPe(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]=Cc(t[n]),s=!0}return s?r:null}o(jPe,"extractAttributeValues");function SK(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=t_(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 a=KPe(n[":@"],e),c=SK(n[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(SK,"getRawContent");function KPe(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)}="${Cc(n)}"`}return r}o(KPe,"attr_to_str_raw");function t_(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}}o(t_,"propName");function BK(t,e,r,s,n){let i="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:bK(c,!0,e,s,n),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=ZP(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${Cc(u)}"`}return i}o(BK,"attr_to_str");function XPe(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}o(XPe,"checkStopNode");function ZP(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}o(ZP,"replaceEntitiesValue");function r_(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}o(r_,"getIgnoreAttributesFn");var ZPe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function ds(t){if(this.options=Object.assign({},ZPe,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.oLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function nXe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let i=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(i)return i}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}function hq(t,e,r,s,i){return!r.sanitizeName||Xf(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}un.prototype.build=function(t){if(this.options.preserveOrder)return cq(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new vc,r=nXe(t,this.options);return this.j2x(t,0,e,r).val}};un.prototype.j2x=function(t,e,r,s){let i="",n="";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:hq(c,!1,this.options,r,s);if(typeof t[c]>"u")this.isAttribute(c)&&(n+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?n+="":u[0]==="?"?n+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)n+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let h=this.isAttribute(c);if(h&&!this.ignoreAttributesFn(h,o)){let d=hq(h,!0,this.options,r,s);i+=this.buildAttrPairStr(d,""+t[c],a)}else if(!h)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);n+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let f=""+t[c];f===""?n+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:n+=this.indentate(e)+"<"+u+">"+f+"</"+u+this.tagEndChar}else n+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let h=t[c].length,d="",f="";for(let p=0;p<h;p++){let m=t[c][p];if(!(typeof m>"u"))if(m===null)u[0]==="?"?n+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof m=="object")if(this.options.oneListGroup){r.push(u);let E=this.j2x(m,e+1,r,s);r.pop(),d+=E.val,this.options.attributesGroupName&&m.hasOwnProperty(this.options.attributesGroupName)&&(f+=E.attrStr)}else d+=this.processTextOrObjNode(m,u,e,r,s);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,m);E=this.replaceEntitiesValue(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let y=""+m;y===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+y+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(m,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,f,e)),n+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let h=Object.keys(t[c]),d=h.length;for(let f=0;f<d;f++){let p=hq(h[f],!0,this.options,r,s);i+=this.buildAttrPairStr(p,""+t[c][h[f]],a)}}else n+=this.processTextOrObjNode(t[c],u,e,r,s)}return{attrStr:i,val:n}};un.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+'="'+id(e)+'"'};function oXe(t,e,r,s,i){let n=this.extractAttributes(t);if(s.push(e,n),this.checkStopNode(s)){let c=this.buildRawContent(t),l=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(c,e,l,r)}let a=this.j2x(t,r+1,s,i);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)}un.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 i in s){if(!Object.prototype.hasOwnProperty.call(s,i))continue;let n=i.startsWith(this.options.attributeNamePrefix)?i.substring(this.options.attributeNamePrefix.length):i;e[n]=id(s[i]),r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=this.isAttribute(s);i&&(e[i]=id(t[s]),r=!0)}return r?e:null};un.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.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(ds,"Builder");function e_e(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"}o(e_e,"detectXmlVersionFromObj");function s_(t,e,r,s,n){return!r.sanitizeName||zl(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(s_,"resolveTagName");ds.prototype.build=function(t){if(this.options.preserveOrder)return e_(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Yi,r=e_e(t,this.options);return this.j2x(t,0,e,r).val}};ds.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 a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let d=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:s_(l,!1,this.options,r,s);if(typeof t[l]>"u")this.isAttribute(l)&&(i+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?i+="":d[0]==="?"?i+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)i+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let A=this.isAttribute(l);if(A&&!this.ignoreAttributesFn(A,a)){let p=s_(A,!0,this.options,r,s);n+=this.buildAttrPairStr(p,""+t[l],c)}else if(!A)if(l===this.options.textNodeName){let p=this.options.tagValueProcessor(l,""+t[l]);i+=this.replaceEntitiesValue(p)}else{r.push(d);let p=this.checkStopNode(r);if(r.pop(),p){let f=""+t[l];f===""?i+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:i+=this.indentate(e)+"<"+d+">"+f+"</"+d+this.tagEndChar}else i+=this.buildTextValNode(t[l],d,"",e,r)}}else if(Array.isArray(t[l])){let A=t[l].length,p="",f="";for(let m=0;m<A;m++){let g=t[l][m];if(!(typeof g>"u"))if(g===null)d[0]==="?"?i+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(d);let y=this.j2x(g,e+1,r,s);r.pop(),p+=y.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(f+=y.attrStr)}else p+=this.processTextOrObjNode(g,d,e,r,s);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(d,g);y=this.replaceEntitiesValue(y),p+=y}else{r.push(d);let y=this.checkStopNode(r);if(r.pop(),y){let E=""+g;E===""?p+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:p+=this.indentate(e)+"<"+d+">"+E+"</"+d+this.tagEndChar}else p+=this.buildTextValNode(g,d,"",e,r)}}this.options.oneListGroup&&(p=this.buildObjectNode(p,d,f,e)),i+=p}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let A=Object.keys(t[l]),p=A.length;for(let f=0;f<p;f++){let m=s_(A[f],!0,this.options,r,s);n+=this.buildAttrPairStr(m,""+t[l][A[f]],c)}}else i+=this.processTextOrObjNode(t[l],d,e,r,s)}return{attrStr:n,val:i}};ds.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+'="'+Cc(e)+'"'};function t_e(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,s,n);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,s):this.buildObjectNode(c.val,e,c.attrStr,r)}o(t_e,"processTextOrObjNode");ds.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]=Cc(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]=Cc(t[s]),r=!0)}return r?e:null};ds.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.o Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(Fe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===Fe.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(i=>i.name.toLowerCase().startsWith(Fe.PREFIX_FOR_STORAGE));r.sort((i,n)=>wR(i.name.toLowerCase(),n.name.toLowerCase())),r=r.filter((i,n,o)=>!(n>0&&i.name.toLowerCase()===o[n-1].name.toLowerCase()));let s="";return r.forEach(i=>{s+=`${i.name.toLowerCase().trimRight()}:${i.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=CR(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let i=IR(e.url),n={};if(i){let o=[];for(let a in i)if(Object.prototype.hasOwnProperty.call(i,a)){let c=a.toLowerCase();n[c]=i[a],o.push(c)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(n[a])}`}return s}};var gr=class extends tp{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new t0(e,r,this)}computeHMACSHA256(e){return(0,xde.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var rs=Sc("storage-common");var Uo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Uo||(Uo={}));var od={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Uo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},AXe=new Jn("The operation was aborted."),r0=class extends Tc{retryOptions;constructor(e,r,s=od){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:od.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):od.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:od.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:od.maxRetryDelayInMs):od.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:od.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:od.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let i=e.clone(),n=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;n||(i.url=ER(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=nd(i.url,du.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(rs.info(`RetryPolicy: =====> Try=${s} ${n?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(i),!this.shouldRetry(n,s,o))return o;r=r||!n&&o.status===404}catch(a){if(rs.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(n,s,o,a))throw a}return await this.delay(n,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,i){if(r>=this.retryOptions.maxTries)return rs.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(i){for(let o of n)if(i.name.toUpperCase().includes(o)||i.message.toUpperCase().includes(o)||i.code&&i.code.toString().toUpperCase()===o)return rs.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||i){let o=s?s.status:i?i.statusCode:0;if(!e&&o===404)return rs.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return rs.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(Fe.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return i?.code==="PARSE_ERROR"&&i?.message.startsWith('Error "Error: Unclosed root tag')?(rs.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let i=0;if(e)switch(this.retryOptions.retryPolicyType){case Uo.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Uo.FIXED:i=this.retryOptions.retryDelayInMs;break}else i=Math.random()*1e3;return rs.info(`RetryPolicy: Delay for ${i}ms`),bR(i,s,AXe)}};var s0=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new r0(e,r,this.retryOptions)}};var mXe="storageBrowserPolicy";function Nde(){return{name:mXe,async sendRequest(t,e){return wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=nd(t.url,du.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Fe.COOKIE),t.headers.delete(Fe.CONTENT_LENGTH)),e(t)}}}var gXe="StorageCorrectContentLengthPolicy";function Rde(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Fe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:gXe,async sendRequest(e,r){return t(e),r(e)}}}var yXe="storageRetryPolicy",ag={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Uo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},EXe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],CXe=new Jn("The operation was aborted.");function vde(t={}){let e=t.retryPolicyType??ag.retryPolicyType,r=t.maxTries??ag.maxTries,s=t.retryDelayInMs??ag.retryDelayInMs,i=t.maxRetryDelayInMs??ag.maxRetryDelayInMs,n=t.secondaryHost??ag.secondaryHost,o=t.tryTimeoutInMs??ag.tryTimeoutInMs;function a({isPrimaryRetry:l,attempt:u,response:h,error:d}){if(u>=r)return rs.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let f of EXe)if(d.name.toUpperCase().includes(f)||d.message.toUpperCase().includes(f)||d.code&&d.code.toString().toUpperCase()===f)return Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(oe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===oe.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(oe.PREFIX_FOR_STORAGE));r.sort((n,i)=>lB(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,a)=>!(i>0&&n.name.toLowerCase()===a[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=oB(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=aB(e.url),i={};if(n){let a=[];for(let c in n)if(Object.prototype.hasOwnProperty.call(n,c)){let l=c.toLowerCase();i[l]=n[c],a.push(l)}a.sort();for(let c of a)s+=`
${c}:${decodeURIComponent(i[c])}`}return s}};var Ct=class extends $l{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new lm(e,r,this)}computeHMACSHA256(e){return(0,_K.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Wt=Hi("storage-common");var Bn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Bn||(Bn={}));var Bc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Bn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},u_e=new Vs("The operation was aborted."),um=class extends $i{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,s=Bc){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Bc.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Bc.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Bc.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Bc.maxRetryDelayInMs):Bc.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Bc.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Bc.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=iB(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Ic(n.url,da.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Wt.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,a))return a;r=r||!i&&a.status===404}catch(c){if(Wt.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,s,a,c))throw c}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return Wt.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 a of i)if(n.name.toUpperCase().includes(a)||n.message.toUpperCase().includes(a)||n.code&&n.code.toString().toUpperCase()===a)return Wt.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(s||n){let a=s?s.status:n?n.statusCode:0;if(!e&&a===404)return Wt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Wt.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(s&&s?.status>=400){let a=s.headers.get(oe.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(Wt.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 Bn.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Bn.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return Wt.info(`RetryPolicy: Delay for ${n}ms`),cB(n,s,u_e)}};var dm=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new um(e,r,this.retryOptions)}};var d_e="storageBrowserPolicy";function kK(){return{name:d_e,async sendRequest(t,e){return ke||((t.method==="GET"||t.method==="HEAD")&&(t.url=Ic(t.url,da.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(oe.COOKIE),t.headers.delete(oe.CONTENT_LENGTH)),e(t)}}}o(kK,"storageBrowserPolicy");var A_e="StorageCorrectContentLengthPolicy";function DK(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(oe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:A_e,async sendRequest(e,r){return t(e),r(e)}}}o(DK,"storageCorrectContentLengthPolicy");var p_e="storageRetryPolicy",EA={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Bn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},f_e=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],h_e=new Vs("The operation was aborted.");function OK(t={}){let e=t.retryPolicyType??EA.retryPolicyType,r=t.maxTries??EA.maxTries,s=t.retryDelayInMs??EA.retryDelayInMs,n=t.maxRetryDelayInMs??EA.maxRetryDelayInMs,i=t.secondaryHost??EA.secondaryHost,a=t.tryTimeoutInMs??EA.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:A,error:p}){if(d>=r)return Wt.inf Line truncated
`)+`
`+s(n)+i(n),a=(0,Tde.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");n.headers.set(Fe.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(n,o){let a=n.headers.get(o);return!a||o===Fe.CONTENT_LENGTH&&a==="0"?"":a}function s(n){let o=[];for(let[c,l]of n.headers)c.toLowerCase().startsWith(Fe.PREFIX_FOR_STORAGE)&&o.push({name:c,value:l});o.sort((c,l)=>wR(c.name.toLowerCase(),l.name.toLowerCase())),o=o.filter((c,l,u)=>!(l>0&&c.name.toLowerCase()===u[l-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function i(n){let o=CR(n.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=IR(n.url),l={};if(c){let u=[];for(let h in c)if(Object.prototype.hasOwnProperty.call(c,h)){let d=h.toLowerCase();l[d]=c[h],u.push(d)}u.sort();for(let h of u)a+=`
${h}:${decodeURIComponent(l[h])}`}return a}return{name:IXe,async sendRequest(n,o){return e(n),o(n)}}}var bXe="storageRequestFailureDetailsParserPolicy";function _de(){return{name:bXe,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 Qde=require("node:crypto"),BR=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,Qde.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var SR="12.31.0",xR="2026-02-06";var NR="https://storage.azure.com/.default",fu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Da="",gq="*",wXe=1*1024*1024;var BXe=4*wXe;var Pde="AES256",Ode="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Dde=["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"],kde=["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"],Mde="BlobUsesCustomerSpecifiedEncryption",Lde="BlobDoesNotUseCustomerSpecifiedEncryption",Ude=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function pu(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 i0=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Or(t,e={}){t||(t=new ir);let r=new i0([],e);return r._credential=t,r}function SXe(t){let e=[xXe,Fde,NXe,RXe,vXe,TXe,QXe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(i=>i(s)));if(r.length){let s=r.some(i=>_Xe(i));return{wrappedPolicies:$F(r),afterRetry:s}}}}function yq(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?jF(e):Aq(),t._coreHttpClient=s);let i=t._corePipeline;if(!i){let n=`azsdk-js-azure-storage-blob/${SR}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${n}`:`${n}`;i=FI({...r,loggingOptions:{additionalAllowedHeaderNames:Dde,additionalAllowedQueryParameters:kde,logger:pR.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:fR,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:fq,serializerOptions:{xml:{xmlCharKey:"#"}}}}),i.removePolicy({phase:"Retry"}),i.removePolicy({name:bF}),i.addPolicy(Rde()),i.addPolicy(vde(r.retryOptions),{phase:"Retry"}),i.addPolicy(_de()),i.addPolicy(Nde());let a=SXe(t);a&&i.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=Eq(t);Yn(c)?i.addPolicy(tg({credential:c,scopes:r.audience??NR Line truncated
`),n=e.computeHMACSHA256(i);return{sasQueryParameters:new Fa(t.version,n,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 x7e(t,e){if(t=up(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 i;t.permissions&&(t.blobName?i=jc.parse(t.permissions.toString()).toString():i=Jc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",lp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ua(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(n);return{sasQueryParameters:new Fa(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}function N7e(t,e){if(t=up(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 i;t.permissions&&(t.blobName?i=jc.parse(t.permissions.toString()).toString():i=Jc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",lp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ua(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(n);return{sasQueryParameters:new Fa(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:n}}function R7e(t,e){if(t=up(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 i;t.permissions&&(t.blobName?i=jc.parse(t.permissions.toString()).toString():i=Jc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",lp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ua(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new Fa(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:n}}function v7e(t,e){if(t=up(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 i;t.permissions&&(t.blobName?i=jc.parse(t.permissions.toString()).toString():i=Jc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",lp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ua(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new Fa(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:n}}function T7e(t,e){if(t=up(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 i;t.permissions&&(t.blobName?i=jc.parse(t.permissions.toString()).toString():i=Jc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",lp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ua(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(n);return{sasQueryParameters:new Fa(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:n}}function _7e(t,e){if(t=up(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 i;t.permissions&&(t.blobName?i=jc.parse(t.permissions.toString()).toString():i=Jc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",lp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ua(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(n);return{sasQueryParameters:new Fa(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:n}}function lp(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function up(t){let e=t.version?t.version:xR;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var m0=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=Zm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Da||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Da||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-acquireLease",r,async s=>Ne(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Da||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Da||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-changeLease",r,async s=>{let i=Ne(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,i})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Da||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Da||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ne(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Da||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Da||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return 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"}};Eg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var pp=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"}};pp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var x0=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Tet=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},n8=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,i=(e/(1024*1024)/(s/1e3)).toFixed(1);jr(`Sent ${e} of ${this.contentLength} (${r}%), ${i} 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 Hpe(t,e,r){return Tet(this,void 0,void 0,function*(){var s;let i=new Iu(t),n=i.getBlockBlobClient(),o=new n8((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(),se(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let c=yield n.uploadFile(e,a);if(c._response.status>=400)throw new _v(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw _a(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var Vpe=O(require("buffer"),1),Yc=O(require("fs"),1),$pe=O(require("stream"),1),jpe=O(require("util"),1);var Qv=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function Pv(t){return t?t>=200&&t<300:!1}function _et(t){return t?t>=500:!0}function Qet(t){return t?[mr.BadGateway,mr.ServiceUnavailable,mr.GatewayTimeout].includes(t):!1}function Pet(t){return Qv(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function zpe(t,e,r){return Qv(this,arguments,void 0,function*(s,i,n,o=iN,a=nN,c=void 0){let l="",u=1;for(;u<=o;){let h,d,f=!1;try{h=yield i()}catch(p){c&&(h=c(p)),f=!0,l=p.message}if(h&&(d=n(h),!_et(d)))return h;if(d&&(f=Qet(d),l=`Cache service responded with ${d}`),se(`${s} - Attempt ${u} of ${o} failed with error: ${l}`),!f){se(`${s} - Error is not retryable`);break}yield Pet(a),u++}throw Error(`${s} failed: ${l}`)})}function N0(t,e){return Qv(this,arguments,void 0,function*(r,s,i=iN,n=nN){return yield zpe(r,s,o=>o.statusCode,i,n,o=>{if(o instanceof Ic)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Cg(t,e){return Qv(this,arguments,void 0,function*(r,s,i=iN,n=nN){return yield zpe(r,s,o=>o.message.statusCode,i,n)})}var zo=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function Oet(t,e){return zo(this,void 0,void 0,function*(){yield jpe.promisify($pe.pipeline)(t.message,e)})}var Ov=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,se(`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,i=(e/(1024*1024)/(s/1e3)).toFixed(1);jr(`Received ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTi Line truncated
Other caches with similar key:`);for(let a of n?.artifactCaches||[])se(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function l8(t,e,r){return dn(this,void 0,void 0,function*(){let s=new sAe.URL(t),i=Kpe(r);s.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield Ype(t,e,i):i.concurrentBlobDownloads?yield Jpe(t,e,i):yield Dv(t,e):yield Dv(t,e)})}function nAe(t,e,r){return dn(this,void 0,void 0,function*(){let s=c8(),i=zm(e,r?.compressionMethod,r?.enableCrossOsArchive),n={key:t,version:i,cacheSize:r?.cacheSize};return yield N0("reserveCache",()=>dn(this,void 0,void 0,function*(){return s.postJson(v0("caches"),n)}))})}function rAe(t,e){return`bytes ${t}-${e}/*`}function Get(t,e,r,s,i){return dn(this,void 0,void 0,function*(){se(`Uploading chunk of size ${i-s+1} bytes at offset ${s} with content range: ${rAe(s,i)}`);let n={"Content-Type":"application/octet-stream","Content-Range":rAe(s,i)},o=yield Cg(`uploadChunk (start: ${s}, end: ${i})`,()=>dn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),n)}));if(!Pv(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Het(t,e,r,s){return dn(this,void 0,void 0,function*(){let i=Cc(r),n=v0(`caches/${e.toString()}`),o=Ig.openSync(r,"r"),a=o8(s),c=OU("uploadConcurrency",a.uploadConcurrency),l=OU("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];se("Awaiting all uploads");let h=0;try{yield Promise.all(u.map(()=>dn(this,void 0,void 0,function*(){for(;h<i;){let d=Math.min(i-h,l),f=h,p=h+d-1;h+=l,yield Get(t,n,()=>Ig.createReadStream(r,{fd:o,start:f,end:p,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),f,p)}})))}finally{Ig.closeSync(o)}})}function zet(t,e,r){return dn(this,void 0,void 0,function*(){let s={size:r};return yield N0("commitCache",()=>dn(this,void 0,void 0,function*(){return t.postJson(v0(`caches/${e.toString()}`),s)}))})}function u8(t,e,r,s){return dn(this,void 0,void 0,function*(){if(o8(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Hpe(r,e,s)}else{let n=c8();se("Upload cache"),yield Het(n,t,e,s),se("Commiting cache");let o=Cc(e);jr(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield zet(n,t,o);if(!Pv(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);jr("Cache saved successfully")}})}var ZAe=O($Ae(),1),Mr=O(kr(),1),eo=O(kr(),1),Ep=O(kr(),1),Cp=O(kr(),1),Ip=O(kr(),1);var iz=O(kr(),1),nz=O(kr(),1),WAe=O(kr(),1),KAe=O(kr(),1),XAe=O(kr(),1);var tz=O(kr(),1),rz=O(kr(),1),jAe=O(kr(),1),JAe=O(kr(),1),YAe=O(kr(),1),sz=class extends YAe.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,JAe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,jAe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,i){let n=i??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:n.scope=e.string();break;case 2:n.permission=e.int64().toString();break;default:let l=s.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);l!==!1&&(l===!0?rz.UnknownFieldHandler.onRead:l)(this.typeName,n,a,c,u)}}return n}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,tz.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,tz.WireType.Varint).int64(e.permission);let i=s.writeUnknownFields;return i!==!1&&(i==!0?rz.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},bT=new sz;var oz=class extends XAe.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:()=>bT}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,KAe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,WAe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,i){let n=i??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:n.repositoryId=e.int64().toString();break;case 2:n.scope.push(bT.internalBinaryRead(e,e.uint32(),s));break;default:let l=s.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);l!==!1&&(l===!0?nz.UnknownFieldHandler.onRead:l)(this.typeName,n,a,c,u)}}return n}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,iz.WireType.Varint).int64(e.repositoryId);for(let n=0;n<e.scope.length;n++)bT.internalBinaryWrite(e.scope[n],r.tag(2,iz.WireType.LengthDelimited).fork(),s).join();let i=s.writeUnknownFields;return i!==!1&&(i==!0?nz.UnknownFieldHandler.onWrite:i)(th Line truncated
`));let s=yield Iz(r,"create");yield bz(s,t)})}var Lg=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Ha=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Mg=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},xT=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function sme(t){if(!t||t.length===0)throw new Ha("Path Validation Error: At least one directory or file path is required")}function Sz(t){if(t.length>512)throw new Ha(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ha(`Key Validation Error: ${t} cannot contain commas.`)}function xz(){return R0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function ime(t,e,r,s){return Lg(this,arguments,void 0,function*(i,n,o,a,c=!1){let l=R0();return se(`Cache service version: ${l}`),sme(i),l==="v2"?yield nst(i,n,o,a,c):yield ist(i,n,o,a,c)})}function ist(t,e,r,s){return Lg(this,arguments,void 0,function*(i,n,o,a,c=!1){o=o||[];let l=[n,...o];if(se("Resolved Keys:"),se(JSON.stringify(l)),l.length>10)throw new Ha("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)Sz(d);let u=yield xI(),h="";try{let d=yield iAe(l,i,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return jr("Lookup only - skipping download"),d.cacheKey;h=V0.join(yield BI(),Kh(u)),se(`Archive Path: ${h}`),yield l8(d.archiveLocation,h,a),Df()&&(yield z0(h,u));let f=Cc(h);return jr(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield wz(h,u),jr("Cache restored successfully"),d.cacheKey}catch(d){let f=d;if(f.name===Ha.name)throw d;f instanceof Ic&&typeof f.statusCode=="number"&&f.statusCode>=500?lI(`Failed to restore: ${d.message}`):_a(`Failed to restore: ${d.message}`)}finally{try{yield SI(h)}catch(d){se(`Failed to delete archive: ${d}`)}}})}function nst(t,e,r,s){return Lg(this,arguments,void 0,function*(i,n,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let l=[n,...o];if(se("Resolved Keys:"),se(JSON.stringify(l)),l.length>10)throw new Ha("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of l)Sz(h);let u="";try{let h=Cz(),d=yield xI(),f={key:n,restoreKeys:o,version:zm(i,d,c)},p=yield h.GetCacheEntryDownloadURL(f);if(!p.ok){se(`Cache not found for version ${f.version} of keys: ${l.join(", ")}`);return}if(f.key!==p.matchedKey?jr(`Cache hit for restore-key: ${p.matchedKey}`):jr(`Cache hit for: ${p.matchedKey}`),a?.lookupOnly)return jr("Lookup only - skipping download"),p.matchedKey;u=V0.join(yield BI(),Kh(d)),se(`Archive path: ${u}`),se(`Starting download of archive to: ${u}`),yield l8(p.signedDownloadUrl,u,a);let E=Cc(u);return jr(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),Df()&&(yield z0(u,d)),yield wz(u,d),jr("Cache restored successfully"),p.matchedKey}catch(h){let d=h;if(d.name===Ha.name)throw h;d instanceof Ic&&typeof d.statusCode=="number"&&d.statusCode>=500?lI(`Failed to restore: ${h.message}`):_a(`Failed to restore: ${h.message}`)}finally{try{u&&(yield SI(u))}catch(h){se(`Failed to delete archive: ${h}`)}}})}function Nz(t,e,r){return Lg(this,arguments,void 0,function*(s,i,n,o=!1){let a=R0();return se(`Cache service version: ${a}`),sme(s),Sz(i),a==="v2"?yield ast(s,i,n,o):yield ost(s,i,n,o)})}function ost(t,e,r){return Lg(this,arguments,void 0,function*(s,i,n,o=!1){var a,c,l,u,h;let d=yield xI(),f=-1,p=yield PU(s);if(se("Cache Paths:"),se(`${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 m=yield BI(),E=V0.join(m,Kh(d));se(`Archive Path: ${E}`);try{yield Bz(m,p,d),Df()&&(yield z0(E,d));let y=10*1024*1024*1024,C=Cc(E);if(se(`File Size: ${C}`),C>y&&!a8())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);se("Reserving Cache");let w=yield nAe(i,s,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=w?.result)===null||a===void 0)&&a.cacheId)f=(c=w?.result)===null||c===void 0?void 0:c.cacheId;else throw w?.statusCode===400?new Error((u=(l=w?.error)===null||l===void 0?void 0:l.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new Mg(`Unable to reserve cache with key ${i}, another job may be creating this cache. More details: ${(h=w?.error)===null||h===void 0?void 0:h.message}`);se(`Saving Cache (ID: ${f})`),yield u8(f,E,"",n)}catch(y){let C=y;if(C.name===Ha.nam Line truncated
`,o).length:h,l?(a===null?0:a.length)+c.length:0,l?c.length+h:0);return d<f},parse:function(s,i,n,o){let{bom:a,comment_no_infix:c,encoding:l,from_line:u,ltrim:h,max_record_size:d,raw:f,relax_quotes:p,rtrim:m,skip_empty_lines:E,to:y,to_line:C}=this.options,{comment:w,escape:S,quote:N,record_delimiter:P}=this.options,{bomSkipped:Q,previousBuf:k,rawBuffer:G,escapeIsQuote:X}=this.state,L;if(k===void 0)if(s===void 0){o();return}else L=s;else k!==void 0&&s===void 0?L=k:L=Buffer.concat([k,s]);if(Q===!1)if(a===!1)this.state.bomSkipped=!0;else if(L.length<3){if(i===!1){this.state.previousBuf=L;return}}else{for(let V in Kg)if(Kg[V].compare(L,0,Kg[V].length)===0){let re=Kg[V].length;this.state.bufBytesStart+=re,L=L.slice(re);let _e=TV({...this.original_options,encoding:V});for(let we in _e)this.options[we]=_e[we];({comment:w,escape:S,quote:N}=this.options);break}this.state.bomSkipped=!0}let U=L.length,q;for(q=0;q<U&&!this.__needMoreData(q,U,i);q++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),C!==-1&&this.info.lines>C){this.state.stop=!0,o();return}this.state.quoting===!1&&P.length===0&&this.__autoDiscoverRecordDelimiter(L,q)&&(P=this.options.record_delimiter);let V=L[q];if(f===!0&&G.append(V),(V===xot||V===Not)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(S!==null&&this.state.quoting===!0&&this.__isEscape(L,q,V)&&q+S.length<U)if(X){if(this.__isQuote(L,q+S.length)){this.state.escaping=!0,q+=S.length-1;continue}}else{this.state.escaping=!0,q+=S.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(L,q))if(this.state.quoting===!0){let we=L[q+N.length],le=m&&this.__isCharTrimable(L,q+N.length),ct=w!==null&&this.__compareBytes(w,L,q+N.length,we),Ze=this.__isDelimiter(L,q+N.length,we),Et=P.length===0?this.__autoDiscoverRecordDelimiter(L,q+N.length):this.__isRecordDelimiter(we,L,q+N.length);if(S!==null&&this.__isEscape(L,q,V)&&this.__isQuote(L,q+S.length))q+=S.length-1;else if(!we||Ze||Et||ct||le){this.state.quoting=!1,this.state.wasQuoting=!0,q+=N.length-1;continue}else if(p===!1){let Pe=this.__error(new gt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(we)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Pe!==void 0)return Pe}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(N),q+=N.length-1}else if(this.state.field.length!==0){if(p===!1){let we=this.__infoField(),le=Object.keys(Kg).map(Ze=>Kg[Ze].equals(this.state.field.toString())?Ze:!1).filter(Boolean)[0],ct=this.__error(new gt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(we.column)} at line ${we.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,le?`(${le} bom)`:void 0],this.options,we,{field:this.state.field}));if(ct!==void 0)return ct}}else{this.state.quoting=!0,q+=N.length-1;continue}if(this.state.quoting===!1){let we=this.__isRecordDelimiter(V,L,q);if(we!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=u){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),q+=we-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,q+=we-1;continue}this.info.bytes=this.state.bufBytesStart+q;let Ze=this.__onField();if(Ze!==void 0)return Ze;this.info.bytes=this.state.bufBytesStart+q+we;let Et=this.__onRecord(n);if(Et!==void 0)return Et;if(y!==-1&&this.info.records>=y){this.state.stop=!0,o();return}}this.state.commenting=!1,q+=we-1;continue}if(this.state.commenting)continue;if(w!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(w,L,q,V)!==0){this.state.commenting=!0;continue}let le=this.__isDelimiter(L,q,V);if(le!==0){this.info.bytes=this.state.bufBytesStart+q;let ct=this.__onField();if(ct!==void 0)return ct;q+=le-1;continue}}}if(this.state.commenting===!1&&d!==0&&this.state.record_length+this.state.field.length>d)return this.__error(new gt("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${d}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let re=h===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(L,q),_e=m===!1||this.state.wasQuoting===!1;if(re===!0&&_e===!0)this.state.field.append(V);else{if(m===!0&&!this.__isCharTrimable(L,q))return this.__error(new gt("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));re===!1&&(q+=this.__isCharTrimable(L,q)-1);continue}}if(i===!0)if(this.state.quoting===!0) Line truncated
`,n),Buffer.from(`
`,n),Buffer.from("\r",n)];e:for(let a=0;a<o.length;a++){let c=o[a].length;for(let l=0;l<c;l++)if(o[a][l]!==s[i+l])continue e;return this.options.record_delimiter.push(o[a]),this.state.recordDelimiterMaxLength=o[a].length,o[a].length}return 0},__error:function(s){let{encoding:i,raw:n,skip_records_with_error:o}=this.options,a=typeof s=="string"?new Error(s):s;if(o){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(a,n?this.state.rawBuffer.toString(i):void 0)}catch(c){return c}return}else return a},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){let{columns:s,raw:i,encoding:n}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:s===!0,index:this.state.record.length,raw:i?this.state.rawBuffer.toString(n):void 0}},__infoField:function(){let{columns:s}=this.options,i=Array.isArray(s),n=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:n,column:i===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};var no=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],s=wye(e),i=a=>{s.options.objname===void 0?r.push(a):r[a[0]]=a[1]},n=()=>{},o=s.parse(t,!0,i,n);if(o!==void 0)throw o;return r};var Xt=class t{static getInputList(e,r){return this.getList(Qm(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let i=no(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let n of i)n.length==1?r?.ignoreComma?s.push(n[0]):s.push(...n[0].split(",")):r?.ignoreComma?s.push(n.join(",")):s.push(...n);return s.filter(n=>n).map(n=>r?.trimWhitespace===!1?n:n.trim())}static getInputNumber(e){let r=Qm(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let s=0;s<e.length;s++)await r(e[s],s,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let s=await Ls("powershell",!0),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=[];if(r)for(let o in r)n.push(`-${o} '${r[o].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${i}' ${n.join(" ")}`]}}static isDirectory(e){try{return Bye.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let s=e.lastIndexOf(r);return s===-1||s+r.length!==e.length?e:e.substring(0,s)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return _V.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,i)).toFixed(2))+" "+s[i]}static generateRandomString(e=10){return _V.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return Sye.default.compile(e,r)(s)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let s=ob.default.resolve(e);return ob.default.resolve(r).startsWith(s.endsWith(ob.default.sep)?s:`${s}${ob.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),s=Math.floor(r/3600),i=Math.floor(r%3600/60),n=r%60,o=[];return s&&o.push(`${s}h`),i&&o.push(`${i}m`),(n||o.length===0)&&o.push(`${n}s`),o.join("")}};var cs=class t{static get configDir(){return process.env.DOCKER_CONFIG||ab.default.join(xye.default.homedir(),".docker")}static configFile(){let e=ab.default.join(t.configDir,"config.json");if(QV.default.existsSync(e))return JSON.parse(QV.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Ls("docker",!0).then(e=>(z(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(z(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}static async exec(e,r){return ke.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return ke.getExecOutput("docker",e,t.execOptions(r))}static execOptions(e){return e||(e={}),e. Line truncated
`+s(i)+n(i),c=(0,MK.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(oe.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===oe.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function s(i){let a=[];for(let[l,u]of i.headers)l.toLowerCase().startsWith(oe.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>lB(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,d)=>!(u>0&&l.name.toLowerCase()===d[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
`}),c}o(s,"getCanonicalizedHeadersString");function n(i){let a=oB(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=aB(i.url),u={};if(l){let d=[];for(let A in l)if(Object.prototype.hasOwnProperty.call(l,A)){let p=A.toLowerCase();u[p]=l[A],d.push(p)}d.sort();for(let A of d)c+=`
${A}:${decodeURIComponent(u[A])}`}return c}return o(n,"getCanonicalizedResourceString"),{name:m_e,async sendRequest(i,a){return e(i),a(i)}}}o(c_,"storageSharedKeyCredentialPolicy");var g_e="storageRequestFailureDetailsParserPolicy";function LK(){return{name:g_e,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}}}}o(LK,"storageRequestFailureDetailsParserPolicy");var FK=require("node:crypto");var uB=class{static{o(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,FK.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var dB="12.31.0",AB="2026-02-06";var pB="https://storage.azure.com/.default",Aa={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var ii="",l_="*",E_e=1*1024*1024;var y_e=4*E_e;var UK="AES256",qK="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",GK=["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"],HK=["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"],VK="BlobUsesCustomerSpecifiedEncryption",zK="BlobDoesNotUseCustomerSpecifiedEncryption",JK=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function pa(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}o(pa,"isPipelineLike");var Am=class{static{o(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function _t(t,e={}){t||(t=new lt);let r=new Am([],e);return r._credential=t,r}o(_t,"newPipeline");function C_e(t){let e=[I_e,YK,B_e,b_e,w_e,S_e,x_e];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>N_e(n));return{wrappedPolicies:LP(r),afterRetry:s}}}}o(C_e,"processDownlevelPipeline");function u_(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?FP(e):a_(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${dB}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=$h({...r,loggingOptions:{additionalAllowedHeaderNames:GK,additionalAllowedQueryParameters:HK,logger:eB.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:ZI,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:i_,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:fP}),n.addPolicy(DK()),n.addPolicy(OK(r.retryOptions),{phase:"Retry"}),n.addPo Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new ui(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}}o(CDe,"generateBlobSASQueryParameters20150405");function IDe(t,e){if(t=su(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=Ao.parse(t.permissions.toString()).toString():n=po.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?De(t.startsOn,!1):"",t.expiresOn?De(t.expiresOn,!1):"",ru(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?li(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new ui(t.version,a,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}}o(IDe,"generateBlobSASQueryParameters20181109");function BDe(t,e){if(t=su(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=Ao.parse(t.permissions.toString()).toString():n=po.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?De(t.startsOn,!1):"",t.expiresOn?De(t.expiresOn,!1):"",ru(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?li(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new ui(t.version,a,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}}o(BDe,"generateBlobSASQueryParameters20201206");function bDe(t,e){if(t=su(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=Ao.parse(t.permissions.toString()).toString():n=po.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?De(t.startsOn,!1):"",t.expiresOn?De(t.expiresOn,!1):"",ru(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?De(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?De(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?li(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new ui(t.version,a,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}}o(bDe,"generateBlobSASQueryParametersUDK20181109");function wDe(t,e){if(t=su(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=Ao.parse(t.permissions.toString()).toString():n=po.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?De(t.startsOn,!1):"",t.expiresOn?De(t.expiresOn,!1):"",ru(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?De(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?De(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?li(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new ui(t.version,a,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}}o(wDe,"generateBlobSASQueryParametersUDK20200210");function SDe(t,e){if(t=su(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=Ao.parse(t.permissions.toString()).toString():n=po.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?De(t.startsOn,!1):"",t.expiresOn?De(t.expiresOn,!1):"",ru(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?De(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?De(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?li(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new ui(t.version,a,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}}o(SDe,"generateBlobSASQueryParametersUDK20201206");function NDe(t,e){if(t=su(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=Ao.parse(t.permissions.toString()).toString():n=po.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?De(t.startsOn,!1):"",t.expiresOn?De(t.expiresOn,!1):"",ru(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?De(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?De(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?li(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new ui(t.version,a,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}}o(NDe,"generateBlobSASQueryParametersUDK20250705");function ru(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}o(ru,"getCanonicalName");function su(t){let e=t.version?t.version:AB;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}o(su,"SASSignatureValuesSanityCheckAndAutofill");var wm=class{static{o(this,"BlobLeaseClient")}_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=uA()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==ii||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==ii||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 z.withSpan("BlobLeaseClient-acquireLease",r,async s=>W(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!==ii||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==ii||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 z.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=W(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!==ii||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==ii||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 z.withSpan("BlobLeaseClient-releaseLease",e,async r=>W(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!==ii||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==ii||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 ar 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"}};TA.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var au=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};au.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var km=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var bOe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},KO=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);S(`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=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function jZ(t,e,r){return bOe(this,void 0,void 0,function*(){var s;let n=new Ca(t),i=n.getBlockBlobClient(),a=new KO((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),b(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new gb(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw et(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(jZ,"uploadCacheArchiveSDK");var XZ=w(require("buffer"),1),fo=w(require("fs"),1),ZZ=w(require("stream"),1),e7=w(require("util"),1);var Eb=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function yb(t){return t?t>=200&&t<300:!1}o(yb,"isSuccessStatusCode");function wOe(t){return t?t>=500:!0}o(wOe,"isServerErrorStatusCode");function SOe(t){return t?[yt.BadGateway,yt.ServiceUnavailable,yt.GatewayTimeout].includes(t):!1}o(SOe,"isRetryableStatusCode");function NOe(t){return Eb(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(NOe,"sleep");function KZ(t,e,r){return Eb(this,arguments,void 0,function*(s,n,i,a=HC,c=VC,l=void 0){let u="",d=1;for(;d<=a;){let A,p,f=!1;try{A=yield n()}catch(m){l&&(A=l(m)),f=!0,u=m.message}if(A&&(p=i(A),!wOe(p)))return A;if(p&&(f=SOe(p),u=`Cache service responded with ${p}`),b(`${s} - Attempt ${d} of ${a} failed with error: ${u}`),!f){b(`${s} - Error is not retryable`);break}yield NOe(c),d++}throw Error(`${s} failed: ${u}`)})}o(KZ,"retry");function Dm(t,e){return Eb(this,arguments,void 0,function*(r,s,n=HC,i=VC){return yield KZ(r,s,a=>a.statusCode,n,i,a=>{if(a instanceof Fi)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(Dm,"retryTypedResponse");function vA(t,e){return Eb(this,arguments,void 0,function*(r,s,n=HC,i=VC){return yield KZ(r,s,a=>a.message.statusCode,n,i)})}o(vA,"retryHttpClientResponse");var xn=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function xOe(t,e){return xn(this,void 0,void 0,function*(){yield e7.promisify(ZZ.pipeline)(t.message,e)})}o(xOe,"pipeResponseToStream");var Cb=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,b(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.received Line truncated
Other caches with similar key:`);for(let c of i?.artifactCaches||[])b(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(kOe,"printCachesListForDiagnostics");function tM(t,e,r){return ps(this,void 0,void 0,function*(){let s=new u7.URL(t),n=n7(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield r7(t,e,n):n.concurrentBlobDownloads?yield t7(t,e,n):yield Ib(t,e):yield Ib(t,e)})}o(tM,"downloadCache");function A7(t,e,r){return ps(this,void 0,void 0,function*(){let s=eM(),n=tA(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield Dm("reserveCache",()=>ps(this,void 0,void 0,function*(){return s.postJson(Mm("caches"),i)}))})}o(A7,"reserveCache");function l7(t,e){return`bytes ${t}-${e}/*`}o(l7,"getContentRange");function DOe(t,e,r,s,n){return ps(this,void 0,void 0,function*(){b(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${l7(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":l7(s,n)},a=yield vA(`uploadChunk (start: ${s}, end: ${n})`,()=>ps(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!yb(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(DOe,"uploadChunk");function OOe(t,e,r,s){return ps(this,void 0,void 0,function*(){let n=Li(r),i=Mm(`caches/${e.toString()}`),a=PA.openSync(r,"r"),c=XO(s),l=xv("uploadConcurrency",c.uploadConcurrency),u=xv("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];b("Awaiting all uploads");let A=0;try{yield Promise.all(d.map(()=>ps(this,void 0,void 0,function*(){for(;A<n;){let p=Math.min(n-A,u),f=A,m=A+p-1;A+=u,yield DOe(t,i,()=>PA.createReadStream(r,{fd:a,start:f,end:m,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),f,m)}})))}finally{PA.closeSync(a)}})}o(OOe,"uploadFile");function MOe(t,e,r){return ps(this,void 0,void 0,function*(){let s={size:r};return yield Dm("commitCache",()=>ps(this,void 0,void 0,function*(){return t.postJson(Mm(`caches/${e.toString()}`),s)}))})}o(MOe,"commitCache");function rM(t,e,r,s){return ps(this,void 0,void 0,function*(){if(XO(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield jZ(r,e,s)}else{let i=eM();b("Upload cache"),yield OOe(i,t,e,s),b("Commiting cache");let a=Li(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield MOe(i,t,a);if(!yb(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}o(rM,"saveCache");var oee=w(Z7(),1),Ot=w(Dt(),1),js=w(Dt(),1),Au=w(Dt(),1),pu=w(Dt(),1),fu=w(Dt(),1);var jM=w(Dt(),1),KM=w(Dt(),1),see=w(Dt(),1),nee=w(Dt(),1),iee=w(Dt(),1);var YM=w(Dt(),1),$M=w(Dt(),1),eee=w(Dt(),1),tee=w(Dt(),1),ree=w(Dt(),1);var WM=class extends ree.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,tee.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,eee.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?$M.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,YM.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,YM.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?$M.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},cw=new WM;var XM=class extends iee.MessageType{static{o(this,"CacheMetadata$Type")}constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:o(()=>cw,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,nee.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,see.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(cw.internalBinaryRead(e,e.uint32(),s));break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?KM.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1 Line truncated
`));let s=yield pL(r,"create");yield fL(s,t)})}o(mL,"createTar");var WA=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},pi=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},hu=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},gL="cache write denied:",$A=class t extends hu{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Aw=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function uee(t){if(!t||t.length===0)throw new pi("Path Validation Error: At least one directory or file path is required")}o(uee,"checkPaths");function EL(t){if(t.length>512)throw new pi(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new pi(`Key Validation Error: ${t} cannot contain commas.`)}o(EL,"checkKey");function yL(){return Om()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(yL,"isFeatureAvailable");function dee(t,e,r,s){return WA(this,arguments,void 0,function*(n,i,a,c,l=!1){let u=Om();return b(`Cache service version: ${u}`),uee(n),u==="v2"?yield XLe(n,i,a,c,l):yield KLe(n,i,a,c,l)})}o(dee,"restoreCache");function KLe(t,e,r,s){return WA(this,arguments,void 0,function*(n,i,a,c,l=!1){a=a||[];let u=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(u)),u.length>10)throw new pi("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of u)EL(p);let d=yield Dh(),A="";try{let p=yield d7(u,n,{compressionMethod:d,enableCrossOsArchive:l});if(!p?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),p.cacheKey;A=Zm.join(yield _h(),pc(d)),b(`Archive Path: ${A}`),yield tM(p.archiveLocation,A,c),Rl()&&(yield Xm(A,d));let f=Li(A);return S(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield hL(A,d),S("Cache restored successfully"),p.cacheKey}catch(p){let f=p;if(f.name===pi.name)throw p;f instanceof Fi&&typeof f.statusCode=="number"&&f.statusCode>=500?Vd(`Failed to restore: ${p.message}`):et(`Failed to restore: ${p.message}`)}finally{try{yield kh(A)}catch(p){b(`Failed to delete archive: ${p}`)}}})}o(KLe,"restoreCacheV1");function XLe(t,e,r,s){return WA(this,arguments,void 0,function*(n,i,a,c,l=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let u=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(u)),u.length>10)throw new pi("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of u)EL(A);let d="";try{let A=AL(),p=yield Dh(),f={key:i,restoreKeys:a,version:tA(n,p,l)},m=yield A.GetCacheEntryDownloadURL(f);if(!m.ok){b(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==m.matchedKey?S(`Cache hit for restore-key: ${m.matchedKey}`):S(`Cache hit for: ${m.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),m.matchedKey;d=Zm.join(yield _h(),pc(p)),b(`Archive path: ${d}`),b(`Starting download of archive to: ${d}`),yield tM(m.signedDownloadUrl,d,c);let y=Li(d);return S(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Rl()&&(yield Xm(d,p)),yield hL(d,p),S("Cache restored successfully"),m.matchedKey}catch(A){let p=A;if(p.name===pi.name)throw A;p instanceof Fi&&typeof p.statusCode=="number"&&p.statusCode>=500?Vd(`Failed to restore: ${A.message}`):et(`Failed to restore: ${A.message}`)}finally{try{d&&(yield kh(d))}catch(A){b(`Failed to delete archive: ${A}`)}}})}o(XLe,"restoreCacheV2");function CL(t,e,r){return WA(this,arguments,void 0,function*(s,n,i,a=!1){let c=Om();return b(`Cache service version: ${c}`),uee(s),EL(n),c==="v2"?yield eFe(s,n,i,a):yield ZLe(s,n,i,a)})}o(CL,"saveCache");function ZLe(t,e,r){return WA(this,arguments,void 0,function*(s,n,i,a=!1){var c,l,u,d,A,p;let f=yield Dh(),m=-1,g=yield Nv(s);if(b("Cache Paths:"),b(`${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 y=yield _h(),E=Zm.join(y,pc(f));b(`Archive Path: ${E}`);try{yield mL(y,g,f),Rl()&&(yield Xm(E,f));let C=10*1024*1024*1024,I=Li(E);if(b(`File Size: ${I}`),I>C&&!ZO())throw new Error(`Cache size of ~${Math.round(I/(1024*1024))} MB (${I} B) is over the 10GB limit, not saving cache.`);b("Reserving Cache");let B=yield A7(n,s,{compressionMethod:f,enableCrossOsArchive:a,cacheSize:I});if(!((c=B?.result)===null||c===void 0)&&c.cacheId)m=(l=B?.result)=== Line truncated
`,a).length:A,u?(c===null?0:c.length)+l.length:0,u?l.length+A:0);return p<f},"__needMoreData"),parse:o(function(s,n,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:A,ltrim:p,max_record_size:f,raw:m,relax_quotes:g,rtrim:y,skip_empty_lines:E,to:C,to_line:I}=this.options,{comment:B,escape:N,quote:Q,record_delimiter:D}=this.options,{bomSkipped:le,delimiterDiscovered:Se,delimiterBufPrevious:Re,rawBuffer:Oe,escapeIsQuote:me}=this.state;if(!Se&&u){let Me;if(Re===void 0?Me=s:Re!==void 0&&s===void 0?Me=Re:Me=Buffer.concat([Re,s]),s=void 0,n||Me.length>u.size)this.options.delimiter=[Buffer.from(Qre(Me,this.options.delimiter_auto))],this.state.previousBuf=Me,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Me;return}}let{previousBuf:Je}=this.state,ue;if(Je===void 0)if(s===void 0){a();return}else ue=s;else Je!==void 0&&s===void 0?ue=Je:ue=Buffer.concat([Je,s]);if(le===!1)if(c===!1)this.state.bomSkipped=!0;else if(ue.length<3){if(n===!1){this.state.previousBuf=ue;return}}else{for(let Me in lp)if(lp[Me].compare(ue,0,lp[Me].length)===0){let Ci=lp[Me].length;this.state.bufBytesStart+=Ci,ue=ue.slice(Ci);let La=cp({...this.original_options,encoding:Me});for(let gt in La)this.options[gt]=La[gt];({comment:B,escape:N,quote:Q}=this.options);break}this.state.bomSkipped=!0}let vr=ue.length,J;for(J=0;J<vr&&!this.__needMoreData(J,vr,n);J++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&D.length===0&&this.__autoDiscoverRecordDelimiter(ue,J)&&(D=this.options.record_delimiter);let Me=ue[J];if(m===!0&&Oe.append(Me),(Me===h2e||Me===m2e)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(ue,J,Me)&&J+N.length<vr)if(me){if(this.__isQuote(ue,J+N.length)){this.state.escaping=!0,J+=N.length-1;continue}}else{this.state.escaping=!0,J+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(ue,J))if(this.state.quoting===!0){let gt=ue[J+Q.length],Ii=y&&this.__isCharTrimable(ue,J+Q.length),ws=B!==null&&this.__compareBytes(B,ue,J+Q.length,gt),Zc=this.__isDelimiter(ue,J+Q.length,gt),nE=D.length===0?this.__autoDiscoverRecordDelimiter(ue,J+Q.length):this.__isRecordDelimiter(gt,ue,J+Q.length);if(N!==null&&this.__isEscape(ue,J,Me)&&this.__isQuote(ue,J+N.length))J+=N.length-1;else if(!gt||Zc||nE||ws||Ii){this.state.quoting=!1,this.state.wasQuoting=!0,J+=Q.length-1;continue}else if(g===!1){let j2=this.__error(new Be("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(gt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(j2!==void 0)return j2}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(Q),J+=Q.length-1}else if(this.state.field.length!==0){if(g===!1){let gt=this.__infoField(),Ii=Object.keys(lp).map(Zc=>lp[Zc].equals(this.state.field.toString())?Zc:!1).filter(Boolean)[0],ws=this.__error(new Be("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(gt.column)} at line ${gt.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,Ii?`(${Ii} bom)`:void 0],this.options,gt,{field:this.state.field}));if(ws!==void 0)return ws}}else{this.state.quoting=!0,J+=Q.length-1;continue}if(this.state.quoting===!1){let gt=this.__isRecordDelimiter(Me,ue,J);if(gt!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=A){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),J+=gt-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,J+=gt-1;continue}this.info.bytes=this.state.bufBytesStart+J;let Zc=this.__onField();if(Zc!==void 0)return Zc;this.info.bytes=this.state.bufBytesStart+J+gt;let nE=this.__onRecord(i);if(nE!==void 0)return nE;if(C!==-1&&this.info.records>=C){this.state.stop=!0,a();return}}this.state.commenting=!1,J+=gt-1;continue}if(this.state.commenting)continue;if(B!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(B,ue,J,Me)!==0){this.state.commenting=!0;continue}let Ii=this.__isDelimiter(ue,J,Me);if(Ii!==0){this.info.bytes=this.state.bufBytesStart+J;let ws=this.__onField();if(ws!==void 0)return ws;J+=Ii-1;continue}}}if(this.state.commenting===!1&&f!==0&&this.state.record_length+this.state.field.length>f)return this.__error(new Be("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${f}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Ci=p===!1||th Line truncated
`,i),Buffer.from(`
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==s[n+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(s){let{encoding:n,raw:i,skip_records_with_error:a}=this.options,c=typeof s=="string"?new Error(s):s;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(n):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:s,raw:n,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:s===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:s}=this.options,n=Array.isArray(s),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:n===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var tn=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],s=e0(e),n=o(c=>{s.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=s.parse(t,!0,n,i);if(a!==void 0)throw a;return r},"parse");var nt=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(ac(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let n=tn(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of n)i.length==1?r?.ignoreComma?s.push(i[0]):s.push(...i[0].split(",")):r?.ignoreComma?s.push(i.join(",")):s.push(...i);return s.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=ac(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let s=0;s<e.length;s++)await r(e[s],s,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let s=await fr("powershell",!0),n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${n}' ${i.join(" ")}`]}}static isDirectory(e){try{return Tre.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let s=e.lastIndexOf(r);return s===-1||s+r.length!==e.length?e:e.substring(0,s)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return bF.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,n)).toFixed(2))+" "+s[n]}static generateRandomString(e=10){return bF.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return vre.default.compile(e,r)(s)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let s=hg.default.resolve(e);return hg.default.resolve(r).startsWith(s.endsWith(hg.default.sep)?s:`${s}${hg.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),s=Math.floor(r/3600),n=Math.floor(r%3600/60),i=r%60,a=[];return s&&a.push(`${s}h`),n&&a.push(`${n}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var tr=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||mg.default.join(Pre.default.homedir(),".docker")}static configFile(){let e=mg.default.join(t.configDir,"config.json");if(wF.default.existsSync(e))return JSON.parse(wF.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await fr("docker",!0).then(e=>(b(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(b(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}ca Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var fat=class extends Error{constructor(t,e,r){super(dat(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},pat=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Aat=["query","method","url"],cEe=/\/api\/v3\/?$/;function mat(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(Aat.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,i=Object.keys(s).reduce((o,a)=>pat.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),n=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return cEe.test(n)&&(i.url=n.replace(cEe,"/api/graphql")),t(i).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new fat(i,a,o.data)}return o.data.data})}function HV(t,e){let r=t.defaults(e);return Object.assign((i,n)=>mat(r,i,n),{defaults:HV.bind(null,r),endpoint:r.endpoint})}var zWt=HV(hb,{headers:{"user-agent":`octokit-graphql.js/${hat} ${gd()}`},method:"POST",url:"/graphql"});function lEe(t){return HV(t,{method:"POST",url:"/graphql"})}var zV="(?:[a-zA-Z0-9_-]+)",uEe="\\.",hEe=new RegExp(`^${zV}${uEe}${zV}${uEe}${zV}$`),gat=hEe.test.bind(hEe);async function yat(t){let e=gat(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 Eat(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function Cat(t,e,r,s){let i=e.endpoint.merge(r,s);return i.headers.authorization=Eat(t),e(i)}var dEe=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(yat.bind(null,e),{hook:Cat.bind(null,e)})};var VV="7.0.6";var fEe=()=>{},Iat=console.warn.bind(console),bat=console.error.bind(console);function wat(t={}){return typeof t.debug!="function"&&(t.debug=fEe),typeof t.info!="function"&&(t.info=fEe),typeof t.warn!="function"&&(t.warn=Iat),typeof t.error!="function"&&(t.error=bat),t}var pEe=`octokit-core.js/${VV} ${gd()}`,S_=class{static VERSION=VV;static defaults(e){return class extends this{constructor(...s){let i=s[0]||{};if(typeof e=="function"){super(e(i));return}super(Object.assign({},e,i,i.userAgent&&e.userAgent?{userAgent:`${i.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(i=>!r.includes(i)))}}constructor(e={}){let r=new Hye.Collection,s={baseUrl:hb.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} ${pEe}`:pEe,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=hb.defaults(s),this.graphql=lEe(this.request).defaults(s),this.log=wat(e.log),this.hook=r,e.authStrategy){let{authStrategy:n,...o}=e,a=n(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 n=dEe(e.auth);r.wrap("request",n.hook),this.auth=n}let i=this.constructor;for(let n=0;n<i.plugins.length;++n)Object.assign(this,i.plugins[n](this,e))}request;graphql;log;hook;auth};var $V="17.0.0";var Bat={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
More info: ${c.url}`);let f=c.range&&c.range.length>0?c.range[0]?.start.line:void 0,p=!1;for(let m of o)if(m.remote||m.path.endsWith(l)&&m.content===u){a.push({title:h,message:d,file:m.path,startLine:f}),p=!0;break}p||z(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${l}: ${h}`)}return a}};var Qp=O(require("fs"),1),w3=O(require("path"),1);var G_=class t{buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new zt,this.iidFilename=`build-iidfile-${Xt.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Xt.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),s=e?.attrs||{},i=Object.entries(s).filter(([f])=>!r.has(f)),n=Xt.parseBoolOrDefault(s["fetch-by-commit"]),o=e?.ref||s.ref||Pi.ref;o.startsWith("refs/")?o.startsWith("refs/pull/")&&Xt.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(o=o.replace(/\/merge$/g,"/head")):o=`refs/heads/${o}`;let a=`${Pt.serverURL}/${Pi.repo.owner}/${Pi.repo.repo}.git`,c=e?.checksum||s.checksum,l=e?.subdir||s.subdir,u=e?.format;if(!u){if(u="fragment",i.length>0)u="query";else if(Xt.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(u="query")}catch{}}let h=Pi.sha||o;o.startsWith("refs/pull/")&&o.endsWith("/head")&&(h=typeof Pi.payload.pull_request?.head?.sha=="string"?Pi.payload.pull_request.head.sha:o);let d=c||h;if(u==="query"){let f=[`ref=${n||c?o:d}`],p=n?d:c;p&&f.push(`checksum=${p}`),l&&l!=="."&&f.push(`subdir=${l}`);for(let[m,E]of i)f.push(`${m}=${E}`);return`${a}?${f.join("&")}`}return`${a}#${d}${l&&l!=="."?`:${l}`:""}`}getImageIDFilePath(){return w3.default.join(Ct.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(Qp.default.existsSync(e))return Qp.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return w3.default.join(Ct.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Qp.default.existsSync(e))return;let r=Qp.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,s]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${s}`}static resolveSecretFile(e){let[r,s]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${s}`}static resolveSecretEnv(e){let[r,s]=t.parseSecretKvp(e);return`id=${r},env=${s}`}static resolveSecret(e,r){let[s,i]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!Qp.default.existsSync(i))throw new Error(`secret file ${i} not found`);return[s,i]}let n=Ct.tmpName({tmpdir:Ct.tmpDir()});return Qp.default.writeFileSync(n,i),[s,n]}static getProvenanceInput(e){let r=Qm(e);if(!r)return r;try{return tne(e)?`builder-id=${Pt.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${Pt.workflowRunURL(!0)}`;let r=no(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of r)if(s.toString().split(/(?<=^[^=]+?)=/).map(n=>n.trim())[0]=="builder-id")return e;return`${e},builder-id=${Pt.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let s="registry",i="",n="",o=no(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let a of o){let c=a.toString().split(/(?<=^[^=]+?)=/).map(l=>l.trim());c[0]==="type"?s=c[1]:c[0]==="repository"?i=c[1]:c[0]==="ghtoken"&&(n=c[1])}return s==="gha"&&(i||(e=`${e},repository=${Pt.repository}`),!n&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",e)}static hasExporterType(e,r){let s=no(r.join(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of s){if(i.length==1&&!i[0].startsWith("type="))return e=="local";for(let[n,o]of i.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0}return!1}static hasAttestationType(e,r){let s=no(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of s)for(let[n,o]of i.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0;return!1}static resolveAttestationAttrs(e){let r=no(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(let i of r)for(let n of i)try{let o=Xt.parseBool(n);s.push(`disabled=${!o}`)}catch{s.push(n)}return s.join(",")}static hasGitAuthTokenSecret(e,r){for(let s of e){if(r&&s.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(s.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let s=e.indexOf("="),i=e.substring(0,s),n=e.substring(s+1);if(i.length==0||n.length==0)throw new Error(`${e} is not a valid secret`);return r&&KC(n),[i,n]}};var B3=O(require("fs"),1),pIe=O(require("path"),1);var H_=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new zt,this.metadataFilename=`bake-metadata-${Xt.generateRandomString()}.json`}getMetadataFilePath(){return pIe.default.join(Ct.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!B3.default.existsSync(e))return;let r=B3.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let s in e)"buildx.build.ref"in e[s]&&r.push(e[s]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let s=["bake"],i,n=[],o=[...e.files||[],e.source];if(o){for(let c of o.map(l=>l?l.trim():""))if(c.length!=0){if(!Xt.isValidRef(c)){n.push(c);continue}if(i)throw new Error("Only one remote bake definition can be defined");i=c}}i&&s.push(i);for(let c of n)s.push("--file",c);if(e.overrides)for(let c of e.overrides)s.push("--set",c);if(e.vars)for(let c of e.vars)s.push("--var",c);if(e.allow)for(let c of e.allow)s.push("--allow",c);e.call&&s.push("--call",e.call),e.load&&s.push("--load"),e.noCache&&s.push("--no-cache"),e.provenance&&s.push("--provenance",e.provenance),e.push&&s.push("--push"),e.sbom&&s.push("--sbom",e.sbom);let a=await this.buildx.getCommand([...s,"--print",...e.targets||[]]);return await ke.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(`cannot parse bake definitions: ${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(c.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let s in r.target){let i=r.target[s];i.attest&&Array.isArray(i.attest)&&(i.attest=i.attest.map(n=>t.parseAttestEntry(n))),i["cache-from"]&&Array.isArray(i["cache-from"])&&(i["cache-from"]=i["cache-from"].map(n=>t.parseCacheEntry(n))),i["cache-to"]&&Array.isArray(i["cache-to"])&&(i["cache-to"]=i["cache-to"].map(n=>t.parseCacheEntry(n))),i.output&&Array.isArray(i.output)&&(i.output=i.output.map(n=>t.parseExportEntry(n))),i.secret&&Array.isArray(i.secret)&&(i.secret=i.secret.map(n=>t.parseSecretEntry(n))),i.ssh&&Array.isArray(i.ssh)&&(i.ssh=i.ssh.map(n=>t.parseSSHEntry(n)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},s=no(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of s){let[n,o]=i.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(n){case"type":r.type=o;break;case"disabled":r.disabled=Xt.parseBool(o);break;default:r[n]=o}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},s=no(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&!s[0].includes("="))return r.type="registry",r.ref=s[0],r;for(let i of s){let[n,o]=i.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());n==="type"?r.type=o:r[n]=o}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},s=no(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&s[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let i of s){let[n,o]=i.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());n==="type"?r.type=o:r[n]=o}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},s=no(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],i="";for(let n of s){let[o,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(o){case"type":i=a;break;case"id":r.id=a;break;case"source":case"src":r.src=a;break;case"env":r.env=a;break}}return i==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[s,i]=e.split("=",2);return r.id=s,i&&(r.paths=i.split(", Line truncated
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);z(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let s=r.match(/^HEAD, (.*)$/);if(!s||!s[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let i=s[1].trim();if(i.startsWith("tag: "))return`refs/tags/${i.split(":")[1].trim()}`;if(i.match(/^pull\/\d+\/(head|merge)$/))return`refs/${i}`;let o=i.match(/^[^/]+\/[^/]+, (.+)$/);if(o)return`refs/heads/${o[1].trim()}`;let a=i.match(/^[^/]+\/(.+)$/);if(a)return`refs/heads/${a[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await ke.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let n=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return n?`refs/heads/${n[1]}`:r}let s=await t.exec(["tag","--contains","HEAD"]),[i]=s.split(`
`).map(n=>n.trim()).filter(n=>n.length>0);if(i)return`refs/tags/${i}`;throw new Error("Cannot infer ref from detached HEAD")}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[s]=r.split(`
`).map(i=>i.trim()).filter(i=>i.length>0);return s}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var U1e=require("crypto"),Ml=O(require("fs"),1),rf=O(require("path"),1);var hB=O(Cb(),1),Ll=O(xTe(),1),F1e=O(T9(),1),DE=O(Q1e(),1);var _W=O(Cb(),1);var O1e=O(Va(),1);var P1e="application/vnd.oci.empty.v1+json";var mh=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await ke.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(z(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(z(`Cosign.isAvailable error: ${r}`),!1));return z(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await ke.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await ke.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let s=r??await this.version();if(!s)return z("Cosign.versionSatisfies false: undefined version"),!1;let i=O1e.satisfies(s,e)||/^[0-9a-f]{7}$/.exec(s)!==null;return z(`Cosign.versionSatisfies ${s} statisfies ${e}: ${i}`),i}static parseCommandOutput(e){let r,s,i,n;for(let o of e.split(/\r?\n/)){let a=o.trim();if(!a.startsWith("{")||!a.endsWith("}"))continue;let c;try{c=JSON.parse(a)}catch{continue}if(c&&Array.isArray(c.errors)&&c.errors.length>0&&(n=c.errors),!r&&c&&Array.isArray(c.manifests)&&c.manifests.length>0){let l=c.manifests[0];l?.artifactType===_W.BUNDLE_V03_MEDIA_TYPE&&typeof l.digest=="string"?r=l.digest:l?.artifactType===P1e&&typeof l.digest=="string"&&(s=l.digest)}if(!i&&c&&c.mediaType===_W.BUNDLE_V03_MEDIA_TYPE&&(i=c),i&&(r||s)){n=void 0;break}}return{bundle:i,signatureManifestDigest:r||s,errors:n}}};var QW=O(require("fs"),1);var uD=class t{buildx;constructor(e){this.buildx=e?.buildx||new zt}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let s=r.manifests.filter(o=>o.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return s;let i=e.platform,n=new Map;for(let o of r.manifests)o.digest&&n.set(o.digest,o);return s.filter(o=>{let a=o.annotations?.["vnd.docker.reference.digest"];if(!a)return!1;let c=n.get(a);return c?c.platform?.os===i.os&&c.platform?.architecture===i.architecture&&(c.platform?.variant??"")===(i.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],s=Ct.tmpName({tmpdir:Ct.tmpDir(),template:"imagetools-metadata-XXXXXX"}),i=[],n=[];for(let a of e.sources){if(a.startsWith("cwd://")){let c=a.substring(6);c.length>0&&i.push(c);continue}n.push(a)}if(e.tags)for(let a of e.tags)r.push("--tag",a);if(e.platforms)for(let a of e.platforms)r.push("--platform",a);if(e.annotations)for(let a of e.annotations)r.push("--annotation",a);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",s);for(let a of i)r.push("--file",a);for(let a of n)r.push(a);let o=await this.getCreateCommand(r);if(e.skipExec){j(`[command]${o.command} ${o.args.join(" ")}`),j("Skipped create command");return}return await ke.getExecOutput(o.command,o.args,{ignoreReturnCode:!0,silent:e.silent}).then(a=>{if(a.stderr.length>0&&a.exitCode!=0)throw new Error(a.stderr.trim());if(!e.dryRun){if(!QW.default.existsSync(s))return;let c=QW.default.readFileSync(s,{encoding:"utf-8"}).trim();if(c===""||c==="null")return;let l=JSON.parse(c),u=l["containerimage.descriptor"];return u?{digest:l["containerimage.digest"]||u.digest,descriptor:u,imageNames:l["image.name"]?l["image.name"].split(",").map(h=>h.trim()):[]}:void 0}})}async inspect(e,r,s){let i=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(i.command,i.args,s);let n=e.retryLimit??15,o;for(let a=0;a<n;a++)try{return await this.execInspect(i.command,i.args,s)}catch(c){if(o=c,!t.isManifestUnknown Line truncated
${o.message}`),await new Promise(l=>setTimeout(l,Math.pow(2,a)*100))}throw o??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,s){return await ke.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return s(JSON.parse(i.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var D1e="application/vnd.in-toto+json";var k1e="https://fulcio.sigstore.dev",M1e="https://rekor.sigstore.dev",L1e="https://timestamp.sigstore.dev",_A="https://search.sigstore.dev";var UQt="slsaprovenance1",sf=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new mh,this.imageTools=e?.imageTools||new uD}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let s=this.signingEndpoints(e.noTransparencyLog);j(`Using Sigstore signing endpoint: ${s.fulcioURL}`);let i=t.noTransparencyLog(e.noTransparencyLog),n=[];await this.cosign.versionSatisfies(">=3.0.4")?await Vh("Creating Sigstore protobuf signing config",async()=>{let o=Ct.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Ct.tmpDir()}),a=["signing-config","create","--with-default-services=true",`--out=${o}`];i&&a.push("--no-default-rekor=true"),await ke.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),j(JSON.stringify(JSON.parse(Ml.default.readFileSync(o,{encoding:"utf-8"})),null,2)),n.push(`--signing-config=${o}`)}):(n.push("--use-signing-config"),i&&n.push("--tlog-upload=false"));for(let o of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${o}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${o}@${c}`;await Vh(`Signing attestation manifest ${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...n];j(`[command]${this.cosign.binPath} ${[...u,l].join(" ")}`);let h=await ke.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),d=mh.parseCommandOutput(h.stderr.trim());if(h.exitCode!=0)if(d.errors&&d.errors.length>0){let p=d.errors.map(m=>`- [${m.code}] ${m.message} : ${m.detail}`).join(`
`)}o(tqe,"_buildMessageForResponseErrors");var rqe=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(tqe(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},sqe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],nqe=["query","method","url"],fse=/\/api\/v3\/?$/;function iqe(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(nqe.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((a,c)=>sqe.includes(c)?(a[c]=s[c],a):(a.variables||(a.variables={}),a.variables[c]=s[c],a),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return fse.test(i)&&(n.url=i.replace(fse,"/api/graphql")),t(n).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new rqe(n,c,a.data)}return a.data.data})}o(iqe,"graphql");function DF(t,e){let r=t.defaults(e);return Object.assign(o((n,i)=>iqe(r,n,i),"newApi"),{defaults:DF.bind(null,r),endpoint:r.endpoint})}o(DF,"withDefaults");var dNt=DF(Cg,{headers:{"user-agent":`octokit-graphql.js/${eqe} ${_c()}`},method:"POST",url:"/graphql"});function hse(t){return DF(t,{method:"POST",url:"/graphql"})}o(hse,"withCustomRequest");var OF="(?:[a-zA-Z0-9_-]+)",mse="\\.",gse=new RegExp(`^${OF}${mse}${OF}${mse}${OF}$`),oqe=gse.test.bind(gse);async function aqe(t){let e=oqe(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"}}o(aqe,"auth");function cqe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(cqe,"withAuthorizationPrefix");async function lqe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=cqe(t),e(n)}o(lqe,"hook");var Ese=o(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(aqe.bind(null,e),{hook:lqe.bind(null,e)})},"createTokenAuth2");var MF="7.0.6";var yse=o(()=>{},"noop"),uqe=console.warn.bind(console),dqe=console.error.bind(console);function Aqe(t={}){return typeof t.debug!="function"&&(t.debug=yse),typeof t.info!="function"&&(t.info=yse),typeof t.warn!="function"&&(t.warn=uqe),typeof t.error!="function"&&(t.error=dqe),t}o(Aqe,"createLogger");var Cse=`octokit-core.js/${MF} ${_c()}`,A0=class{static{o(this,"Octokit")}static VERSION=MF;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}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{o(this,"NewOctokit")}static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new Wre.Collection,s={baseUrl:Cg.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} ${Cse}`:Cse,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Cg.defaults(s),this.graphql=hse(this.request).defaults(s),this.log=Aqe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...a}=e,c=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=Ese(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 LF="17.0.0";var pqe={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables" Line truncated
More info: ${l.url}`);let f=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,m=!1;for(let g of a)if(g.remote||g.path.endsWith(u)&&g.content===d){c.push({title:A,message:p,file:g.path,startLine:f}),m=!0;break}m||b(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${A}`)}return c}};var Nu=w(require("fs"),1),h1=w(require("path"),1);var R0=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Ke,this.iidFilename=`build-iidfile-${nt.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${nt.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),s=e?.attrs||{},n=Object.entries(s).filter(([f])=>!r.has(f)),i=nt.parseBoolOrDefault(s["fetch-by-commit"]),a=e?.ref||s.ref||Wr.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&nt.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${He.serverURL}/${Wr.repo.owner}/${Wr.repo.repo}.git`,l=e?.checksum||s.checksum,u=e?.subdir||s.subdir,d=e?.format;if(!d){if(d="fragment",n.length>0)d="query";else if(nt.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(d="query")}catch{}}let A=Wr.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(A=typeof Wr.payload.pull_request?.head?.sha=="string"?Wr.payload.pull_request.head.sha:a);let p=l||A;if(d==="query"){let f=[`ref=${i||l?a:p}`],m=i?p:l;m&&f.push(`checksum=${m}`),u&&u!=="."&&f.push(`subdir=${u}`);for(let[g,y]of n)f.push(`${g}=${y}`);return`${c}?${f.join("&")}`}return`${c}#${p}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){return h1.default.join(ve.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(Nu.default.existsSync(e))return Nu.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return h1.default.join(ve.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Nu.default.existsSync(e))return;let r=Nu.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,s]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${s}`}static resolveSecretFile(e){let[r,s]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${s}`}static resolveSecretEnv(e){let[r,s]=t.parseSecretKvp(e);return`id=${r},env=${s}`}static resolveSecret(e,r){let[s,n]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!Nu.default.existsSync(n))throw new Error(`secret file ${n} not found`);return[s,n]}let i=ve.tmpName({tmpdir:ve.tmpDir()});return Nu.default.writeFileSync(i,n),[s,i]}static getProvenanceInput(e){let r=ac(e);if(!r)return r;try{return cC(e)?`builder-id=${He.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${He.workflowRunURL(!0)}`;let r=tn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of r)if(s.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim())[0]=="builder-id")return e;return`${e},builder-id=${He.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let s="registry",n="",i="",a=tn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let l=c.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());l[0]==="type"?s=l[1]:l[0]==="repository"?n=l[1]:l[0]==="ghtoken"&&(i=l[1])}return s==="gha"&&(n||(e=`${e},repository=${He.repository}`),!i&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",e)}static hasExporterType(e,r){let s=tn(r.join(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of s){if(n.length==1&&!n[0].startsWith("type="))return e=="local";for(let[i,a]of n.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let s=tn(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of s)for(let[i,a]of n.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=tn(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(let n of r)for(let i of n)try{let a=nt.parseBool(i);s.push(`disabled=${!a}`)}catch{s.push(i)}return s.join(",")}static hasGitAuthTokenSecret(e,r){for(let s of e){if(r&&s.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(s.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let s=e.indexOf("="),n=e.substring(0,s),i=e.substring(s+1);if(n.length==0||i.length==0)throw new Error(`${e} is not a valid secret`);return r&&Pi(i),[n,i]}};var m1=w(require("fs"),1),Cie=w(require("path"),1);var T0=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Ke,this.metadataFilename=`bake-metadata-${nt.generateRandomString()}.json`}getMetadataFilePath(){return Cie.default.join(ve.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!m1.default.existsSync(e))return;let r=m1.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let s in e)"buildx.build.ref"in e[s]&&r.push(e[s]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let s=["bake"],n,i=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!nt.isValidRef(l)){i.push(l);continue}if(n)throw new Error("Only one remote bake definition can be defined");n=l}}n&&s.push(n);for(let l of i)s.push("--file",l);if(e.overrides)for(let l of e.overrides)s.push("--set",l);if(e.vars)for(let l of e.vars)s.push("--var",l);if(e.allow)for(let l of e.allow)s.push("--allow",l);e.call&&s.push("--call",e.call),e.load&&s.push("--load"),e.noCache&&s.push("--no-cache"),e.provenance&&s.push("--provenance",e.provenance),e.push&&s.push("--push"),e.sbom&&s.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...s,"--print",...e.targets||[]]);return await re.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannot parse bake definitions: ${l.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(l.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let s in r.target){let n=r.target[s];n.attest&&Array.isArray(n.attest)&&(n.attest=n.attest.map(i=>t.parseAttestEntry(i))),n["cache-from"]&&Array.isArray(n["cache-from"])&&(n["cache-from"]=n["cache-from"].map(i=>t.parseCacheEntry(i))),n["cache-to"]&&Array.isArray(n["cache-to"])&&(n["cache-to"]=n["cache-to"].map(i=>t.parseCacheEntry(i))),n.output&&Array.isArray(n.output)&&(n.output=n.output.map(i=>t.parseExportEntry(i))),n.secret&&Array.isArray(n.secret)&&(n.secret=n.secret.map(i=>t.parseSecretEntry(i))),n.ssh&&Array.isArray(n.ssh)&&(n.ssh=n.ssh.map(i=>t.parseSSHEntry(i)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},s=tn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of s){let[i,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(i){case"type":r.type=a;break;case"disabled":r.disabled=nt.parseBool(a);break;default:r[i]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},s=tn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&!s[0].includes("="))return r.type="registry",r.ref=s[0],r;for(let n of s){let[i,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());i==="type"?r.type=a:r[i]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},s=tn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&s[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let n of s){let[i,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());i==="type"?r.type=a:r[i]=a}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},s=tn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],n="";for(let i of s){let[a,c]=i.toString().split(/(?<=^[^=]+?)=/).map(l=>l.trim());switch(a){case"type":n=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;break}}return n==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[s,n]=e.split("=",2);return r.id=s, Line truncated
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);b(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let s=r.match(/^HEAD, (.*)$/);if(!s||!s[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let n=s[1].trim();if(n.startsWith("tag: "))return await t.findDetachedTagRef(n,e);if(n.match(/^pull\/\d+\/(head|merge)$/))return`refs/${n}`;let a=n.match(/^[^/]+\/[^/]+, (.+)$/);if(a)return`refs/heads/${a[1].trim()}`;let c=n.match(/^[^/]+\/(.+)$/);if(c)return`refs/heads/${c[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await re.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let i=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return i?`refs/heads/${i[1]}`:r}let s=await t.exec(["tag","--contains","HEAD"]),[n]=s.split(`
`).map(i=>i.trim()).filter(i=>i.length>0);if(n)return`refs/tags/${n}`;throw new Error("Cannot infer ref from detached HEAD")}static async findDetachedTagRef(e,r){let n=(await t.exec(["for-each-ref","--format=%(refname)","--points-at","HEAD","refs/tags/"])).split(`
`).map(i=>i.trim()).filter(i=>i.length>0).sort((i,a)=>a.length-i.length);for(let i of n){let a=`tag: ${i.slice(10)}`;if(e===a||e.startsWith(`${a}, `))return i}if(n.length===1)return n[0];throw new Error(`Cannot find detached tag ref in "${r}"`)}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[s]=r.split(`
`).map(n=>n.trim()).filter(n=>n.length>0);return s}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var Oce=require("crypto"),Oo=w(require("fs"),1),Mo=w(require("path"),1);var Jp=w(w1(),1),Mce=w(FU(),1),Yp=w(Pce(),1);var H2=w(w1(),1);var kce=w(hi(),1);var _ce="application/vnd.oci.empty.v1+json";var Do=class{static{o(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await re.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(b(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(b(`Cosign.isAvailable error: ${r}`),!1));return b(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await re.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await re.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let s=r??await this.version();if(!s)return b("Cosign.versionSatisfies false: undefined version"),!1;let n=kce.satisfies(s,e)||/^[0-9a-f]{7}$/.exec(s)!==null;return b(`Cosign.versionSatisfies ${s} statisfies ${e}: ${n}`),n}static parseCommandOutput(e){let r,s,n,i;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let l;try{l=JSON.parse(c)}catch{continue}if(l&&Array.isArray(l.errors)&&l.errors.length>0&&(i=l.errors),!r&&l&&Array.isArray(l.manifests)&&l.manifests.length>0){let u=l.manifests[0];u?.artifactType===H2.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===_ce&&typeof u.digest=="string"&&(s=u.digest)}if(!n&&l&&l.mediaType===H2.BUNDLE_V03_MEDIA_TYPE&&(n=l),n&&(r||s)){i=void 0;break}}return{bundle:n,signatureManifestDigest:r||s,errors:i}}};var V2=w(require("fs"),1);var aN=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new Ke}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let s=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return s;let n=e.platform,i=new Map;for(let a of r.manifests)a.digest&&i.set(a.digest,a);return s.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=i.get(c);return l?l.platform?.os===n.os&&l.platform?.architecture===n.architecture&&(l.platform?.variant??"")===(n.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],s=ve.tmpName({tmpdir:ve.tmpDir(),template:"imagetools-metadata-XXXXXX"}),n=[],i=[];for(let c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&n.push(l);continue}i.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",s);for(let c of n)r.push("--file",c);for(let c of i)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){S(`[command]${a.command} ${a.args.join(" ")}`),S("Skipped create command");return}return await re.getExecOutput(a.command,a.args,{ignoreReturnCode:!0,silent:e.silent}).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(c.stderr.trim());if(!e.dryRun){if(!V2.default.existsSync(s))return;let l=V2.default.readFileSync(s,{encoding:"utf-8"}).trim();if(l===""||l==="null")return;let u=JSON.parse(l),d=u["containerimage.descriptor"];return d?{digest:u["containerimage.digest"]||d.digest,descriptor:d,imageNames:u["image.name"]?u["image.name"].split(",").map(A=>A.trim()):[]}:void 0}})}async inspect(e,r,s){let n=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(n.command,n.args,s);let i=e.retryLimit??15,a;for(let c=0;c<i;c++)try{return await this.execInspect(n.command,n.args,s Line truncated
${a.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,s){return await re.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return s(JSON.parse(n.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var Vu="https://search.sigstore.dev";var Dce="slsaprovenance1",Kc=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Do,this.imageTools=e?.imageTools||new aN}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let s=await this.cosignSigningConfigArgs(e.noTransparencyLog);for(let n of e.imageNames){let i=await this.imageTools.attestationDigests({name:`${n}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let a of i){let c=`${n}@${a}`;await Ms(`Signing attestation manifest ${c}`,async()=>{let l=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...s];S(`[command]${this.cosign.binPath} ${[...l,c].join(" ")}`);let u=await re.getExecOutput(this.cosign.binPath,["--verbose",...l,c],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),d=Do.parseCommandOutput(u.stderr.trim());if(u.exitCode!=0)if(d.errors&&d.errors.length>0){let p=d.errors.map(f=>`- [${f.code}] ${f.message} : ${f.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
${p}`)}else throw new Error(`Cosign sign command failed with: ${h.stderr.trim().split(/\r?\n/).filter(p=>p.length>0).pop()??"unknown error"}`);let f=t.parseBundle((0,hB.bundleFromJSON)(d.bundle));f.tlogID&&j(`Uploaded to Rekor transparency log: ${_A}?logIndex=${f.tlogID}`),j(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...f,imageName:o}})}}}catch(s){throw new Error(`Signing BuildKit attestation manifests failed: ${s.message}`)}return r}async verifySignedManifests(e,r){let s={};for(let[i,n]of Object.entries(e))await Vh(`Verifying signature of ${i}`,async()=>{let o=await this.verifyImageAttestation(i,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!n.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});j(`Signature manifest verified: https://oci.dag.dev/?image=${n.imageName}@${o.signatureManifestDigest}`),s[i]=o});return s}async verifyImageAttestations(e,r){let s={},i=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(i.length===0)throw new Error(`No attestation manifests found for ${e}`);let n=e.split(":",1)[0];for(let o of i){let a=`${n}@${o}`,c=await this.verifyImageAttestation(a,r);j(`Signature manifest verified: https://oci.dag.dev/?image=${n}@${c.signatureManifestDigest}`),s[a]=c}return s}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let s=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&s.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){j(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);let o=await ke.getExecOutput(this.cosign.binPath,["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(o.exitCode!==0)throw new Error(`Cosign verify command failed with: ${o.stderr.trim().split(/\r?\n/).filter(c=>c.length>0).pop()??"unknown error"}`);let a=mh.parseCommandOutput(o.stderr.trim());return{cosignArgs:s,signatureManifestDigest:a.signatureManifestDigest}}let i=r.retryLimit??15,n;j(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);for(let o=0;o<i;o++){let a=await ke.getExecOutput(this.cosign.binPath,["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),c=mh.parseCommandOutput(a.stderr.trim());if(a.exitCode===0)return{cosignArgs:s,signatureManifestDigest:c.signatureManifestDigest};if(c.errors&&c.errors.length>0){let l=c.errors.map(u=>`- [${u.code}] ${u.message} : ${u.detail}`).join(`
`);if(n=new Error(`Cosign verify command failed with errors:
${l}`),c.errors.some(u=>u.code==="MANIFEST_UNKNOWN"))j(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${o+1}/${i}...
${l}`),await new Promise(u=>setTimeout(u,Math.pow(2,o)*100));else throw n}else throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(l=>l.length>0).pop()??"unknown error"}`)}throw n}async signProvenanceBlobs(e){let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let s=this.signingEndpoints(e.noTransparencyLog);j(`Using Sigstore signing endpoint: ${s.fulcioURL}`);let i=t.getProvenanceBlobs(e);for(let n of Object.keys(i))await Vh(`Signing ${n}`,async()=>{let o=i[n],a=rf.default.join(rf.default.dirname(n),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){Ro(`No subjects found in provenance ${n}, skip signing.`);return}let l=await t.signPayload({data:o,type:D1e},s),u=t.parseBundle(l);j("Provenance blob signed for:");for(let h of c){let[d,f]=Object.entries(h.digest)[0]||[];j(` - ${h.name} (${d}:${f})`)}u.tlogID&&j(`Attestation signature uploaded to Rekor transparency log: ${_A}?logIndex=${u.tlogID}`),j(`Writing Sigstore bundle to: ${a}`),Ml.default.writeFileSync(a,JSON.stringify(u.payload,null,2),{encoding:"utf-8"}),r[n]={...u,bundlePath:a,subjects:c}})}catch(s){throw new Error(`Signing BuildKit provenance blobs failed: ${s.message}`)}return r}async verifySignedArtifacts(e,r){let s={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[i,n]of Object.entries(e)){let o=rf.default.dirname(i);await Vh(`Verifying signature bundle ${n.bundlePath}`,async()=>{for(let a of n.subjects){let c=rf.default.join(o,a.name);j(`Verifying signed artifact ${c}`);let l=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??UQt];(r.noTransparencyLog||!n.tlogID)&&l.push("--use-signed-timestamps","--insecure-ignore-tlog");let u=await ke.getExecOutput(this.cosign.binPath,[...l,"--bundle",n.bundlePath,c],{ignoreReturnCode:!0});if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);s[c]={bundlePath:n.bundlePath,cosignArgs:l}}})}return s}async verifyArtifact(e,r,s){j("Verifying keyless verification bundle signature");let i=JSON.parse(Ml.default.readFileSync(r,"utf-8")),n=(0,hB.bundleFromJSON)(i);j("Fetching Sigstore TUF trusted root metadata");let o=await F1e.getTrustedRoot(),a=(0,DE.toTrustMaterial)(o);try{j("Verifying artifact signature");let c=(0,DE.toSignedEntity)(n,Ml.default.readFileSync(e)),l=t.parseCertificate(n),u=n.verificationMaterial.tlogEntries,h=u.length>0?u[0].logIndex:void 0;if(s?.subjectAlternativeName&&s?.subjectAlternativeName instanceof RegExp){let p=l.subjectAltName?.replace(/^uri:/i,"");if(p){if(!p.match(s.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${p}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let f=new DE.Verifier(a).verify(c,{subjectAlternativeName:s?.subjectAlternativeName&&typeof s.subjectAlternativeName=="string"?s.subjectAlternativeName:void 0,extensions:s?.issuer?{issuer:s.issuer}:void 0});return z(`Sigstore.verifyArtifact signer: ${JSON.stringify(f)}`),{payload:i,certificate:l.toString(),tlogID:h}}catch(c){throw new Error(`Failed to verify artifact signature: ${c}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),j(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:k1e,rekorURL:e?void 0:M1e,tsaServerURL:L1e}}static noTransparencyLog(e){return e??Pt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=rf.default.join(e.localExportDir,"provenance.json");if(Ml.default.existsSync(r))return{[r]:Ml.default.readFileSync(r)};let s=Ml.default.readdirSync(e.localExportDir,{withFileTypes:!0}),i=s.filter(n=>n.isDirectory());if(i.length>0&&i.length===s.length&&i.every(n=>Ml.default.existsSync(rf.default.join(e.localExportDir,n.name,"provenance.json")))){let n={};for(let o of i){let a=rf.default.join(e.localExportDir,o.name,"provenance.json");n[a]=Ml.default.readFileSync(a)}return n}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(s=>({name:s.name,digest:s.digest}))}static async signPayload(e,r,s,i){let n=[],o=new Ll.FulcioSigner({identityProvider:new Ll.CIContextProvider("sigstore"),fulcioBaseURL:r.fulcioURL,timeout:s,retry:i});return r.rekorURL&&n.push(new Ll.RekorWitness({rekorBaseURL:r.rekorURL,fetchOnConflict:!0,timeout:s,retry:i})),r.tsaServerURL&&n.push(new Ll.TSAWitness({tsaBaseURL:r.tsaServerURL,timeout:s,retry:i})),new Ll.DSSEBundleBuilder({signer:o,witnesses:n}).create(e)}static parseBundle(e){let r=t.parseCertificate(e),s=e.verificationMaterial.tlogEntries,i=s.length>0?s[0].logIndex:void 0;return{payload:(0,hB.bundleToJSON)(e),certificate:r.toString(),tlogID:i}} Line truncated
`)){let[l,...u]=c.split(":"),h=l.toLowerCase(),d=u.map(f=>f.trim()).join(":");if(l.length!=0)switch(!0){case h=="name":s=void 0,r.name==null?r.name=d:(n&&i.gcPolicy&&(i.gcPolicy.push(n),n=void 0),i.name&&r.nodes.push(i),i={name:d});break;case h=="driver":s=void 0,r.driver=d;break;case h=="last activity":s=void 0,r.lastActivity=new Date(d);break;case h=="endpoint":s=void 0,i.endpoint=d;break;case h=="driver options":s=void 0,i["driver-opts"]=(d.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(f=>f.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case h=="status":s=void 0,i.status=d;break;case h=="buildkit daemon flags":case h=="flags":s=void 0,i["buildkitd-flags"]=d;break;case h=="buildkit version":case h=="buildkit":s=void 0,i.buildkit=d;break;case h=="platforms":{if(s=void 0,!d)break;let f=[];if(d.includes("*"))for(let p of d.split(", "))p.includes("*")&&f.push(p.replace(/\*/g,""));else f=d.split(", ");i.platforms=f.join(",");break}case h=="features":s="features",i.features={};break;case h=="labels":s="label",i.labels={};break;case h=="devices":s="devices",i.devices=i.devices||[];break;case h.startsWith("gc policy rule#"):s="gcpolicy",i.gcPolicy&&n&&(i.gcPolicy.push(n),n=void 0);break;case h.startsWith("file#"):s="file",a=l.split("#")[1],i.files=i.files||{},i.files[a]="";break;default:switch(s&&s!=="devices"&&i.devices&&o&&(i.devices.push(o),o=void 0),s||""){case"features":{i.features=i.features||{},i.features[l.trim()]=!!d;break}case"label":{i.labels=i.labels||{},i.labels[l.trim()]=d;break}case"devices":{switch(h.trim()){case"name":{i.devices&&o&&i.devices.push(o),o={},o.name=d;break}case"on-demand":{o&&d&&(o.onDemand=d=="true");break}case"automatically allowed":{o&&d&&(o.autoAllow=d=="true");break}case"annotations":{o&&(o.annotations=o.annotations||{});break}default:o&&o.annotations&&(o.annotations[l.trim()]=d)}break}case"gcpolicy":{switch(i.gcPolicy=i.gcPolicy||[],n=n||{},h.trim()){case"all":{n.all=d=="true";break}case"filters":{d&&(n.filter=d.split(","));break}case"keep duration":{n.keepDuration=d;break}case"keep bytes":{n.keepBytes=d;break}case"reserved space":{n.reservedSpace=d;break}case"max used space":{n.maxUsedSpace=d;break}case"min free space":{n.minFreeSpace=d;break}}break}case"file":{a&&i.files&&(i.files[a].length>0&&(i.files[a]+=`
`),i.files[a]+=c.replace(/^\s>\s?/,""));break}}}}return o&&i.devices&&i.devices.push(o),n&&i.gcPolicy&&i.gcPolicy.push(n),i.name&&r.nodes.push(i),r}};var q1e=O(Va(),1);var dD=O(require("fs"),1);var fD=class{resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!dD.default.existsSync(e))throw new Error(`config file ${e} not found`);e=dD.default.readFileSync(e,{encoding:"utf-8"})}let s=Ct.tmpName({tmpdir:Ct.tmpDir()});return dD.default.writeFileSync(s,e),s}};var pD=class{buildx;config;constructor(e){this.config=new fD,this.buildx=e?.buildx||new zt}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){Ro(r)}return e.buildkit}async getVersionWithinImage(e){return z(`BuildKit.getVersionWithinImage nodeName: ${e}`),cs.getExecOutput(["inspect","--format","{{.Config.Image}}",`${zt.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return z(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),cs.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.exitCode==0&&s.stdout.length>0)return`${r.stdout.trim()} => ${s.stdout.trim()}`;if(s.stderr.length>0)throw new Error(r.stderr.trim());return s.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,s){s||(s=await new ME({buildx:this.buildx}).inspect(e));for(let i of s.nodes){let n=i.buildkit;if(z(`BuildKit.versionSatisfies ${n}: ${r}`),!n)try{n=await this.getVersionWithinImage(i.name||"")}catch{return z(`BuildKit.versionSatisfies ${i.name}: can't get version`),!1}if(z(`BuildKit.versionSatisfies ${i.name}: version ${n}`),s.driver=="docker"&&!n.endsWith("-moby")||!q1e.satisfies(n.replace(/-moby$/,""),r))return!1}return!0}};var AD=class t{_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await cs.isAvailable();return z(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await ke.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(s=>s.stderr.length>0&&s.exitCode!=0?(z(`Compose.isAvailable cmd err: ${s.stderr.trim()}`),!1):s.exitCode==0).catch(s=>(z(`Compose.isAvailable error: ${s}`),!1));return z(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await ke.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await ke.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var yh=O(require("fs"),1),Fl=O(require("os"),1),LE=O(require("path"),1);var gD=O(Va(),1),OW=O(require("util"),1);var mD=class t{standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);z(`Install.download version: ${s.version}`);let i=await t.getRelease(s,this.githubToken);z(`Install.download release tag name: ${i.tag_name}`);let n=await this.vspec(i.tag_name);z(`Install.download vspec: ${n}`);let o=gD.clean(n)||"";if(!gD.valid(o))throw new Error(`Invalid Compose version "${n}".`);let a=new Cs({htcName:s.key!="official"?`compose-dl-bin-${s.key}`:"compose-dl-bin",htcVersion:n,baseCacheDir:LE.default.join(Fl.default.homedir(),".bin","docker-compose"),cacheFile:Fl.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),c=await a.find();if(c)return j(`Compose binary found in ${c}`),c;let l=OW.format(s.downloadURL,n,this.filename());j(`Downloading ${l}`);let u=await Qo(l,void 0,this.githubToken);z(`Install.download htcDownloadPath: ${u}`);let h=await a.save(u);return j(`Cached to ${h}`),h}async installStandalone(e,r){j("Standalone mode"),r=r||Ct.tmpDir();let s=LE.default.join(r,"compose-bin-standalone");yh.default.existsSync(s)||yh.default.mkdirSync(s,{recursive:!0});let i=Fl.default.platform()=="win32"?"compose.exe":"compose",n=LE.default.join(s,i);return yh.default.copyFileSync(e,n),j("Fixing perms"),yh.default.chmodSync(n,"0755"),Ac(s),j("Added Compose to PATH"),j(`Binary path: ${n}`),n}async installPlugin(e,r){j("Docker plugin mode"),r=r||cs.configDir;let s=LE.default.join(r,"cli-plugins");yh.default.existsSync(s)||yh.default.mkdirSync(s,{recursive:!0});let i=Fl.default.platform()=="win32"?"docker-compose.exe":"docker-compose",n=LE.default.join(s,i);return yh.default. Line truncated
${p}`)}else throw new Error(`Cosign sign command failed with: ${u.stderr.trim().split(/\r?\n/).filter(p=>p.length>0).pop()??"unknown error"}`);let A=t.parseBundle((0,Jp.bundleFromJSON)(d.bundle));A.tlogID&&S(`Uploaded to Rekor transparency log: ${Vu}?logIndex=${A.tlogID}`),S(`Signature manifest pushed: https://oci.dag.dev/?referrers=${c}`),r[c]={...A,imageName:n}})}}}catch(s){throw new Error(`Signing BuildKit attestation manifests failed: ${s.message}`)}return r}async verifySignedManifests(e,r){let s={};for(let[n,i]of Object.entries(e))await Ms(`Verifying signature of ${n}`,async()=>{let a=await this.verifyImageAttestation(n,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!i.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});S(`Signature manifest verified: https://oci.dag.dev/?image=${i.imageName}@${a.signatureManifestDigest}`),s[n]=a});return s}async verifyImageAttestations(e,r){let s={},n=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(n.length===0)throw new Error(`No attestation manifests found for ${e}`);let i=e.split(":",1)[0];for(let a of n){let c=`${i}@${a}`,l=await this.verifyImageAttestation(c,r);S(`Signature manifest verified: https://oci.dag.dev/?image=${i}@${l.signatureManifestDigest}`),s[c]=l}return s}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let s=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&s.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){S(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);let a=await re.getExecOutput(this.cosign.binPath,["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(l=>l.length>0).pop()??"unknown error"}`);let c=Do.parseCommandOutput(a.stderr.trim());return{cosignArgs:s,signatureManifestDigest:c.signatureManifestDigest}}let n=r.retryLimit??15,i;S(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);for(let a=0;a<n;a++){let c=await re.getExecOutput(this.cosign.binPath,["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),l=Do.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:s,signatureManifestDigest:l.signatureManifestDigest};if(l.errors&&l.errors.length>0){let u=l.errors.map(d=>`- [${d.code}] ${d.message} : ${d.detail}`).join(`
`);if(i=new Error(`Cosign verify command failed with errors:
${u}`),l.errors.some(d=>d.code==="MANIFEST_UNKNOWN"))S(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${n}...
${u}`),await new Promise(d=>setTimeout(d,Math.pow(2,a)*100));else throw i}else throw new Error(`Cosign verify command failed with: ${c.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`)}throw i}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let s=await this.cosignSigningConfigArgs(e.noTransparencyLog),n=t.getProvenanceBlobs(e);for(let i of Object.keys(n))await Ms(`Signing ${i}`,async()=>{let a=n[i],c=Mo.default.join(Mo.default.dirname(i),`${e.name??"provenance"}.sigstore.json`),l=t.getProvenanceSubjects(a);if(l.length===0){et(`No subjects found in provenance ${i}, skip signing.`);return}let u=Mo.default.join(Mo.default.dirname(i),l[0].name),d=["attest-blob","--yes","--oidc-provider","github-actions","--new-bundle-format","--statement",i,"--type",Dce,"--bundle",c,...s];S(`[command]${this.cosign.binPath} ${[...d,u].join(" ")}`);let A=await re.getExecOutput(this.cosign.binPath,["--verbose",...d,u],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),p=Do.parseCommandOutput(A.stderr.trim());if(A.exitCode!=0)if(p.errors&&p.errors.length>0){let m=p.errors.map(g=>`- [${g.code}] ${g.message} : ${g.detail}`).join(`
`);throw new Error(`Cosign attest-blob command failed with errors:
${m}`)}else throw new Error(`Cosign attest-blob command failed with: ${A.stderr.trim().split(/\r?\n/).filter(m=>m.length>0).pop()??"unknown error"}`);let f=t.parseBundle((0,Jp.bundleFromJSON)(JSON.parse(Oo.default.readFileSync(c,{encoding:"utf-8"}))));S("Provenance blob signed for:");for(let m of l){let[g,y]=Object.entries(m.digest)[0]||[];S(` - ${m.name} (${g}:${y})`)}f.tlogID&&S(`Attestation signature uploaded to Rekor transparency log: ${Vu}?logIndex=${f.tlogID}`),S(`Sigstore bundle written to: ${c}`),r[i]={...f,bundlePath:c,subjects:l}})}catch(s){throw new Error(`Signing BuildKit provenance blobs failed: ${s.message}`)}return r}async verifySignedArtifacts(e,r){let s={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[n,i]of Object.entries(e)){let a=Mo.default.dirname(n);await Ms(`Verifying signature bundle ${i.bundlePath}`,async()=>{for(let c of i.subjects){let l=Mo.default.join(a,c.name);S(`Verifying signed artifact ${l}`);let u=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??Dce];(r.noTransparencyLog||!i.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let d=await re.getExecOutput(this.cosign.binPath,[...u,"--bundle",i.bundlePath,l],{ignoreReturnCode:!0});if(d.stderr.length>0&&d.exitCode!=0)throw new Error(d.stderr);s[l]={bundlePath:i.bundlePath,cosignArgs:u}}})}return s}async verifyArtifact(e,r,s){S("Verifying keyless verification bundle signature");let n=JSON.parse(Oo.default.readFileSync(r,"utf-8")),i=(0,Jp.bundleFromJSON)(n);S("Fetching Sigstore TUF trusted root metadata");let a=await Mce.getTrustedRoot(),c=(0,Yp.toTrustMaterial)(a);try{S("Verifying artifact signature");let l=(0,Yp.toSignedEntity)(i,Oo.default.readFileSync(e)),u=t.parseCertificate(i),d=i.verificationMaterial.tlogEntries,A=d.length>0?d[0].logIndex:void 0;if(s?.subjectAlternativeName&&s?.subjectAlternativeName instanceof RegExp){let m=u.subjectAltName?.replace(/^uri:/i,"");if(m){if(!m.match(s.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${m}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let f=new Yp.Verifier(c).verify(l,{subjectAlternativeName:s?.subjectAlternativeName&&typeof s.subjectAlternativeName=="string"?s.subjectAlternativeName:void 0,extensions:s?.issuer?{issuer:s.issuer}:void 0});return b(`Sigstore.verifyArtifact signer: ${JSON.stringify(f)}`),{payload:n,certificate:u.toString(),tlogID:A}}catch(l){throw new Error(`Failed to verify artifact signature: ${l}`)}}static noTransparencyLog(e){return e??He.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],s=t.noTransparencyLog(e);return S(`Upload to transparency log: ${s?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")?await Ms("Creating Sigstore protobuf signing config",async()=>{let n=ve.tmpName({template:"signing-config-XXXXXX.json",tmpdir:ve.tmpDir()}),i=["signing-config","create","--with-default-services=true",`--out=${n}`];s&&i.push("--no-default-rekor=true"),await re.exec(this.cosign.binPath,i,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),S(JSON.stringify(JSON.parse(Oo.default.readFileSync(n,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${n}`)}):(r.push("--use-signing-config"),s&&r.push("--tlog-upload=false")),r}static getProvenanceBlobs(e){let r=Mo.default.join(e.localExportDir,"provenance.json");if(Oo.default.existsSync(r))return{[r]:Oo.default.readFileSync(r)};let s=Oo.default.readdirSync(e.localExportDir,{withFileTypes:!0}),n=s.filter(i=>i.isDirectory());if(n.length>0&&n.length===s.length&&n.every(i=>Oo.default.existsSync(Mo.default.join(e.localExportDir,i.name,"provenance.json")))){let i={};for(let a of n){let c=Mo.default.join(e.localExportDir,a.name,"provenance.json");i[c]=Oo.default.readFileSync(c)}return i}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(s=>({name:s.name,digest:s.digest}))}static parseBundle(e){let r=t.parseCertificate(e),s=e.verificationMaterial.tlogEntries,n=s.length>0?s[0].logIndex:void 0;return{payload:(0,Jp.bundleToJSON)(e),certificate:r.toString(),tlogID:n}}static parseCertificate(e){let r;switch(e.verificationMaterial.content.$case){case"x509CertificateChain":r=e.verificationMaterial.content.x509CertificateChain.certificates[0].rawBytes;break;case"certificate":r=e.verificationMaterial.content.certificate.rawBytes;break;default:throw new Error("Bundle must contain an x509 certificate")}return new Oce.X509Certificate(r)}};var cN=class t{static{o(this,"Install")}standalone;githubToken;sigstore;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.sigstore=e?.sigstore||new Kc} Line truncated
`)){let[u,...d]=l.split(":"),A=u.toLowerCase(),p=d.map(f=>f.trim()).join(":");if(u.length!=0)switch(!0){case A=="name":s=void 0,r.name==null?r.name=p:(i&&n.gcPolicy&&(n.gcPolicy.push(i),i=void 0),n.name&&r.nodes.push(n),n={name:p});break;case A=="driver":s=void 0,r.driver=p;break;case A=="last activity":s=void 0,r.lastActivity=new Date(p);break;case A=="endpoint":s=void 0,n.endpoint=p;break;case A=="driver options":s=void 0,n["driver-opts"]=(p.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(f=>f.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case A=="status":s=void 0,n.status=p;break;case A=="buildkit daemon flags":case A=="flags":s=void 0,n["buildkitd-flags"]=p;break;case A=="buildkit version":case A=="buildkit":s=void 0,n.buildkit=p;break;case A=="platforms":{if(s=void 0,!p)break;let f=[];if(p.includes("*"))for(let m of p.split(", "))m.includes("*")&&f.push(m.replace(/\*/g,""));else f=p.split(", ");n.platforms=f.join(",");break}case A=="features":s="features",n.features={};break;case A=="labels":s="label",n.labels={};break;case A=="devices":s="devices",n.devices=n.devices||[];break;case A.startsWith("gc policy rule#"):s="gcpolicy",n.gcPolicy&&i&&(n.gcPolicy.push(i),i=void 0);break;case A.startsWith("file#"):s="file",c=u.split("#")[1],n.files=n.files||{},n.files[c]="";break;default:switch(s&&s!=="devices"&&n.devices&&a&&(n.devices.push(a),a=void 0),s||""){case"features":{n.features=n.features||{},n.features[u.trim()]=!!p;break}case"label":{n.labels=n.labels||{},n.labels[u.trim()]=p;break}case"devices":{switch(A.trim()){case"name":{n.devices&&a&&n.devices.push(a),a={},a.name=p;break}case"on-demand":{a&&p&&(a.onDemand=p=="true");break}case"automatically allowed":{a&&p&&(a.autoAllow=p=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[u.trim()]=p)}break}case"gcpolicy":{switch(n.gcPolicy=n.gcPolicy||[],i=i||{},A.trim()){case"all":{i.all=p=="true";break}case"filters":{p&&(i.filter=p.split(","));break}case"keep duration":{i.keepDuration=p;break}case"keep bytes":{i.keepBytes=p;break}case"reserved space":{i.reservedSpace=p;break}case"max used space":{i.maxUsedSpace=p;break}case"min free space":{i.minFreeSpace=p;break}}break}case"file":{c&&n.files&&(n.files[c].length>0&&(n.files[c]+=`
`),n.files[c]+=l.replace(/^\s>\s?/,""));break}}}}return a&&n.devices&&n.devices.push(a),i&&n.gcPolicy&&n.gcPolicy.push(i),n.name&&r.nodes.push(n),r}};var Lce=w(hi(),1);var lN=w(require("fs"),1);var uN=class{static{o(this,"Config")}resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!lN.default.existsSync(e))throw new Error(`config file ${e} not found`);e=lN.default.readFileSync(e,{encoding:"utf-8"})}let s=ve.tmpName({tmpdir:ve.tmpDir()});return lN.default.writeFileSync(s,e),s}};var dN=class{static{o(this,"BuildKit")}buildx;config;constructor(e){this.config=new uN,this.buildx=e?.buildx||new Ke}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){et(r)}return e.buildkit}async getVersionWithinImage(e){return b(`BuildKit.getVersionWithinImage nodeName: ${e}`),tr.getExecOutput(["inspect","--format","{{.Config.Image}}",`${Ke.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return b(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),tr.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.exitCode==0&&s.stdout.length>0)return`${r.stdout.trim()} => ${s.stdout.trim()}`;if(s.stderr.length>0)throw new Error(r.stderr.trim());return s.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,s){s||(s=await new Wp({buildx:this.buildx}).inspect(e));for(let n of s.nodes){let i=n.buildkit;if(b(`BuildKit.versionSatisfies ${i}: ${r}`),!i)try{i=await this.getVersionWithinImage(n.name||"")}catch{return b(`BuildKit.versionSatisfies ${n.name}: can't get version`),!1}if(b(`BuildKit.versionSatisfies ${n.name}: version ${i}`),s.driver=="docker"&&!i.endsWith("-moby")||!Lce.satisfies(i.replace(/-moby$/,""),r))return!1}return!0}};var AN=class t{static{o(this,"Compose")}_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await tr.isAvailable();return b(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await re.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(s=>s.stderr.length>0&&s.exitCode!=0?(b(`Compose.isAvailable cmd err: ${s.stderr.trim()}`),!1):s.exitCode==0).catch(s=>(b(`Compose.isAvailable error: ${s}`),!1));return b(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await re.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await re.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var Oa=w(require("fs"),1),Fo=w(require("os"),1),jp=w(require("path"),1);var fN=w(hi(),1),J2=w(require("util"),1);var pN=class t{static{o(this,"Install")}standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);b(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);b(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);b(`Install.download vspec: ${i}`);let a=fN.clean(i)||"";if(!fN.valid(a))throw new Error(`Invalid Compose version "${i}".`);let c=new dr({htcName:s.key!="official"?`compose-dl-bin-${s.key}`:"compose-dl-bin",htcVersion:i,baseCacheDir:jp.default.join(Fo.default.homedir(),".bin","docker-compose"),cacheFile:Fo.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),l=await c.find();if(l)return S(`Compose binary found in ${l}`),l;let u=J2.format(s.downloadURL,i,this.filename());S(`Downloading ${u}`);let d=await fn(u,void 0,this.githubToken);b(`Install.download htcDownloadPath: ${d}`);let A=await c.save(d);return S(`Cached to ${A}`),A}async installStandalone(e,r){S("Standalone mode"),r=r||ve.tmpDir();let s=jp.default.join(r,"compose-bin-standalone");Oa.default.existsSync(s)||Oa.default.mkdirSync(s,{recursive:!0});let n=Fo.default.platform()=="win32"?"compose.exe":"compose",i=jp.default.join(s,n);return Oa.default.copyFileSync(e,i),S("Fixing perms"),Oa.default.chmodSync(i,"0755"),ki(s),S("Added Compose to PATH"),S(`Binary path: ${i}`),i}async installPlugin(e,r){S("Docker plugin mode"),r=r||tr.configDir;let s=jp.default.join(r,"cli-plugins");Oa.default.existsSync(s)||Oa.default.mkdirSync(s,{recursive:!0});let n=Fo.default Line truncated
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.24"
@@ -222,7 +198,7 @@ EOT
FROM scratch
COPY --from=builder /out /
`;var yD=class t{githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new zt,this.sigstore=e?.sigstore||new sf}async download(e){let r=await t.getDownloadVersion(e.version);z(`Install.download version: ${r.version}`);let s=await t.getRelease(r,this.githubToken);z(`Install.download release tag name: ${s.tag_name}`);let i=await this.vspec(s.tag_name);z(`Install.download vspec: ${i}`);let n=FE.clean(i)||"";if(!FE.valid(n))throw new Error(`Invalid Cosign version "${i}".`);let o=new Cs({htcName:"cosign-dl-bin",htcVersion:i,baseCacheDir:UE.default.join(tc.default.homedir(),".bin"),cacheFile:tc.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),a=await o.find();if(a)return j(`Cosign binary found in ${a}`),a;let c=DW.format(r.downloadURL,i,this.filename());j(`Downloading ${c}`);let l=await Qo(c,void 0,this.githubToken);z(`Install.download htcDownloadPath: ${l}`),e.verifySignature&&FE.satisfies(i,">=3.0.1")&&await this.verifySignature(l,c);let u=await o.save(l,e.skipState);return j(`Cached to ${u}`),u}async build(e,r,s){let i=await this.vspec(e);z(`Install.build vspec: ${i}`);let n=new Cs({htcName:"cosign-build-bin",htcVersion:i,baseCacheDir:UE.default.join(tc.default.homedir(),".bin"),cacheFile:tc.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),o=await n.find();if(o)return j(`Cosign binary found in ${o}`),o;let a=UE.default.join(Ct.tmpDir(),"cosign-build-cache"),c=await this.buildCommand(e,a),l=await ke.getExecOutput(c.command,c.args,{ignoreReturnCode:!0,input:Buffer.from(G1e)}).then(h=>{if(h.stderr.length>0&&h.exitCode!=0)throw new Error(`build failed with: ${h.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${a}/cosign`}),u=await n.save(l,s);return j(`Cached to ${u}`),u}async install(e,r){r=r||Ct.tmpDir();let s=UE.default.join(r,"cosign-bin");dB.default.existsSync(s)||dB.default.mkdirSync(s,{recursive:!0});let i=tc.default.platform()=="win32"?"cosign.exe":"cosign",n=UE.default.join(s,i);return dB.default.copyFileSync(e,n),j("Fixing perms"),dB.default.chmodSync(n,"0755"),Ac(s),j("Added Cosign to PATH"),j(`Binary path: ${n}`),n}async buildCommand(e,r){let s=await new zt({standalone:!0}).isAvailable(),i=await new zt({standalone:!1}).isAvailable(),n=!1;if(await this.buildx.isStandalone()&&s)z("Install.buildCommand: Buildx standalone found, build with it"),n=!0;else if(!await this.buildx.isStandalone()&&i)z("Install.buildCommand: Buildx plugin found, build with it"),n=!1;else if(s)z("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),n=!0;else if(i)z("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),n=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let o=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&o.push("--secret","id=GIT_AUTH_TOKEN"),o.push("-f-",e),await new zt({standalone:n}).getCommand(o)}async verifySignature(e,r){let s=`${r}.sigstore.json`;j(`Downloading keyless verification bundle at ${s}`);let i=await Qo(s,void 0,this.githubToken);z(`Install.verifySignature bundlePath: ${i}`);let n=await this.sigstore.verifyArtifact(e,i,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});j(`Cosign binary signature verified! ${n.tlogID?`${_A}?logIndex=${n.tlogID}`:""}`)}filename(){let e;switch(tc.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=tc.default.arch();break}}let r=tc.default.platform()=="win32"?"windows":tc.default.platform(),s=tc.default.platform()=="win32"?".exe":"";return DW.format("cosign-%s-%s%s",r,e,s)}async vspec(e){if(!Xt.isValidRef(e)){let l=e.replace(/^v+|v+$/g,"");return j(`Use ${l} version spec cache key for ${e}`),l}let[r,s]=e.split("#");s.length==0&&(s="master");let i;s.match(/^[0-9a-fA-F]{40}$/)?i=s:i=await sy.remoteSha(r,s,process.env.GIT_AUTH_TOKEN);let[n,o]=r.substring(19).split("/"),a=`${n}/${Xt.trimSuffix(o,".git")}/${i}`,c=Xt.hash(a);return j(`Use ${c} version spec cache key for ${a}`),c}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let i=await new Pt({token:r}).releases("Cosign",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return i[e.version]}};var H1e=O(Va(),1);var ED=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await ke.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCod Line truncated
`;var hN=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new Ke,this.sigstore=e?.sigstore||new Kc}async download(e){let r=await t.getDownloadVersion(e.version);b(`Install.download version: ${r.version}`);let s=await t.getRelease(r,this.githubToken);b(`Install.download release tag name: ${s.tag_name}`);let n=await this.vspec(s.tag_name);b(`Install.download vspec: ${n}`);let i=Xp.clean(n)||"";if(!Xp.valid(i))throw new Error(`Invalid Cosign version "${n}".`);let a=new dr({htcName:"cosign-dl-bin",htcVersion:n,baseCacheDir:Kp.default.join(Ei.default.homedir(),".bin"),cacheFile:Ei.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return S(`Cosign binary found in ${c}`),c;let l=Y2.format(r.downloadURL,n,this.filename());S(`Downloading ${l}`);let u=await fn(l,void 0,this.githubToken);b(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&Xp.satisfies(n,">=3.0.1")&&await this.verifySignature(u,l);let d=await a.save(u,e.skipState);return S(`Cached to ${d}`),d}async build(e,r,s){let n=await this.vspec(e);b(`Install.build vspec: ${n}`);let i=new dr({htcName:"cosign-build-bin",htcVersion:n,baseCacheDir:Kp.default.join(Ei.default.homedir(),".bin"),cacheFile:Ei.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await i.find();if(a)return S(`Cosign binary found in ${a}`),a;let c=Kp.default.join(ve.tmpDir(),"cosign-build-cache"),l=await this.buildCommand(e,c),u=await re.getExecOutput(l.command,l.args,{ignoreReturnCode:!0,input:Buffer.from(Fce)}).then(A=>{if(A.stderr.length>0&&A.exitCode!=0)throw new Error(`build failed with: ${A.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${c}/cosign`}),d=await i.save(u,s);return S(`Cached to ${d}`),d}async install(e,r){r=r||ve.tmpDir();let s=Kp.default.join(r,"cosign-bin");eE.default.existsSync(s)||eE.default.mkdirSync(s,{recursive:!0});let n=Ei.default.platform()=="win32"?"cosign.exe":"cosign",i=Kp.default.join(s,n);return eE.default.copyFileSync(e,i),S("Fixing perms"),eE.default.chmodSync(i,"0755"),ki(s),S("Added Cosign to PATH"),S(`Binary path: ${i}`),i}async buildCommand(e,r){let s=await new Ke({standalone:!0}).isAvailable(),n=await new Ke({standalone:!1}).isAvailable(),i=!1;if(await this.buildx.isStandalone()&&s)b("Install.buildCommand: Buildx standalone found, build with it"),i=!0;else if(!await this.buildx.isStandalone()&&n)b("Install.buildCommand: Buildx plugin found, build with it"),i=!1;else if(s)b("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),i=!0;else if(n)b("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),i=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new Ke({standalone:i}).getCommand(a)}async verifySignature(e,r){let s=`${r}.sigstore.json`;S(`Downloading keyless verification bundle at ${s}`);let n=await fn(s,void 0,this.githubToken);b(`Install.verifySignature bundlePath: ${n}`);let i=await this.sigstore.verifyArtifact(e,n,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});S(`Cosign binary signature verified! ${i.tlogID?`${Vu}?logIndex=${i.tlogID}`:""}`)}filename(){let e;switch(Ei.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Ei.default.arch();break}}let r=Ei.default.platform()=="win32"?"windows":Ei.default.platform(),s=Ei.default.platform()=="win32"?".exe":"";return Y2.format("cosign-%s-%s%s",r,e,s)}async vspec(e){if(!nt.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return S(`Use ${u} version spec cache key for ${e}`),u}let[r,s]=e.split("#");s.length==0&&(s="master");let n;s.match(/^[0-9a-fA-F]{40}$/)?n=s:n=await hp.remoteSha(r,s,process.env.GIT_AUTH_TOKEN);let[i,a]=r.substring(19).split("/"),c=`${i}/${nt.trimSuffix(a,".git")}/${n}`,l=nt.hash(c);return S(`Use ${l} version spec cache key for ${c}`),l}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let n=await new He({token:r}).releases("Cosign",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return n[e.version]}};var Uce=w(hi(),1);var mN=class{static{o(this,"Regctl")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await re.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,sil Line truncated
/*! Bundled license information:
undici/lib/web/fetch/body.js:
@@ -240,44 +216,6 @@ tmp/lib/tmp.js:
* MIT Licensed
*)
negotiator/index.js:
(*!
* negotiator
* Copyright(c) 2012 Federico Romero
* Copyright(c) 2012-2014 Isaac Z. Schlueter
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
imurmurhash/imurmurhash.js:
(**
* @preserve
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
*
* @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
* @see http://github.com/homebrewing/brauhaus-diff
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
* @see http://github.com/garycourt/murmurhash-js
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
* @see http://sites.google.com/site/murmurhash/
*)
make-fetch-happen/lib/fetch.js:
make-fetch-happen/lib/fetch.js:
(**
* @license
* Copyright (c) 2010-2012 Mikeal Rogers
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an "AS
* IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*)
@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 *)
Generated Vendored
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "ioBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,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,SAAULine 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
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "ipBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,IAAA,gBAMT,SAASC,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,IAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,GAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,IAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
}
Generated Vendored
+16 -664
View File
@@ -3,11 +3,10 @@ https://www.npmjs.com/package/generate-license-file
The following npm packages may be included in this product:
- @sigstore/bundle@4.0.0
- @sigstore/core@3.2.1
- @sigstore/bundle@5.0.0
- @sigstore/core@4.0.1
- @sigstore/protobuf-specs@0.5.0
- @sigstore/sign@4.1.1
- @sigstore/tuf@4.0.2
- @sigstore/tuf@5.0.0
These packages each contain the following license:
@@ -217,7 +216,7 @@ Apache License
The following npm package may be included in this product:
- @docker/actions-toolkit@0.91.0
- @docker/actions-toolkit@0.92.0
This package contains the following license:
@@ -1793,7 +1792,7 @@ SOFTWARE.
The following npm package may be included in this product:
- js-yaml@4.1.1
- js-yaml@5.2.0
This package contains the following license:
@@ -1821,46 +1820,11 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- negotiator@1.0.0
This package contains the following license:
(The MIT License)
Copyright (c) 2012-2014 Federico Romero
Copyright (c) 2012-2014 Isaac Z. Schlueter
Copyright (c) 2014-2015 Douglas Christopher Wilson
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm packages may be included in this product:
- agent-base@7.1.1
- agent-base@7.1.4
- https-proxy-agent@7.0.4
- https-proxy-agent@7.0.6
- socks-proxy-agent@8.0.3
These packages each contain the following license:
@@ -2061,10 +2025,8 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH RE
The following npm packages may be included in this product:
- lru-cache@11.2.6
- minipass@7.1.3
- path-scurry@1.11.1
- path-scurry@2.0.2
These packages each contain the following license:
@@ -2129,7 +2091,7 @@ software or this license, under any kind of legal claim.***
The following npm packages may be included in this product:
- jackspeak@3.4.3
- minimatch@10.2.4
- minimatch@10.2.5
These packages each contain the following license:
@@ -2237,35 +2199,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
-----------
The following npm package may be included in this product:
- @npmcli/fs@5.0.0
This package contains the following license:
<!-- This file is automatically added by @npmcli/template-oss. Do not edit. -->
ISC License
Copyright npm, Inc.
Permission to use, copy, modify, and/or distribute this
software for any purpose with or without fee is hereby
granted, provided that the above copyright notice and this
permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND NPM DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO
EVENT SHALL NPM BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- argparse@2.0.1
@@ -2561,12 +2494,11 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm packages may be included in this product:
The following npm package may be included in this product:
- glob@13.0.6
- package-json-from-dist@1.0.1
These packages each contain the following license:
This package contains the following license:
All packages under `src/` are licensed according to the terms in
their respective `LICENSE` or `LICENSE.md` files.
@@ -2700,7 +2632,7 @@ END OF TERMS AND CONDITIONS
The following npm package may be included in this product:
- @sigstore/verify@3.1.1
- @sigstore/verify@4.1.0
This package contains the following license:
@@ -2708,39 +2640,6 @@ Apache-2.0
-----------
The following npm package may be included in this product:
- sprintf-js@1.1.3
This package contains the following license:
Copyright (c) 2007-present, Alexandru Mărășteanu <hello@alexei.ro>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of this software nor the names of its contributors may be
used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-----------
The following npm package may be included in this product:
- async@3.2.5
@@ -2769,63 +2668,6 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- iconv-lite@0.7.2
This package contains the following license:
Copyright (c) 2011 Alexander Shtuchkin
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- ip-address@9.0.5
This package contains the following license:
Copyright (C) 2011 by Beau Gunderson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------
The following npm package may be included in this product:
- @gar/promise-retry@1.0.3
@@ -3037,34 +2879,6 @@ OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- @gar/promise-retry@1.0.2
This package contains the following license:
Copyright (c) 2014 IndigoUnited
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------
The following npm package may be included in this product:
- archiver-utils@5.0.2
@@ -3311,24 +3125,6 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- http-cache-semantics@4.1.1
This package contains the following license:
Copyright 2016-2018 Kornel Lesiński
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-----------
The following npm packages may be included in this product:
- emoji-regex@8.0.0
@@ -3388,20 +3184,6 @@ IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- unique-filename@5.0.0
This package contains the following license:
Copyright npm, Inc
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- lodash@4.18.1
@@ -3458,183 +3240,12 @@ terms above.
-----------
The following npm package may be included in this product:
- @npmcli/agent@4.0.0
This package contains the following license:
ISC
-----------
The following npm package may be included in this product:
- cacache@20.0.3
This package contains the following license:
ISC License
Copyright (c) npm, Inc.
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE COPYRIGHT HOLDER DISCLAIMS
ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm packages may be included in this product:
- make-fetch-happen@15.0.4
- make-fetch-happen@15.0.6
These packages each contain the following license:
ISC License
Copyright 2017-2022 (c) npm, Inc.
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE COPYRIGHT HOLDER DISCLAIMS
ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- ssri@13.0.1
This package contains the following license:
ISC License
Copyright 2021 (c) npm, Inc.
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE COPYRIGHT HOLDER DISCLAIMS
ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- jsbn@1.1.0
This package contains the following license:
Licensing
---------
This software is covered under the following copyright:
/*
* Copyright (c) 2003-2005 Tom Wu
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
* EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
* WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
*
* IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
* INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
* RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF
* THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* In addition, the following condition applies:
*
* All redistributions must retain an intact copy of this copyright notice
* and disclaimer.
*/
Address all questions regarding this license to:
Tom Wu
tjw@cs.Stanford.EDU
-----------
The following npm package may be included in this product:
- minizlib@3.1.0
This package contains the following license:
Minizlib was created by Isaac Z. Schlueter.
It is a derivative work of the Node.js project.
"""
Copyright (c) 2017-2023 Isaac Z. Schlueter and Contributors
Copyright (c) 2017-2023 Node.js contributors. All rights reserved.
Copyright (c) 2017-2023 Joyent, Inc. and other Node contributors. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
-----------
The following npm packages may be included in this product:
- @nodable/entities@2.1.0
- binary@0.3.0
- browserify-zlib@0.1.4
- eastasianwidth@0.2.0
- imurmurhash@0.1.4
- is-gzip@1.0.0
- isarray@1.0.0
- xml-naming@0.1.0
@@ -3828,36 +3439,6 @@ SOFTWARE.
-----------
The following npm package may be included in this product:
- safer-buffer@2.1.2
This package contains the following license:
MIT License
Copyright (c) 2018 Nikita Skovoroda <chalkerx@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-----------
The following npm package may be included in this product:
- @octokit/plugin-retry@8.1.0
@@ -3921,8 +3502,8 @@ SOFTWARE.
The following npm packages may be included in this product:
- @tufjs/canonical-json@2.0.0
- @tufjs/models@4.1.0
- tuf-js@4.1.0
- @tufjs/models@5.0.0
- tuf-js@6.0.0
These packages each contain the following license:
@@ -4043,36 +3624,6 @@ SOFTWARE.
-----------
The following npm package may be included in this product:
- @npmcli/redact@4.0.0
This package contains the following license:
MIT License
Copyright (c) 2024 npm
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-----------
The following npm package may be included in this product:
- fast-xml-builder@1.2.0
@@ -4123,7 +3674,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
The following npm package may be included in this product:
- undici@6.26.0
- undici@6.27.0
This package contains the following license:
@@ -4156,7 +3707,6 @@ The following npm packages may be included in this product:
- ansi-regex@6.0.1
- ansi-styles@6.2.1
- is-stream@2.0.1
- p-map@7.0.4
- string-width@5.1.2
- strip-ansi@7.1.0
- wrap-ansi@7.0.0
@@ -4537,30 +4087,6 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- minipass@3.3.6
This package contains the following license:
The ISC License
Copyright (c) 2017-2022 npm, Inc., Isaac Z. Schlueter, and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- minipass@7.1.0
@@ -4585,54 +4111,6 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- minipass-collect@2.0.1
This package contains the following license:
The ISC License
Copyright (c) 2019-2023 Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- proc-log@6.1.0
This package contains the following license:
The ISC License
Copyright (c) GitHub, Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- inherits@2.0.4
@@ -4659,21 +4137,14 @@ PERFORMANCE OF THIS SOFTWARE.
The following npm packages may be included in this product:
- fs-minipass@3.0.3
- isexe@2.0.0
- lru-cache@6.0.0
- minimatch@3.1.5
- minipass-flush@1.0.5
- minipass-pipeline@1.2.4
- minipass-sized@2.0.0
- once@1.4.0
- semver@7.5.4
- semver@7.7.3
- semver@7.7.4
- semver@7.8.1
- semver@7.8.5
- which@2.0.2
- wrappy@1.0.2
- yallist@4.0.0
These packages each contain the following license:
@@ -4695,30 +4166,6 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- unique-slug@6.0.0
This package contains the following license:
The ISC License
Copyright npm, Inc
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- buffer-crc32@1.0.0
@@ -4813,7 +4260,7 @@ THE SOFTWARE.
The following npm package may be included in this product:
- csv-parse@6.2.1
- csv-parse@7.0.0
This package contains the following license:
@@ -4871,64 +4318,6 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- socks@2.8.3
This package contains the following license:
The MIT License (MIT)
Copyright (c) 2013 Josh Glazebrook
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- smart-buffer@4.2.0
This package contains the following license:
The MIT License (MIT)
Copyright (c) 2013-2017 Josh Glazebrook
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- base64-js@1.5.1
@@ -4961,7 +4350,7 @@ THE SOFTWARE.
The following npm package may be included in this product:
- tmp@0.2.6
- tmp@0.2.7
This package contains the following license:
@@ -5513,47 +4902,10 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- minipass-fetch@5.0.2
This package contains the following license:
The MIT License (MIT)
Copyright (c) Isaac Z. Schlueter and Contributors
Copyright (c) 2016 David Frank
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
---
Note: This is a derivative work based on "node-fetch" by David Frank,
modified and distributed under the terms of the MIT license above.
https://github.com/bitinn/node-fetch
-----------
The following npm packages may be included in this product:
- @actions/artifact@6.2.1
- @actions/cache@6.0.1
- @actions/cache@6.1.0
- @actions/core@3.0.0
- @actions/core@3.0.1
- @actions/exec@3.0.0
+4 -4
View File
@@ -4,7 +4,7 @@
"type": "module",
"main": "src/main.ts",
"scripts": {
"build": "esbuild src/main.ts --bundle --platform=node --target=node24 --format=cjs --outfile=dist/index.cjs --sourcemap --minify && yarn run license",
"build": "esbuild src/main.ts --bundle --platform=node --target=node24 --format=cjs --outfile=dist/index.cjs --sourcemap --minify --keep-names && yarn run license",
"lint": "eslint --max-warnings=0 .",
"format": "eslint --fix .",
"test": "vitest run",
@@ -21,10 +21,10 @@
],
"author": "Docker Inc.",
"license": "Apache-2.0",
"packageManager": "yarn@4.9.2",
"packageManager": "yarn@4.15.0",
"dependencies": {
"@actions/core": "^3.0.0",
"@docker/actions-toolkit": "^0.91.0"
"@actions/core": "^3.0.1",
"@docker/actions-toolkit": "^0.92.0"
},
"devDependencies": {
"@eslint/js": "^9.39.3",
+237 -231
View File
@@ -2,7 +2,7 @@
# Manual changes might be lost - proceed with caution!
__metadata:
version: 8
version: 10
cacheKey: 10
"@aashutoshrathi/word-wrap@npm:^1.2.3":
@@ -34,9 +34,9 @@ __metadata:
languageName: node
linkType: hard
"@actions/cache@npm:^6.0.1":
version: 6.0.1
resolution: "@actions/cache@npm:6.0.1"
"@actions/cache@npm:^6.1.0":
version: 6.1.0
resolution: "@actions/cache@npm:6.1.0"
dependencies:
"@actions/core": "npm:^3.0.1"
"@actions/exec": "npm:^3.0.0"
@@ -47,7 +47,7 @@ __metadata:
"@azure/storage-blob": "npm:^12.31.0"
"@protobuf-ts/runtime-rpc": "npm:^2.11.1"
semver: "npm:^7.7.4"
checksum: 10/05d2c18210fa3b583765d734e9dce6532c76d271805929608ee35f56dd3064e1d30f007400e3a275f74a7ad3e454cf0051b6eab4f15a9669dac081d811ee9d10
checksum: 10/0cd89f335c1e89f514d56060110bfddc6ab1112ec0091533364c32aec2621896112cde71cfc4089b86d00f3b5478996088e4c4e0aba0aec32aae0afeb4921b3d
languageName: node
linkType: hard
@@ -437,40 +437,32 @@ __metadata:
languageName: node
linkType: hard
"@docker/actions-toolkit@npm:^0.91.0":
version: 0.91.0
resolution: "@docker/actions-toolkit@npm:0.91.0"
"@docker/actions-toolkit@npm:^0.92.0":
version: 0.92.0
resolution: "@docker/actions-toolkit@npm:0.92.0"
dependencies:
"@actions/artifact": "npm:^6.2.1"
"@actions/cache": "npm:^6.0.1"
"@actions/cache": "npm:^6.1.0"
"@actions/core": "npm:^3.0.1"
"@actions/exec": "npm:^3.0.0"
"@actions/github": "npm:^9.1.1"
"@actions/http-client": "npm:^4.0.1"
"@actions/io": "npm:^3.0.2"
"@actions/tool-cache": "npm:^4.0.0"
"@sigstore/bundle": "npm:^4.0.0"
"@sigstore/sign": "npm:^4.1.1"
"@sigstore/tuf": "npm:^4.0.2"
"@sigstore/verify": "npm:^3.1.1"
"@sigstore/bundle": "npm:^5.0.0"
"@sigstore/tuf": "npm:^5.0.0"
"@sigstore/verify": "npm:^4.1.0"
async-retry: "npm:^1.3.3"
csv-parse: "npm:^6.2.1"
csv-parse: "npm:^7.0.0"
gunzip-maybe: "npm:^1.4.2"
handlebars: "npm:^4.7.9"
he: "npm:^1.2.0"
js-yaml: "npm:^4.1.1"
js-yaml: "npm:^5.2.0"
jwt-decode: "npm:^4.0.0"
semver: "npm:^7.8.1"
semver: "npm:^7.8.5"
tar-stream: "npm:^3.2.0"
tmp: "npm:^0.2.6"
checksum: 10/31ab0d572e716a765fa4db963a342c9c313460839f9a32c06045e07d47dda314e1dbd50f5f3bed7d4e4caa0f9e0b95d28abce3b4d59bfa54cea3f7d9408e5497
languageName: node
linkType: hard
"@esbuild/aix-ppc64@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/aix-ppc64@npm:0.27.3"
conditions: os=aix & cpu=ppc64
tmp: "npm:^0.2.7"
checksum: 10/599cea84b897069c53744a2f05371c6d9ad60da18448b4431273529b92fd2d77ddc718ee205cf0bf1da53083d412da90b1067f1e64a5fdac73fe71d486726064
languageName: node
linkType: hard
@@ -481,10 +473,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/android-arm64@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/android-arm64@npm:0.27.3"
conditions: os=android & cpu=arm64
"@esbuild/aix-ppc64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/aix-ppc64@npm:0.28.1"
conditions: os=aix & cpu=ppc64
languageName: node
linkType: hard
@@ -495,10 +487,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/android-arm@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/android-arm@npm:0.27.3"
conditions: os=android & cpu=arm
"@esbuild/android-arm64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/android-arm64@npm:0.28.1"
conditions: os=android & cpu=arm64
languageName: node
linkType: hard
@@ -509,10 +501,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/android-x64@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/android-x64@npm:0.27.3"
conditions: os=android & cpu=x64
"@esbuild/android-arm@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/android-arm@npm:0.28.1"
conditions: os=android & cpu=arm
languageName: node
linkType: hard
@@ -523,10 +515,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/darwin-arm64@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/darwin-arm64@npm:0.27.3"
conditions: os=darwin & cpu=arm64
"@esbuild/android-x64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/android-x64@npm:0.28.1"
conditions: os=android & cpu=x64
languageName: node
linkType: hard
@@ -537,10 +529,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/darwin-x64@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/darwin-x64@npm:0.27.3"
conditions: os=darwin & cpu=x64
"@esbuild/darwin-arm64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/darwin-arm64@npm:0.28.1"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard
@@ -551,10 +543,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/freebsd-arm64@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/freebsd-arm64@npm:0.27.3"
conditions: os=freebsd & cpu=arm64
"@esbuild/darwin-x64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/darwin-x64@npm:0.28.1"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard
@@ -565,10 +557,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/freebsd-x64@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/freebsd-x64@npm:0.27.3"
conditions: os=freebsd & cpu=x64
"@esbuild/freebsd-arm64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/freebsd-arm64@npm:0.28.1"
conditions: os=freebsd & cpu=arm64
languageName: node
linkType: hard
@@ -579,10 +571,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/linux-arm64@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/linux-arm64@npm:0.27.3"
conditions: os=linux & cpu=arm64
"@esbuild/freebsd-x64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/freebsd-x64@npm:0.28.1"
conditions: os=freebsd & cpu=x64
languageName: node
linkType: hard
@@ -593,10 +585,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/linux-arm@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/linux-arm@npm:0.27.3"
conditions: os=linux & cpu=arm
"@esbuild/linux-arm64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/linux-arm64@npm:0.28.1"
conditions: os=linux & cpu=arm64
languageName: node
linkType: hard
@@ -607,10 +599,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/linux-ia32@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/linux-ia32@npm:0.27.3"
conditions: os=linux & cpu=ia32
"@esbuild/linux-arm@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/linux-arm@npm:0.28.1"
conditions: os=linux & cpu=arm
languageName: node
linkType: hard
@@ -621,10 +613,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/linux-loong64@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/linux-loong64@npm:0.27.3"
conditions: os=linux & cpu=loong64
"@esbuild/linux-ia32@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/linux-ia32@npm:0.28.1"
conditions: os=linux & cpu=ia32
languageName: node
linkType: hard
@@ -635,10 +627,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/linux-mips64el@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/linux-mips64el@npm:0.27.3"
conditions: os=linux & cpu=mips64el
"@esbuild/linux-loong64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/linux-loong64@npm:0.28.1"
conditions: os=linux & cpu=loong64
languageName: node
linkType: hard
@@ -649,10 +641,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/linux-ppc64@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/linux-ppc64@npm:0.27.3"
conditions: os=linux & cpu=ppc64
"@esbuild/linux-mips64el@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/linux-mips64el@npm:0.28.1"
conditions: os=linux & cpu=mips64el
languageName: node
linkType: hard
@@ -663,10 +655,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/linux-riscv64@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/linux-riscv64@npm:0.27.3"
conditions: os=linux & cpu=riscv64
"@esbuild/linux-ppc64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/linux-ppc64@npm:0.28.1"
conditions: os=linux & cpu=ppc64
languageName: node
linkType: hard
@@ -677,10 +669,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/linux-s390x@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/linux-s390x@npm:0.27.3"
conditions: os=linux & cpu=s390x
"@esbuild/linux-riscv64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/linux-riscv64@npm:0.28.1"
conditions: os=linux & cpu=riscv64
languageName: node
linkType: hard
@@ -691,10 +683,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/linux-x64@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/linux-x64@npm:0.27.3"
conditions: os=linux & cpu=x64
"@esbuild/linux-s390x@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/linux-s390x@npm:0.28.1"
conditions: os=linux & cpu=s390x
languageName: node
linkType: hard
@@ -705,10 +697,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/netbsd-arm64@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/netbsd-arm64@npm:0.27.3"
conditions: os=netbsd & cpu=arm64
"@esbuild/linux-x64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/linux-x64@npm:0.28.1"
conditions: os=linux & cpu=x64
languageName: node
linkType: hard
@@ -719,10 +711,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/netbsd-x64@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/netbsd-x64@npm:0.27.3"
conditions: os=netbsd & cpu=x64
"@esbuild/netbsd-arm64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/netbsd-arm64@npm:0.28.1"
conditions: os=netbsd & cpu=arm64
languageName: node
linkType: hard
@@ -733,10 +725,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/openbsd-arm64@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/openbsd-arm64@npm:0.27.3"
conditions: os=openbsd & cpu=arm64
"@esbuild/netbsd-x64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/netbsd-x64@npm:0.28.1"
conditions: os=netbsd & cpu=x64
languageName: node
linkType: hard
@@ -747,10 +739,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/openbsd-x64@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/openbsd-x64@npm:0.27.3"
conditions: os=openbsd & cpu=x64
"@esbuild/openbsd-arm64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/openbsd-arm64@npm:0.28.1"
conditions: os=openbsd & cpu=arm64
languageName: node
linkType: hard
@@ -761,10 +753,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/openharmony-arm64@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/openharmony-arm64@npm:0.27.3"
conditions: os=openharmony & cpu=arm64
"@esbuild/openbsd-x64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/openbsd-x64@npm:0.28.1"
conditions: os=openbsd & cpu=x64
languageName: node
linkType: hard
@@ -775,10 +767,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/sunos-x64@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/sunos-x64@npm:0.27.3"
conditions: os=sunos & cpu=x64
"@esbuild/openharmony-arm64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/openharmony-arm64@npm:0.28.1"
conditions: os=openharmony & cpu=arm64
languageName: node
linkType: hard
@@ -789,10 +781,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/win32-arm64@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/win32-arm64@npm:0.27.3"
conditions: os=win32 & cpu=arm64
"@esbuild/sunos-x64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/sunos-x64@npm:0.28.1"
conditions: os=sunos & cpu=x64
languageName: node
linkType: hard
@@ -803,10 +795,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/win32-ia32@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/win32-ia32@npm:0.27.3"
conditions: os=win32 & cpu=ia32
"@esbuild/win32-arm64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/win32-arm64@npm:0.28.1"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard
@@ -817,10 +809,10 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/win32-x64@npm:0.27.3":
version: 0.27.3
resolution: "@esbuild/win32-x64@npm:0.27.3"
conditions: os=win32 & cpu=x64
"@esbuild/win32-ia32@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/win32-ia32@npm:0.28.1"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard
@@ -831,6 +823,13 @@ __metadata:
languageName: node
linkType: hard
"@esbuild/win32-x64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/win32-x64@npm:0.28.1"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
"@eslint-community/eslint-utils@npm:^4.8.0, @eslint-community/eslint-utils@npm:^4.9.1":
version: 4.9.1
resolution: "@eslint-community/eslint-utils@npm:4.9.1"
@@ -928,7 +927,7 @@ __metadata:
languageName: node
linkType: hard
"@gar/promise-retry@npm:^1.0.2":
"@gar/promise-retry@npm:^1.0.3":
version: 1.0.3
resolution: "@gar/promise-retry@npm:1.0.3"
checksum: 10/0d13ea3bb1025755e055648f6e290d2a7e0c87affaf552218f09f66b3fcd9ea9d5c9cc5fe2aa6e285e1530437768e40f9448fe9a86f4f3417b216dcf488d3d1a
@@ -1640,20 +1639,29 @@ __metadata:
languageName: node
linkType: hard
"@sigstore/core@npm:^3.1.0":
version: 3.1.0
resolution: "@sigstore/core@npm:3.1.0"
checksum: 10/c7a2e2d32f52494b40d9c469bc2241cc5d14d5f93fa028f099dcfe403443713f90ef3178684ee11c32e078a4b9fad79500746dfef10f10044c7fa00c909f3760
"@sigstore/bundle@npm:^5.0.0":
version: 5.0.0
resolution: "@sigstore/bundle@npm:5.0.0"
dependencies:
"@sigstore/protobuf-specs": "npm:^0.5.0"
checksum: 10/9d86dd7f8086832fff2a36ce84bd38a895fe951a8848963c1dddf1d0eb4d14394c94626fc53c4173f42be5ee8d7319b593ce3a77491e8b1497349c653decba90
languageName: node
linkType: hard
"@sigstore/core@npm:^3.2.0, @sigstore/core@npm:^3.2.1":
"@sigstore/core@npm:^3.1.0":
version: 3.2.1
resolution: "@sigstore/core@npm:3.2.1"
checksum: 10/2f6c1ced55f8ed3f7fc705a668eb95db9471511dfb1f054927822bf97a051dd62228ecf6a9f1932d240c2c4ae69a3b5066550789e5ad8f4257839a4370e5a120
languageName: node
linkType: hard
"@sigstore/core@npm:^4.0.1":
version: 4.0.1
resolution: "@sigstore/core@npm:4.0.1"
checksum: 10/2d8961554cfa7293a7a506ed950da677f707436042166848d94b5c0558dee62194df3bcbfb31648d78e00aa5f28d1813ca04cccef7fa6ed50544cfbf2feb453b
languageName: node
linkType: hard
"@sigstore/protobuf-specs@npm:^0.5.0":
version: 0.5.0
resolution: "@sigstore/protobuf-specs@npm:0.5.0"
@@ -1675,20 +1683,6 @@ __metadata:
languageName: node
linkType: hard
"@sigstore/sign@npm:^4.1.1":
version: 4.1.1
resolution: "@sigstore/sign@npm:4.1.1"
dependencies:
"@gar/promise-retry": "npm:^1.0.2"
"@sigstore/bundle": "npm:^4.0.0"
"@sigstore/core": "npm:^3.2.0"
"@sigstore/protobuf-specs": "npm:^0.5.0"
make-fetch-happen: "npm:^15.0.4"
proc-log: "npm:^6.1.0"
checksum: 10/c9424813ed83ae26111dd3a190dbfd776901cfc245ebb9aa68e133a7ffcbf8fc053f01d999a451e44805a291921ba4d2dfe80e3fd41b20cd5becd26aae5f5e7c
languageName: node
linkType: hard
"@sigstore/tuf@npm:^4.0.1":
version: 4.0.1
resolution: "@sigstore/tuf@npm:4.0.1"
@@ -1699,13 +1693,13 @@ __metadata:
languageName: node
linkType: hard
"@sigstore/tuf@npm:^4.0.2":
version: 4.0.2
resolution: "@sigstore/tuf@npm:4.0.2"
"@sigstore/tuf@npm:^5.0.0":
version: 5.0.0
resolution: "@sigstore/tuf@npm:5.0.0"
dependencies:
"@sigstore/protobuf-specs": "npm:^0.5.0"
tuf-js: "npm:^4.1.0"
checksum: 10/14882b8e71be4185ec417744b97a47392a50da00aafd4207a46bb74b40aa019ebf22d928052fd2d31a8da0da1efe7ebebac5a70898b31a74239a1ada997be754
tuf-js: "npm:^6.0.0"
checksum: 10/74723623c8383a22f755a1eca03d1c0f481d2624e8c5607422af8fe1d2847b2f478513c471693fdd37b24a7c2a17782cabef592a76431b3a54ab328716510303
languageName: node
linkType: hard
@@ -1720,14 +1714,14 @@ __metadata:
languageName: node
linkType: hard
"@sigstore/verify@npm:^3.1.1":
version: 3.1.1
resolution: "@sigstore/verify@npm:3.1.1"
"@sigstore/verify@npm:^4.1.0":
version: 4.1.0
resolution: "@sigstore/verify@npm:4.1.0"
dependencies:
"@sigstore/bundle": "npm:^4.0.0"
"@sigstore/core": "npm:^3.2.1"
"@sigstore/bundle": "npm:^5.0.0"
"@sigstore/core": "npm:^4.0.1"
"@sigstore/protobuf-specs": "npm:^0.5.0"
checksum: 10/4cb24b0e62b85ebf2b62698041e0dc212d152fd40a95c05c237357c992265a23e5789f86b138bea2eea0c5f6b994974d968f03dde9c692a514f96ae4b26f31a9
checksum: 10/63d34a885d15fb37a111e6a85df61ba6a4247efa15d6989b83328043fe2c7be38b0b87b8e0c26cb906809920fde344eaab37fb34f0acd0d8b97c80bfdaa14f62
languageName: node
linkType: hard
@@ -1755,6 +1749,16 @@ __metadata:
languageName: node
linkType: hard
"@tufjs/models@npm:5.0.0":
version: 5.0.0
resolution: "@tufjs/models@npm:5.0.0"
dependencies:
"@tufjs/canonical-json": "npm:2.0.0"
minimatch: "npm:^10.2.1"
checksum: 10/94946c22b44d1f4c5d493270640af9fc7ad9868ec1450403d68829f9eee7da0626f307b6782e6688f35a8e28845f52f4c0941bb16e77712c353fb35952cfac27
languageName: node
linkType: hard
"@types/chai@npm:^5.2.2":
version: 5.2.3
resolution: "@types/chai@npm:5.2.3"
@@ -2763,10 +2767,10 @@ __metadata:
languageName: node
linkType: hard
"csv-parse@npm:^6.2.1":
version: 6.2.1
resolution: "csv-parse@npm:6.2.1"
checksum: 10/7fbde1225c6df6aaea01a202934e1f15ce16ed55e544ead0d066b0c4dc9ae1a2fc881b412889cbf115cd74cbf14ea17388b394e8a31e05cb412dd7dc6114bebd
"csv-parse@npm:^7.0.0":
version: 7.0.0
resolution: "csv-parse@npm:7.0.0"
checksum: 10/53c96e6b4ff80047713bb4d2967d06495890d4b628284a80271860be089fdb5a74cd97c76fd535a00ad26b11cc6e4fc5a243658e5377c0a6334ddd104620d169
languageName: node
linkType: hard
@@ -2814,8 +2818,8 @@ __metadata:
version: 0.0.0-use.local
resolution: "docker-setup-compose@workspace:."
dependencies:
"@actions/core": "npm:^3.0.0"
"@docker/actions-toolkit": "npm:^0.91.0"
"@actions/core": "npm:^3.0.1"
"@docker/actions-toolkit": "npm:^0.92.0"
"@eslint/js": "npm:^9.39.3"
"@types/node": "npm:^24.11.0"
"@typescript-eslint/eslint-plugin": "npm:^8.56.1"
@@ -2925,36 +2929,36 @@ __metadata:
languageName: node
linkType: hard
"esbuild@npm:^0.27.0":
version: 0.27.3
resolution: "esbuild@npm:0.27.3"
"esbuild@npm:^0.27.0 || ^0.28.0":
version: 0.28.1
resolution: "esbuild@npm:0.28.1"
dependencies:
"@esbuild/aix-ppc64": "npm:0.27.3"
"@esbuild/android-arm": "npm:0.27.3"
"@esbuild/android-arm64": "npm:0.27.3"
"@esbuild/android-x64": "npm:0.27.3"
"@esbuild/darwin-arm64": "npm:0.27.3"
"@esbuild/darwin-x64": "npm:0.27.3"
"@esbuild/freebsd-arm64": "npm:0.27.3"
"@esbuild/freebsd-x64": "npm:0.27.3"
"@esbuild/linux-arm": "npm:0.27.3"
"@esbuild/linux-arm64": "npm:0.27.3"
"@esbuild/linux-ia32": "npm:0.27.3"
"@esbuild/linux-loong64": "npm:0.27.3"
"@esbuild/linux-mips64el": "npm:0.27.3"
"@esbuild/linux-ppc64": "npm:0.27.3"
"@esbuild/linux-riscv64": "npm:0.27.3"
"@esbuild/linux-s390x": "npm:0.27.3"
"@esbuild/linux-x64": "npm:0.27.3"
"@esbuild/netbsd-arm64": "npm:0.27.3"
"@esbuild/netbsd-x64": "npm:0.27.3"
"@esbuild/openbsd-arm64": "npm:0.27.3"
"@esbuild/openbsd-x64": "npm:0.27.3"
"@esbuild/openharmony-arm64": "npm:0.27.3"
"@esbuild/sunos-x64": "npm:0.27.3"
"@esbuild/win32-arm64": "npm:0.27.3"
"@esbuild/win32-ia32": "npm:0.27.3"
"@esbuild/win32-x64": "npm:0.27.3"
"@esbuild/aix-ppc64": "npm:0.28.1"
"@esbuild/android-arm": "npm:0.28.1"
"@esbuild/android-arm64": "npm:0.28.1"
"@esbuild/android-x64": "npm:0.28.1"
"@esbuild/darwin-arm64": "npm:0.28.1"
"@esbuild/darwin-x64": "npm:0.28.1"
"@esbuild/freebsd-arm64": "npm:0.28.1"
"@esbuild/freebsd-x64": "npm:0.28.1"
"@esbuild/linux-arm": "npm:0.28.1"
"@esbuild/linux-arm64": "npm:0.28.1"
"@esbuild/linux-ia32": "npm:0.28.1"
"@esbuild/linux-loong64": "npm:0.28.1"
"@esbuild/linux-mips64el": "npm:0.28.1"
"@esbuild/linux-ppc64": "npm:0.28.1"
"@esbuild/linux-riscv64": "npm:0.28.1"
"@esbuild/linux-s390x": "npm:0.28.1"
"@esbuild/linux-x64": "npm:0.28.1"
"@esbuild/netbsd-arm64": "npm:0.28.1"
"@esbuild/netbsd-x64": "npm:0.28.1"
"@esbuild/openbsd-arm64": "npm:0.28.1"
"@esbuild/openbsd-x64": "npm:0.28.1"
"@esbuild/openharmony-arm64": "npm:0.28.1"
"@esbuild/sunos-x64": "npm:0.28.1"
"@esbuild/win32-arm64": "npm:0.28.1"
"@esbuild/win32-ia32": "npm:0.28.1"
"@esbuild/win32-x64": "npm:0.28.1"
dependenciesMeta:
"@esbuild/aix-ppc64":
optional: true
@@ -3010,7 +3014,7 @@ __metadata:
optional: true
bin:
esbuild: bin/esbuild
checksum: 10/aa74b8d8a3ed8e2eea4d8421737b322f4d21215244e8fa2156c6402d49b5bda01343c220196f1e3f830a7ce92b54ef653c6c723a8cc2e912bb4d17b7398b51ae
checksum: 10/aaa4a922644afffac45e735c99caf343f881e2d36abcc6b6fb53c230bd69940504a5bb6b0041bdd1a690e748ebc681d3308a7d178987c523d74c63c2c280bac8
languageName: node
linkType: hard
@@ -3975,13 +3979,24 @@ __metadata:
linkType: hard
"js-yaml@npm:^4.1.0, js-yaml@npm:^4.1.1":
version: 4.1.1
resolution: "js-yaml@npm:4.1.1"
version: 4.3.0
resolution: "js-yaml@npm:4.3.0"
dependencies:
argparse: "npm:^2.0.1"
bin:
js-yaml: bin/js-yaml.js
checksum: 10/a52d0519f0f4ef5b4adc1cde466cb54c50d56e2b4a983b9d5c9c0f2f99462047007a6274d7e95617a21d3c91fde3ee6115536ed70991cd645ba8521058b78f77
checksum: 10/2bcec3a8118d7f744badeb04e14366578d234a736f353d41fe35d2305e4ce2409a8e041d277f07cd6bbc8aaa12128d650a68ce43247072519bede20962d2126f
languageName: node
linkType: hard
"js-yaml@npm:^5.2.0":
version: 5.2.0
resolution: "js-yaml@npm:5.2.0"
dependencies:
argparse: "npm:^2.0.1"
bin:
js-yaml: bin/js-yaml.mjs
checksum: 10/8a5e55c5d0fcafae4ac02114a99dc070048b8e5a82a056089ce1f69f8a00fd8eb05b622e76ad50aac1f9d409010636c9616c6b2ed4e58dae138379a60d301220
languageName: node
linkType: hard
@@ -4266,26 +4281,6 @@ __metadata:
languageName: node
linkType: hard
"make-fetch-happen@npm:^15.0.4":
version: 15.0.6
resolution: "make-fetch-happen@npm:15.0.6"
dependencies:
"@gar/promise-retry": "npm:^1.0.0"
"@npmcli/agent": "npm:^4.0.0"
"@npmcli/redact": "npm:^4.0.0"
cacache: "npm:^20.0.1"
http-cache-semantics: "npm:^4.1.1"
minipass: "npm:^7.0.2"
minipass-fetch: "npm:^5.0.0"
minipass-flush: "npm:^1.0.5"
minipass-pipeline: "npm:^1.2.4"
negotiator: "npm:^1.0.0"
proc-log: "npm:^6.0.0"
ssri: "npm:^13.0.0"
checksum: 10/01bc13d8e851212d55bbf0510dd5f94b9f239f253dfbd84275e23d1798ba7323a08b3c16031b83676fe75381ad5c70d17542c7b6828c98ee6e0d3eacdaf83ebb
languageName: node
linkType: hard
"mimic-fn@npm:^2.1.0":
version: 2.1.0
resolution: "mimic-fn@npm:2.1.0"
@@ -4293,7 +4288,7 @@ __metadata:
languageName: node
linkType: hard
"minimatch@npm:^10.0.3":
"minimatch@npm:^10.0.3, minimatch@npm:^10.2.1":
version: 10.2.5
resolution: "minimatch@npm:10.2.5"
dependencies:
@@ -5302,12 +5297,12 @@ __metadata:
languageName: node
linkType: hard
"semver@npm:^7.8.1":
version: 7.8.1
resolution: "semver@npm:7.8.1"
"semver@npm:^7.8.5":
version: 7.8.5
resolution: "semver@npm:7.8.5"
bin:
semver: bin/semver.js
checksum: 10/3244f6c4cb3f8126fea0426d353829ed4967e41e1f4696337c6fdcad87426466fe2badaf49d7dc85849acfc496ea0599432a4aecc33802d2d774e723acfa30e6
checksum: 10/9b01d2ff11e6e4a4539b7ca3c5f280c8704cb397a28504469f2ed4f00ad2194748d756647362a9712fff30984d15772ab7f083108c2fb508e2096ae9e708f22c
languageName: node
linkType: hard
@@ -5717,10 +5712,10 @@ __metadata:
languageName: node
linkType: hard
"tmp@npm:^0.2.6":
version: 0.2.6
resolution: "tmp@npm:0.2.6"
checksum: 10/4ba072821d65f6ec0ae680dd49261bcc66c96a5a463c80ca040747256238aaad68ad5db7aa8367dd1554d22aa77c2988bdb1c5556ecfc4df105f5b73206b7d9b
"tmp@npm:^0.2.7":
version: 0.2.7
resolution: "tmp@npm:0.2.7"
checksum: 10/0a3bc90beb0c6275273c3475fb57e466eaab1c9c4a101d029ff62b18146ce136e7f75d09de34863d9f2c2a492751402508f9e028bc98eb34a1416195d4b15619
languageName: node
linkType: hard
@@ -5772,6 +5767,17 @@ __metadata:
languageName: node
linkType: hard
"tuf-js@npm:^6.0.0":
version: 6.0.0
resolution: "tuf-js@npm:6.0.0"
dependencies:
"@gar/promise-retry": "npm:^1.0.3"
"@tufjs/models": "npm:5.0.0"
debug: "npm:^4.4.3"
checksum: 10/e18e528bb5b848c80ad15b5eb23cf5ff5de65867a8ebe5a97ecb71b4d8c0568251d6f14db05f54b8bf3955d6febf3d3846a4d094953aa59eb4dae9a21905d904
languageName: node
linkType: hard
"tunnel@npm:^0.0.6":
version: 0.0.6
resolution: "tunnel@npm:0.0.6"
@@ -5845,9 +5851,9 @@ __metadata:
linkType: hard
"undici@npm:^6.23.0, undici@npm:^6.25.0":
version: 6.26.0
resolution: "undici@npm:6.26.0"
checksum: 10/a1715ee4304f58fecd61e0a8c3bd7064435cfbc98b3ec1414dba5e89de97d436b7e88dd094b06ff8440428bf36b56163fc88972118890826039865edf58bdfcf
version: 6.27.0
resolution: "undici@npm:6.27.0"
checksum: 10/30c18cdb235edf4dd36f8aa3ace1ffaf44060289a7d62ad44c33180d2d74a224015d25574812f62ce9c625b5beb1b0b766495b650fedf356aca11eed7ce2c816
languageName: node
linkType: hard
@@ -5928,10 +5934,10 @@ __metadata:
linkType: hard
"vite@npm:^6.0.0 || ^7.0.0":
version: 7.3.3
resolution: "vite@npm:7.3.3"
version: 7.3.6
resolution: "vite@npm:7.3.6"
dependencies:
esbuild: "npm:^0.27.0"
esbuild: "npm:^0.27.0 || ^0.28.0"
fdir: "npm:^6.5.0"
fsevents: "npm:~2.3.3"
picomatch: "npm:^4.0.3"
@@ -5978,7 +5984,7 @@ __metadata:
optional: true
bin:
vite: bin/vite.js
checksum: 10/c7fa17bc0aa530313417a28a144edcf910466b936cb192ce2c8cf7d6075e4b8e481b08a55ef71a7486757b03465b054d8c2cb49473d6fc9a0db8ac1dd641edff
checksum: 10/6fcbadb1a409990e1bbd4ff0ff41e763c87049228cdc407984bdca40b96ab32de0f1f70fa62fb1f3ca001a5b90accbbe22ddfad5cc436855058357b3f2141d3b
languageName: node
linkType: hard