Compare commits

...
42 Commits
Author SHA1 Message Date
Tõnis Tiigi 030e881283 Merge pull request #607 from crazy-max/allow-comments
preserve comments in list input values with commentNoInfix
2026-03-05 08:21:07 -08:00
CrazyMax 4b529ac4e5 chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-05 17:02:53 +01:00
CrazyMax b0082b33bc preserve comments in list input values with commentNoInfix
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-05 17:02:53 +01:00
CrazyMax 7b19fec715 Merge pull request #604 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.77.0
chore(deps): Bump @docker/actions-toolkit from 0.68.0 to 0.79.0
2026-03-05 17:00:40 +01:00
CrazyMax 281c9b0599 chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-05 09:24:56 +01:00
CrazyMax 5f43b3b4f4 test: stabilize github mock setup since ESM
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-05 09:23:56 +01:00
CrazyMax 9d53276575 github class moved since actions-toolkit v0.77.0
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-05 09:23:56 +01:00
dependabot[bot] eaa3d3973e chore(deps): Bump @docker/actions-toolkit from 0.68.0 to 0.77.0
Dependabot couldn't find the original pull request head commit, cdad825a9dc17122e84ab473271a55d7b8b3da06.
2026-03-05 08:21:31 +00:00
Tõnis Tiigi 6b695f7a8a Merge pull request #605 from crazy-max/node24
node 24 as default runtime
2026-03-04 17:36:23 -08:00
CrazyMax a1afadcb28 node 24 as default runtime
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-04 12:40:47 +01:00
CrazyMax c769610e5c Merge pull request #603 from docker/dependabot/npm_and_yarn/semver-7.7.4
chore(deps): Bump semver from 7.7.3 to 7.7.4
2026-03-04 10:52:19 +01:00
github-actions[bot] f0f930b111 chore: update generated content 2026-03-04 09:19:30 +00:00
dependabot[bot] f4771c2b1f chore(deps): Bump semver from 7.7.3 to 7.7.4
Bumps [semver](https://github.com/npm/node-semver) from 7.7.3 to 7.7.4.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.7.3...v7.7.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-04 09:18:03 +00:00
CrazyMax 538feedf47 Merge pull request #597 from docker/dependabot/npm_and_yarn/actions/github-9.0.0
chore(deps): Bump @actions/github from 6.0.1 to 9.0.0
2026-03-04 10:07:45 +01:00
CrazyMax 2c6e6d9d3b chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-03 16:00:55 +01:00
CrazyMax 8fd476a5a7 replace actions/github/lib/context deep imports with public typing
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-03 15:59:05 +01:00
dependabot[bot] a33d385eb1 chore(deps): Bump @actions/github from 6.0.1 to 9.0.0
Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 6.0.1 to 9.0.0.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github)

---
updated-dependencies:
- dependency-name: "@actions/github"
  dependency-version: 9.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-03 13:57:21 +00:00
CrazyMax cb50be4508 Merge pull request #599 from docker/dependabot/npm_and_yarn/actions/core-3.0.0
chore(deps): Bump @actions/core from 1.11.1 to 3.0.0
2026-03-03 14:55:29 +01:00
github-actions[bot] 8fd95d6f08 chore: update generated content 2026-03-03 13:47:05 +00:00
dependabot[bot] a4e219a90d chore(deps): Bump @actions/core from 1.11.1 to 3.0.0
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.11.1 to 3.0.0.
- [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.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-03 13:45:52 +00:00
CrazyMax 76c27c49eb Merge pull request #600 from docker/dependabot/npm_and_yarn/isaacs/brace-expansion-5.0.1
chore(deps): Bump @isaacs/brace-expansion from 5.0.0 to 5.0.1
2026-03-03 14:43:55 +01:00
github-actions[bot] 1ea5d4f1b0 chore: update generated content 2026-03-03 13:42:24 +00:00
dependabot[bot] 91c3fe061e chore(deps): Bump @isaacs/brace-expansion from 5.0.0 to 5.0.1
Bumps @isaacs/brace-expansion from 5.0.0 to 5.0.1.

---
updated-dependencies:
- dependency-name: "@isaacs/brace-expansion"
  dependency-version: 5.0.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-03 13:41:02 +00:00
CrazyMax f332e46fa5 Merge pull request #588 from docker/dependabot/npm_and_yarn/lodash-4.17.23
chore(deps): Bump lodash from 4.17.21 to 4.17.23
2026-03-03 14:38:56 +01:00
CrazyMax 51b601f22d Merge pull request #602 from crazy-max/esm
switch to ESM and update config/test wiring
2026-03-03 14:38:00 +01:00
CrazyMax 8480620af8 test: use github mock instead of fixture for context
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-02 09:44:39 +01:00
CrazyMax 8e71445576 chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-02 09:44:39 +01:00
CrazyMax f57c915b64 dockerfile: fix vendoring
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-02 09:44:38 +01:00
CrazyMax d92a8d0b86 update dev dependencies
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-02-28 15:58:17 +01:00
CrazyMax cf6a6ce0f7 switch to ESM and update config/test wiring
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-02-28 15:57:06 +01:00
CrazyMax d5be006250 switch from jest to vitest
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-02-28 15:48:21 +01:00
CrazyMax a60f0f62b5 Merge pull request #598 from crazy-max/update-dist-workflow
ci: update-dist workflow
2026-01-29 21:27:37 +01:00
CrazyMax 10f4f1aaa5 ci: update-dist workflow
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-01-29 16:25:39 +01:00
dependabot[bot] 70c914a6f8 chore(deps): Bump lodash from 4.17.21 to 4.17.23
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.21 to 4.17.23.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.21...4.17.23)

---
updated-dependencies:
- dependency-name: lodash
  dependency-version: 4.17.23
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-22 00:40:49 +00:00
Tõnis Tiigi ed95091677 Merge pull request #579 from crazy-max/update-dev-deps
update dev dependencies
2026-01-07 16:39:57 -08:00
CrazyMax 57670b6268 chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-01-05 17:09:10 +01:00
CrazyMax d636a41a2f update jest config since 30.0
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-01-05 17:07:43 +01:00
CrazyMax 9c747a7ed1 fix lint issues
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-01-05 17:07:42 +01:00
CrazyMax c98baa7757 migrate eslint config to new format required since 9.0.0
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-01-05 17:07:36 +01:00
CrazyMax ad1f8b1f99 update dev dependencies
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-01-05 16:55:49 +01:00
CrazyMax f0a4bc3c2d Merge pull request #574 from osman-butt/update-checkout-v6
docs: update checkout action to v6 in README
2026-01-05 16:45:15 +01:00
osman-butt 9b6cf6ec37 docs: update checkout action to v6 in README
Signed-off-by: osman-butt <butt.osman@gmail.com>
2025-12-10 01:50:17 +01:00
29 changed files with 2512 additions and 4993 deletions

No files matched your search

-3
View File
@@ -1,3 +0,0 @@
/dist/**
/coverage/**
/node_modules/**
-24
View File
@@ -1,24 +0,0 @@
{
"env": {
"node": true,
"es6": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2023,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"jest",
"prettier"
]
}
+49
View File
@@ -0,0 +1,49 @@
name: update-dist
on:
pull_request:
types:
- opened
- synchronize
jobs:
update-dist:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
-
name: GitHub auth token from GitHub App
id: docker-read-app
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.GHACTIONS_REPO_WRITE_APP_ID }}
private-key: ${{ secrets.GHACTIONS_REPO_WRITE_APP_PRIVATE_KEY }}
owner: docker
-
name: Checkout
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
token: ${{ steps.docker-read-app.outputs.token || github.token }}
-
name: Build
uses: docker/bake-action@v6
with:
source: .
targets: build
-
name: Commit and push dist
run: |
if [ -n "$(git status --porcelain -- dist)" ]; then
(
set -x
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 push
)
else
echo "No changes in dist"
fi
+1 -2
View File
@@ -6,6 +6,5 @@
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": false,
"arrowParens": "avoid",
"parser": "typescript"
"arrowParens": "avoid"
}
+2 -2
View File
@@ -77,7 +77,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
-
name: Docker meta
id: meta
@@ -131,7 +131,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
-
name: Docker meta
id: meta
-223
View File
@@ -1,223 +0,0 @@
import {jest} from '@jest/globals';
export const context = {
repo: {
owner: 'docker',
repo: 'actions-toolkit'
},
ref: 'refs/heads/master',
runId: 123,
payload: {
after: '860c1904a1ce19322e91ac35af1ab07466440c37',
base_ref: null,
before: '5f3331d7f7044c18ca9f12c77d961c4d7cf3276a',
commits: [
{
author: {
email: 'crazy-max@users.noreply.github.com',
name: 'CrazyMax',
username: 'crazy-max'
},
committer: {
email: 'crazy-max@users.noreply.github.com',
name: 'CrazyMax',
username: 'crazy-max'
},
distinct: true,
id: '860c1904a1ce19322e91ac35af1ab07466440c37',
message: 'hello dev',
timestamp: '2022-04-19T11:27:24+02:00',
tree_id: 'd2c60af597e863787d2d27f569e30495b0b92820',
url: 'https://github.com/docker/test-docker-action/commit/860c1904a1ce19322e91ac35af1ab07466440c37'
}
],
compare: 'https://github.com/docker/test-docker-action/compare/5f3331d7f704...860c1904a1ce',
created: false,
deleted: false,
forced: false,
head_commit: {
author: {
email: 'crazy-max@users.noreply.github.com',
name: 'CrazyMax',
username: 'crazy-max'
},
committer: {
email: 'crazy-max@users.noreply.github.com',
name: 'CrazyMax',
username: 'crazy-max'
},
distinct: true,
id: '860c1904a1ce19322e91ac35af1ab07466440c37',
message: 'hello dev',
timestamp: '2022-04-19T11:27:24+02:00',
tree_id: 'd2c60af597e863787d2d27f569e30495b0b92820',
url: 'https://github.com/docker/test-docker-action/commit/860c1904a1ce19322e91ac35af1ab07466440c37'
},
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/5429470?v=4',
description: 'Docker helps developers bring their ideas to life by conquering the complexity of app development.',
events_url: 'https://api.github.com/orgs/docker/events',
hooks_url: 'https://api.github.com/orgs/docker/hooks',
id: 5429470,
issues_url: 'https://api.github.com/orgs/docker/issues',
login: 'docker',
members_url: 'https://api.github.com/orgs/docker/members{/member}',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=',
public_members_url: 'https://api.github.com/orgs/docker/public_members{/member}',
repos_url: 'https://api.github.com/orgs/docker/repos',
url: 'https://api.github.com/orgs/docker'
},
pusher: {
email: 'github@crazymax.dev',
name: 'crazy-max'
},
ref: 'refs/heads/dev',
repository: {
allow_forking: true,
archive_url: 'https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}',
archived: false,
assignees_url: 'https://api.github.com/repos/docker/test-docker-action/assignees{/user}',
blobs_url: 'https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}',
branches_url: 'https://api.github.com/repos/docker/test-docker-action/branches{/branch}',
clone_url: 'https://github.com/docker/test-docker-action.git',
collaborators_url: 'https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}',
comments_url: 'https://api.github.com/repos/docker/test-docker-action/comments{/number}',
commits_url: 'https://api.github.com/repos/docker/test-docker-action/commits{/sha}',
compare_url: 'https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}',
contents_url: 'https://api.github.com/repos/docker/test-docker-action/contents/{+path}',
contributors_url: 'https://api.github.com/repos/docker/test-docker-action/contributors',
created_at: 1596792180,
default_branch: 'master',
deployments_url: 'https://api.github.com/repos/docker/test-docker-action/deployments',
description: 'Test "Docker" Actions',
disabled: false,
downloads_url: 'https://api.github.com/repos/docker/test-docker-action/downloads',
events_url: 'https://api.github.com/repos/docker/test-docker-action/events',
fork: false,
forks: 1,
forks_count: 1,
forks_url: 'https://api.github.com/repos/docker/test-docker-action/forks',
full_name: 'docker/test-docker-action',
git_commits_url: 'https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}',
git_refs_url: 'https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}',
git_tags_url: 'https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}',
git_url: 'git://github.com/docker/test-docker-action.git',
has_downloads: true,
has_issues: true,
has_pages: false,
has_projects: true,
has_wiki: true,
homepage: '',
hooks_url: 'https://api.github.com/repos/docker/test-docker-action/hooks',
html_url: 'https://github.com/docker/test-docker-action',
id: 285789493,
is_template: false,
issue_comment_url: 'https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}',
issue_events_url: 'https://api.github.com/repos/docker/test-docker-action/issues/events{/number}',
issues_url: 'https://api.github.com/repos/docker/test-docker-action/issues{/number}',
keys_url: 'https://api.github.com/repos/docker/test-docker-action/keys{/key_id}',
labels_url: 'https://api.github.com/repos/docker/test-docker-action/labels{/name}',
language: 'JavaScript',
languages_url: 'https://api.github.com/repos/docker/test-docker-action/languages',
license: {
key: 'mit',
name: 'MIT License',
node_id: 'MDc6TGljZW5zZTEz',
spdx_id: 'MIT',
url: 'https://api.github.com/licenses/mit'
},
master_branch: 'master',
merges_url: 'https://api.github.com/repos/docker/test-docker-action/merges',
milestones_url: 'https://api.github.com/repos/docker/test-docker-action/milestones{/number}',
mirror_url: null,
name: 'test-docker-action',
node_id: 'MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=',
notifications_url: 'https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}',
open_issues: 6,
open_issues_count: 6,
organization: 'docker',
owner: {
avatar_url: 'https://avatars.githubusercontent.com/u/5429470?v=4',
email: 'info@docker.com',
events_url: 'https://api.github.com/users/docker/events{/privacy}',
followers_url: 'https://api.github.com/users/docker/followers',
following_url: 'https://api.github.com/users/docker/following{/other_user}',
gists_url: 'https://api.github.com/users/docker/gists{/gist_id}',
gravatar_id: '',
html_url: 'https://github.com/docker',
id: 5429470,
login: 'docker',
name: 'docker',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=',
organizations_url: 'https://api.github.com/users/docker/orgs',
received_events_url: 'https://api.github.com/users/docker/received_events',
repos_url: 'https://api.github.com/users/docker/repos',
site_admin: false,
starred_url: 'https://api.github.com/users/docker/starred{/owner}{/repo}',
subscriptions_url: 'https://api.github.com/users/docker/subscriptions',
type: 'Organization',
url: 'https://api.github.com/users/docker'
},
private: true,
pulls_url: 'https://api.github.com/repos/docker/test-docker-action/pulls{/number}',
pushed_at: 1650360446,
releases_url: 'https://api.github.com/repos/docker/test-docker-action/releases{/id}',
size: 796,
ssh_url: 'git@github.com:docker/test-docker-action.git',
stargazers: 0,
stargazers_count: 0,
stargazers_url: 'https://api.github.com/repos/docker/test-docker-action/stargazers',
statuses_url: 'https://api.github.com/repos/docker/test-docker-action/statuses/{sha}',
subscribers_url: 'https://api.github.com/repos/docker/test-docker-action/subscribers',
subscription_url: 'https://api.github.com/repos/docker/test-docker-action/subscription',
svn_url: 'https://github.com/docker/test-docker-action',
tags_url: 'https://api.github.com/repos/docker/test-docker-action/tags',
teams_url: 'https://api.github.com/repos/docker/test-docker-action/teams',
topics: [],
trees_url: 'https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}',
updated_at: '2022-04-19T09:05:09Z',
url: 'https://github.com/docker/test-docker-action',
visibility: 'private',
watchers: 0,
watchers_count: 0
},
sender: {
avatar_url: 'https://avatars.githubusercontent.com/u/1951866?v=4',
events_url: 'https://api.github.com/users/crazy-max/events{/privacy}',
followers_url: 'https://api.github.com/users/crazy-max/followers',
following_url: 'https://api.github.com/users/crazy-max/following{/other_user}',
gists_url: 'https://api.github.com/users/crazy-max/gists{/gist_id}',
gravatar_id: '',
html_url: 'https://github.com/crazy-max',
id: 1951866,
login: 'crazy-max',
node_id: 'MDQ6VXNlcjE5NTE4NjY=',
organizations_url: 'https://api.github.com/users/crazy-max/orgs',
received_events_url: 'https://api.github.com/users/crazy-max/received_events',
repos_url: 'https://api.github.com/users/crazy-max/repos',
site_admin: false,
starred_url: 'https://api.github.com/users/crazy-max/starred{/owner}{/repo}',
subscriptions_url: 'https://api.github.com/users/crazy-max/subscriptions',
type: 'User',
url: 'https://api.github.com/users/crazy-max'
}
}
};
export const getOctokit = jest.fn(() => ({
rest: {
repos: {
getCommit: jest.fn(() =>
Promise.resolve({
data: {
commit: {
committer: {
date: '2024-11-13T13:42:28Z'
}
}
}
})
)
}
}
}));
+91 -56
View File
@@ -1,23 +1,11 @@
import {afterEach, beforeEach, describe, expect, test, it, jest} from '@jest/globals';
import * as dotenv from 'dotenv';
import * as fs from 'fs';
import * as path from 'path';
import {Context} from '@actions/github/lib/context';
import {Git} from '@docker/actions-toolkit/lib/git';
import {GitHub} from '@docker/actions-toolkit/lib/github';
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit';
import {beforeEach, describe, expect, test, it, vi} from 'vitest';
import {Git} from '@docker/actions-toolkit/lib/git.js';
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit.js';
import {ContextSource, getContext, getInputs, Inputs} from '../src/context';
import * as context from '../src/context.js';
const toolkit = new Toolkit({githubToken: 'fake-github-token'});
beforeEach(() => {
jest.clearAllMocks();
jest.spyOn(GitHub, 'context', 'get').mockImplementation((): Context => {
return new Context();
});
});
describe('getInputs', () => {
beforeEach(() => {
process.env = Object.keys(process.env).reduce((object, key) => {
@@ -29,14 +17,14 @@ describe('getInputs', () => {
});
// prettier-ignore
test.each([
const cases: [number, Map<string, string>, context.Inputs][] = [
[
0,
new Map<string, string>([
['images', 'moby/buildkit\nghcr.io/moby/mbuildkit'],
]),
{
context: ContextSource.workflow,
context: context.ContextSource.workflow,
bakeTarget: 'docker-metadata-action',
flavor: [],
githubToken: '',
@@ -47,7 +35,7 @@ describe('getInputs', () => {
sepTags: '\n',
sepAnnotations: '\n',
tags: [],
} as Inputs
}
],
[
1,
@@ -59,7 +47,7 @@ describe('getInputs', () => {
['sep-annotations', ',']
]),
{
context: ContextSource.workflow,
context: context.ContextSource.workflow,
bakeTarget: 'metadata',
flavor: [],
githubToken: '',
@@ -70,7 +58,7 @@ describe('getInputs', () => {
sepTags: ',',
sepAnnotations: ',',
tags: [],
} as Inputs
}
],
[
2,
@@ -78,7 +66,7 @@ describe('getInputs', () => {
['images', 'moby/buildkit\n#comment\nghcr.io/moby/mbuildkit'],
]),
{
context: ContextSource.workflow,
context: context.ContextSource.workflow,
bakeTarget: 'docker-metadata-action',
flavor: [],
githubToken: '',
@@ -89,53 +77,100 @@ describe('getInputs', () => {
sepTags: '\n',
sepAnnotations: '\n',
tags: [],
} as Inputs
}
],
])(
'[%d] given %p as inputs, returns %p',
async (num: number, inputs: Map<string, string>, expected: Inputs) => {
inputs.forEach((value: string, name: string) => {
setInput(name, value);
});
expect(await getInputs()).toEqual(expected);
}
);
[
3,
new Map<string, string>([
['labels', 'mylabel=foo#bar\n#comment\nanother=bar'],
]),
{
context: context.ContextSource.workflow,
bakeTarget: 'docker-metadata-action',
flavor: [],
githubToken: '',
images: [],
labels: ['mylabel=foo#bar', 'another=bar'],
annotations: [],
sepLabels: '\n',
sepTags: '\n',
sepAnnotations: '\n',
tags: [],
}
],
[
4,
new Map<string, string>([
['annotations', 'org.opencontainers.image.url=https://example.com/path#readme\n#comment\norg.opencontainers.image.source=https://github.com/docker/metadata-action'],
]),
{
context: context.ContextSource.workflow,
bakeTarget: 'docker-metadata-action',
flavor: [],
githubToken: '',
images: [],
labels: [],
annotations: [
'org.opencontainers.image.url=https://example.com/path#readme',
'org.opencontainers.image.source=https://github.com/docker/metadata-action'
],
sepLabels: '\n',
sepTags: '\n',
sepAnnotations: '\n',
tags: [],
}
],
[
5,
new Map<string, string>([
['tags', 'type=raw,value=foo#bar\n#comment'],
['flavor', 'prefix=v#1\n#comment'],
]),
{
context: context.ContextSource.workflow,
bakeTarget: 'docker-metadata-action',
flavor: ['prefix=v#1'],
githubToken: '',
images: [],
labels: [],
annotations: [],
sepLabels: '\n',
sepTags: '\n',
sepAnnotations: '\n',
tags: ['type=raw,value=foo#bar'],
}
],
];
test.each(cases)('[%d] given %o as inputs, returns %o', async (num: number, inputs: Map<string, string>, expected: context.Inputs) => {
inputs.forEach((value: string, name: string) => {
setInput(name, value);
});
const res = await context.getInputs();
expect(res).toEqual(expected);
});
});
describe('getContext', () => {
const originalEnv = process.env;
beforeEach(() => {
jest.resetModules();
process.env = {
...originalEnv,
...dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures/event_create_branch.env')))
};
});
afterEach(() => {
process.env = originalEnv;
});
it('workflow', async () => {
const context = await getContext(ContextSource.workflow, toolkit);
expect(context.ref).toEqual('refs/heads/dev');
expect(context.sha).toEqual('5f3331d7f7044c18ca9f12c77d961c4d7cf3276a');
expect(context.commitDate).toEqual(new Date('2024-11-13T13:42:28.000Z'));
const ctx = await context.getContext(context.ContextSource.workflow, toolkit);
expect(ctx.ref).toEqual('refs/heads/dev');
expect(ctx.sha).toEqual('5f3331d7f7044c18ca9f12c77d961c4d7cf3276a');
expect(ctx.commitDate).toEqual(new Date('2024-11-13T13:42:28.000Z'));
});
it('git', async () => {
jest.spyOn(Git, 'context').mockImplementation((): Promise<Context> => {
vi.spyOn(Git, 'context').mockImplementation((): Promise<context.Context> => {
return Promise.resolve({
ref: 'refs/heads/git-test',
sha: 'git-test-sha'
} as Context);
} as context.Context);
});
jest.spyOn(Git, 'commitDate').mockImplementation(async (): Promise<Date> => {
vi.spyOn(Git, 'commitDate').mockImplementation(async (): Promise<Date> => {
return new Date('2023-01-01T13:42:28.000Z');
});
const context = await getContext(ContextSource.git, toolkit);
expect(context.ref).toEqual('refs/heads/git-test');
expect(context.sha).toEqual('git-test-sha');
expect(context.commitDate).toEqual(new Date('2023-01-01T13:42:28.000Z'));
const ctx = await context.getContext(context.ContextSource.git, toolkit);
expect(ctx.ref).toEqual('refs/heads/git-test');
expect(ctx.sha).toEqual('git-test-sha');
expect(ctx.commitDate).toEqual(new Date('2023-01-01T13:42:28.000Z'));
});
});
+3 -3
View File
@@ -1,6 +1,6 @@
import {describe, expect, test} from '@jest/globals';
import {describe, expect, test} from 'vitest';
import {Flavor, Transform} from '../src/flavor';
import {Flavor, Transform} from '../src/flavor.js';
describe('transform', () => {
// prettier-ignore
@@ -175,7 +175,7 @@ describe('transform', () => {
if (!invalid) {
console.error(err);
}
// eslint-disable-next-line jest/no-conditional-expect
// eslint-disable-next-line vitest/no-conditional-expect
expect(true).toBe(invalid);
}
});
+3 -3
View File
@@ -1,6 +1,6 @@
import {describe, expect, test} from '@jest/globals';
import {describe, expect, test} from 'vitest';
import {Transform, Image} from '../src/image';
import {Transform, Image} from '../src/image.js';
describe('transform', () => {
// prettier-ignore
@@ -95,7 +95,7 @@ describe('transform', () => {
if (!invalid) {
console.error(err);
}
// eslint-disable-next-line jest/no-conditional-expect
// eslint-disable-next-line vitest/no-conditional-expect
expect(true).toBe(invalid);
}
});
+62 -52
View File
@@ -1,47 +1,65 @@
import {beforeEach, describe, expect, jest, test} from '@jest/globals';
import {beforeEach, describe, expect, test, vi} from 'vitest';
import * as fs from 'fs';
import * as path from 'path';
import * as dotenv from 'dotenv';
import {Context} from '@actions/github/lib/context';
import {GitHub} from '@docker/actions-toolkit/lib/github';
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit';
import {GitHubRepo} from '@docker/actions-toolkit/lib/types/github';
import {GitHub} from '@docker/actions-toolkit/lib/github/github.js';
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit.js';
import {GitHubRepo} from '@docker/actions-toolkit/lib/types/github/github.js';
import {ContextSource, getContext, getInputs, Inputs} from '../src/context';
import {Meta, Version} from '../src/meta';
import {ContextSource, getContext, getInputs, Inputs} from '../src/context.js';
import type {Context as MetadataContext} from '../src/context.js';
import {Meta, Version} from '../src/meta.js';
import repoFixture from './fixtures/repo.json';
import repoFixture from './fixtures/repo.json' with {type: 'json'};
jest.spyOn(GitHub.prototype, 'repoData').mockImplementation((): Promise<GitHubRepo> => {
vi.spyOn(GitHub.prototype, 'repoData').mockImplementation((): Promise<GitHubRepo> => {
return <Promise<GitHubRepo>>(repoFixture as unknown);
});
jest.spyOn(global.Date.prototype, 'toISOString').mockImplementation(() => {
vi.spyOn(global.Date.prototype, 'toISOString').mockImplementation(() => {
return '2020-01-10T00:30:00.000Z';
});
jest.mock('moment-timezone', () => {
return () => (jest.requireActual('moment-timezone') as typeof import('moment-timezone'))('2020-01-10T00:30:00.000Z');
vi.mock('moment-timezone', async () => {
const actual = await vi.importActual<unknown>('moment-timezone');
const actualModule = actual as {default?: (input?: string | Date) => unknown};
const momentTimezone = (typeof actual === 'function' ? actual : actualModule.default) as (input?: string | Date) => unknown;
return {
__esModule: true,
default: () => momentTimezone('2020-01-10T00:30:00.000Z')
};
});
beforeEach(() => {
jest.clearAllMocks();
vi.clearAllMocks();
Object.keys(process.env).forEach(function (key) {
if (key !== 'GITHUB_TOKEN' && key.startsWith('GITHUB_')) {
delete process.env[key];
}
});
jest.spyOn(GitHub, 'context', 'get').mockImplementation((): Context => {
//@ts-expect-error partial info
vi.spyOn(GitHub, 'context', 'get').mockImplementation((): MetadataContext => {
const repository = process.env.GITHUB_REPOSITORY || 'docker/repo';
const [owner, repo] = repository.includes('/') ? repository.split('/', 2) : ['docker', 'repo'];
const eventPath = process.env.GITHUB_EVENT_PATH;
const payload = eventPath && fs.existsSync(eventPath) ? JSON.parse(fs.readFileSync(eventPath, 'utf8')) : {};
return {
...new Context(),
repo: {
owner: 'docker',
repo: 'repo'
}
};
payload,
eventName: process.env.GITHUB_EVENT_NAME || '',
sha: process.env.GITHUB_SHA || '',
ref: process.env.GITHUB_REF || '',
workflow: process.env.GITHUB_WORKFLOW || '',
action: process.env.GITHUB_ACTION || '',
actor: process.env.GITHUB_ACTOR || '',
job: process.env.GITHUB_JOB || '',
runAttempt: +(process.env.GITHUB_RUN_ATTEMPT || 1),
runNumber: +(process.env.GITHUB_RUN_NUMBER || 0),
runId: +(process.env.GITHUB_RUN_ID || 0),
apiUrl: process.env.GITHUB_API_URL || 'https://api.github.com',
serverUrl: process.env.GITHUB_SERVER_URL || 'https://github.com',
graphqlUrl: process.env.GITHUB_GRAPHQL_URL || 'https://api.github.com/graphql',
repo: {owner, repo}
} as MetadataContext;
});
});
@@ -53,7 +71,7 @@ describe('isRawStatement', () => {
['{{ raw }}', true],
['{{ raw}}', true],
['{{raw}}', true],
])('given %p pattern', async (pattern: string, expected: boolean) => {
])('given %o pattern', async (pattern: string, expected: boolean) => {
expect(Meta.isRawStatement(pattern)).toEqual(expected);
});
});
@@ -79,7 +97,7 @@ const tagsLabelsTest = async (name: string, envFile: string, inputs: Inputs, exV
describe('null', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
// eslint-disable-next-line vitest/expect-expect
test.each([
[
'null01',
@@ -133,12 +151,12 @@ describe('null', () => {
],
undefined
],
])('given %p with %p event', tagsLabelsTest);
])('given %o with %o event', tagsLabelsTest);
});
describe('push', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
// eslint-disable-next-line vitest/expect-expect
test.each([
[
'push01',
@@ -856,12 +874,12 @@ describe('push', () => {
],
undefined
]
])('given %p with %p event', tagsLabelsTest);
])('given %o with %o event', tagsLabelsTest);
});
describe('tag', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
// eslint-disable-next-line vitest/expect-expect
test.each([
[
'tag01',
@@ -2035,12 +2053,12 @@ describe('tag', () => {
],
undefined
]
])('given %p with %p event', tagsLabelsTest);
])('given %o with %o event', tagsLabelsTest);
});
describe('latest', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
// eslint-disable-next-line vitest/expect-expect
test.each([
[
'latest01',
@@ -2377,12 +2395,12 @@ describe('latest', () => {
],
undefined
]
])('given %p with %p event', tagsLabelsTest);
])('given %o with %o event', tagsLabelsTest);
});
describe('pr', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
// eslint-disable-next-line vitest/expect-expect
test.each([
[
'pr01',
@@ -2765,12 +2783,11 @@ describe('pr', () => {
],
undefined
],
])('given %p with %p event', tagsLabelsTest);
])('given %o with %o event', tagsLabelsTest);
});
describe('pr-head-sha', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'pr01',
@@ -3141,7 +3158,7 @@ describe('pr-head-sha', () => {
"org.opencontainers.image.version=src-2020-01-10T00-30-00Z",
]
],
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, exVersion: Version, exTags: Array<string>, exLabelsAnnotations: Array<string>) => {
])('given %o with %o event', async (name: string, envFile: string, inputs: Inputs, exVersion: Version, exTags: Array<string>, exLabelsAnnotations: Array<string>) => {
process.env = dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures', envFile)));
process.env.DOCKER_METADATA_PR_HEAD_SHA = 'true';
@@ -3165,7 +3182,7 @@ describe('pr-head-sha', () => {
describe('schedule', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
// eslint-disable-next-line vitest/expect-expect
test.each([
[
'schedule01',
@@ -3424,12 +3441,12 @@ describe('schedule', () => {
],
undefined
],
])('given %p with %p event', tagsLabelsTest);
])('given %o with %o event', tagsLabelsTest);
});
describe('release', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
// eslint-disable-next-line vitest/expect-expect
test.each([
[
'release01',
@@ -3526,12 +3543,12 @@ describe('release', () => {
],
undefined
]
])('given %s with %p event', tagsLabelsTest);
])('given %o with %o event', tagsLabelsTest);
});
describe('raw', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
// eslint-disable-next-line vitest/expect-expect
test.each([
[
'raw01',
@@ -3906,12 +3923,11 @@ describe('raw', () => {
],
undefined
],
])('given %p wth %p event', tagsLabelsTest);
])('given %o with %o event', tagsLabelsTest);
});
describe('json', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'json01',
@@ -4261,7 +4277,7 @@ describe('json', () => {
]
}
]
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, exJSON: unknown) => {
])('given %o with %o event', async (name: string, envFile: string, inputs: Inputs, exJSON: unknown) => {
process.env = dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures', envFile)));
const toolkit = new Toolkit();
@@ -4275,7 +4291,6 @@ describe('json', () => {
describe('bakeFile', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'bakeFile01',
@@ -4777,7 +4792,7 @@ describe('bakeFile', () => {
}
}
]
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, exBakeTags: unknown, exBakeLabels: unknown, exBakeAnnotations: unknown) => {
])('given %o with %o event', async (name: string, envFile: string, inputs: Inputs, exBakeTags: unknown, exBakeLabels: unknown, exBakeAnnotations: unknown) => {
process.env = dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures', envFile)));
const toolkit = new Toolkit();
@@ -4797,7 +4812,6 @@ describe('bakeFile', () => {
describe('bakeFileTagsLabels', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'bakeFileTagsLabels01',
@@ -4841,7 +4855,7 @@ describe('bakeFileTagsLabels', () => {
}
}
]
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, exBakeDefinition: unknown) => {
])('given %o with %o event', async (name: string, envFile: string, inputs: Inputs, exBakeDefinition: unknown) => {
process.env = dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures', envFile)));
const toolkit = new Toolkit();
@@ -4855,7 +4869,6 @@ describe('bakeFileTagsLabels', () => {
describe('sepTags', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'sepTags01',
@@ -4887,14 +4900,11 @@ describe('sepTags', () => {
} as Inputs,
"user/app:dev,user/app:my,user/app:custom,user/app:tags"
]
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, expTags: string) => {
])('given %o with %o event', async (name: string, envFile: string, inputs: Inputs, expTags: string) => {
process.env = dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures', envFile)));
const toolkit = new Toolkit();
const repo = await toolkit.github.repoData();
const meta = new Meta({...getInputs(), ...inputs}, await getContext(ContextSource.workflow, toolkit), repo);
expect(meta.getTags().join(inputs.sepTags)).toEqual(expTags);
+252
View File
@@ -0,0 +1,252 @@
import fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';
import {vi} from 'vitest';
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-metadata-action-'));
const githubPayload = {
after: '860c1904a1ce19322e91ac35af1ab07466440c37',
base_ref: null,
before: '5f3331d7f7044c18ca9f12c77d961c4d7cf3276a',
commits: [
{
author: {
email: 'crazy-max@users.noreply.github.com',
name: 'CrazyMax',
username: 'crazy-max'
},
committer: {
email: 'crazy-max@users.noreply.github.com',
name: 'CrazyMax',
username: 'crazy-max'
},
distinct: true,
id: '5f3331d7f7044c18ca9f12c77d961c4d7cf3276a',
message: 'hello dev',
timestamp: '2024-11-13T13:42:28Z',
tree_id: 'd2c60af597e863787d2d27f569e30495b0b92820',
url: 'https://github.com/docker/test-docker-action/commit/5f3331d7f7044c18ca9f12c77d961c4d7cf3276a'
}
],
compare: 'https://github.com/docker/test-docker-action/compare/5f3331d7f704...860c1904a1ce',
created: false,
deleted: false,
forced: false,
head_commit: {
author: {
email: 'crazy-max@users.noreply.github.com',
name: 'CrazyMax',
username: 'crazy-max'
},
committer: {
email: 'crazy-max@users.noreply.github.com',
name: 'CrazyMax',
username: 'crazy-max'
},
distinct: true,
id: '5f3331d7f7044c18ca9f12c77d961c4d7cf3276a',
message: 'hello dev',
timestamp: '2024-11-13T13:42:28Z',
tree_id: 'd2c60af597e863787d2d27f569e30495b0b92820',
url: 'https://github.com/docker/test-docker-action/commit/5f3331d7f7044c18ca9f12c77d961c4d7cf3276a'
},
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/5429470?v=4',
description: 'Docker helps developers bring their ideas to life by conquering the complexity of app development.',
events_url: 'https://api.github.com/orgs/docker/events',
hooks_url: 'https://api.github.com/orgs/docker/hooks',
id: 5429470,
issues_url: 'https://api.github.com/orgs/docker/issues',
login: 'docker',
members_url: 'https://api.github.com/orgs/docker/members{/member}',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=',
public_members_url: 'https://api.github.com/orgs/docker/public_members{/member}',
repos_url: 'https://api.github.com/orgs/docker/repos',
url: 'https://api.github.com/orgs/docker'
},
pusher: {
email: 'github@crazymax.dev',
name: 'crazy-max'
},
ref: 'refs/heads/dev',
repository: {
allow_forking: true,
archive_url: 'https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}',
archived: false,
assignees_url: 'https://api.github.com/repos/docker/test-docker-action/assignees{/user}',
blobs_url: 'https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}',
branches_url: 'https://api.github.com/repos/docker/test-docker-action/branches{/branch}',
clone_url: 'https://github.com/docker/test-docker-action.git',
collaborators_url: 'https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}',
comments_url: 'https://api.github.com/repos/docker/test-docker-action/comments{/number}',
commits_url: 'https://api.github.com/repos/docker/test-docker-action/commits{/sha}',
compare_url: 'https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}',
contents_url: 'https://api.github.com/repos/docker/test-docker-action/contents/{+path}',
contributors_url: 'https://api.github.com/repos/docker/test-docker-action/contributors',
created_at: 1596792180,
default_branch: 'master',
deployments_url: 'https://api.github.com/repos/docker/test-docker-action/deployments',
description: 'Test "Docker" Actions',
disabled: false,
downloads_url: 'https://api.github.com/repos/docker/test-docker-action/downloads',
events_url: 'https://api.github.com/repos/docker/test-docker-action/events',
fork: false,
forks: 1,
forks_count: 1,
forks_url: 'https://api.github.com/repos/docker/test-docker-action/forks',
full_name: 'docker/test-docker-action',
git_commits_url: 'https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}',
git_refs_url: 'https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}',
git_tags_url: 'https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}',
git_url: 'git://github.com/docker/test-docker-action.git',
has_downloads: true,
has_issues: true,
has_pages: false,
has_projects: true,
has_wiki: true,
homepage: '',
hooks_url: 'https://api.github.com/repos/docker/test-docker-action/hooks',
html_url: 'https://github.com/docker/test-docker-action',
id: 285789493,
is_template: false,
issue_comment_url: 'https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}',
issue_events_url: 'https://api.github.com/repos/docker/test-docker-action/issues/events{/number}',
issues_url: 'https://api.github.com/repos/docker/test-docker-action/issues{/number}',
keys_url: 'https://api.github.com/repos/docker/test-docker-action/keys{/key_id}',
labels_url: 'https://api.github.com/repos/docker/test-docker-action/labels{/name}',
language: 'JavaScript',
languages_url: 'https://api.github.com/repos/docker/test-docker-action/languages',
license: {
key: 'mit',
name: 'MIT License',
node_id: 'MDc6TGljZW5zZTEz',
spdx_id: 'MIT',
url: 'https://api.github.com/licenses/mit'
},
master_branch: 'master',
merges_url: 'https://api.github.com/repos/docker/test-docker-action/merges',
milestones_url: 'https://api.github.com/repos/docker/test-docker-action/milestones{/number}',
mirror_url: null,
name: 'test-docker-action',
node_id: 'MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=',
notifications_url: 'https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}',
open_issues: 6,
open_issues_count: 6,
organization: 'docker',
owner: {
avatar_url: 'https://avatars.githubusercontent.com/u/5429470?v=4',
email: 'info@docker.com',
events_url: 'https://api.github.com/users/docker/events{/privacy}',
followers_url: 'https://api.github.com/users/docker/followers',
following_url: 'https://api.github.com/users/docker/following{/other_user}',
gists_url: 'https://api.github.com/users/docker/gists{/gist_id}',
gravatar_id: '',
html_url: 'https://github.com/docker',
id: 5429470,
login: 'docker',
name: 'docker',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=',
organizations_url: 'https://api.github.com/users/docker/orgs',
received_events_url: 'https://api.github.com/users/docker/received_events',
repos_url: 'https://api.github.com/users/docker/repos',
site_admin: false,
starred_url: 'https://api.github.com/users/docker/starred{/owner}{/repo}',
subscriptions_url: 'https://api.github.com/users/docker/subscriptions',
type: 'Organization',
url: 'https://api.github.com/users/docker'
},
private: true,
pulls_url: 'https://api.github.com/repos/docker/test-docker-action/pulls{/number}',
pushed_at: 1650360446,
releases_url: 'https://api.github.com/repos/docker/test-docker-action/releases{/id}',
size: 796,
ssh_url: 'git@github.com:docker/test-docker-action.git',
stargazers: 0,
stargazers_count: 0,
stargazers_url: 'https://api.github.com/repos/docker/test-docker-action/stargazers',
statuses_url: 'https://api.github.com/repos/docker/test-docker-action/statuses/{sha}',
subscribers_url: 'https://api.github.com/repos/docker/test-docker-action/subscribers',
subscription_url: 'https://api.github.com/repos/docker/test-docker-action/subscription',
svn_url: 'https://github.com/docker/test-docker-action',
tags_url: 'https://api.github.com/repos/docker/test-docker-action/tags',
teams_url: 'https://api.github.com/repos/docker/test-docker-action/teams',
topics: [],
trees_url: 'https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}',
updated_at: '2022-04-19T09:05:09Z',
url: 'https://github.com/docker/test-docker-action',
visibility: 'private',
watchers: 0,
watchers_count: 0
},
sender: {
avatar_url: 'https://avatars.githubusercontent.com/u/1951866?v=4',
events_url: 'https://api.github.com/users/crazy-max/events{/privacy}',
followers_url: 'https://api.github.com/users/crazy-max/followers',
following_url: 'https://api.github.com/users/crazy-max/following{/other_user}',
gists_url: 'https://api.github.com/users/crazy-max/gists{/gist_id}',
gravatar_id: '',
html_url: 'https://github.com/crazy-max',
id: 1951866,
login: 'crazy-max',
node_id: 'MDQ6VXNlcjE5NTE4NjY=',
organizations_url: 'https://api.github.com/users/crazy-max/orgs',
received_events_url: 'https://api.github.com/users/crazy-max/received_events',
repos_url: 'https://api.github.com/users/crazy-max/repos',
site_admin: false,
starred_url: 'https://api.github.com/users/crazy-max/starred{/owner}{/repo}',
subscriptions_url: 'https://api.github.com/users/crazy-max/subscriptions',
type: 'User',
url: 'https://api.github.com/users/crazy-max'
}
};
const githubEventPath = path.join(tmpDir, 'github-event.json');
fs.writeFileSync(githubEventPath, JSON.stringify(githubPayload));
process.env = Object.assign({}, process.env, {
TEMP: tmpDir,
GITHUB_REPOSITORY: 'docker/metadata-action',
GITHUB_REF: 'refs/heads/dev',
GITHUB_RUN_ID: '2188748038',
GITHUB_RUN_ATTEMPT: '1',
GITHUB_RUN_NUMBER: '15',
GITHUB_SHA: '5f3331d7f7044c18ca9f12c77d961c4d7cf3276a',
GITHUB_EVENT_PATH: githubEventPath,
RUNNER_TEMP: path.join(tmpDir, 'runner-temp'),
RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache')
});
const getCommitMock = vi.hoisted(() =>
vi.fn(async () => ({
data: {
commit: {
committer: {
date: '2024-11-13T13:42:28Z'
}
}
}
}))
);
const getOctokitMock = vi.hoisted(() =>
vi.fn(() => ({
rest: {
repos: {
getCommit: getCommitMock
}
}
}))
);
vi.mock('@actions/github', async importOriginal => {
const actual = await importOriginal<typeof import('@actions/github')>();
return {
...actual,
context: {
...actual.context,
payload: githubPayload
},
getOctokit: getOctokitMock
};
});
+4 -4
View File
@@ -1,6 +1,6 @@
import {describe, expect, test} from '@jest/globals';
import {describe, expect, test} from 'vitest';
import {Transform, Parse, Tag, Type, RefEvent, ShaFormat, DefaultPriorities} from '../src/tag';
import {Transform, Parse, Tag, Type, RefEvent, ShaFormat, DefaultPriorities} from '../src/tag.js';
describe('transform', () => {
// prettier-ignore
@@ -107,7 +107,7 @@ describe('transform', () => {
if (!invalid) {
console.error(err);
}
// eslint-disable-next-line jest/no-conditional-expect
// eslint-disable-next-line vitest/no-conditional-expect
expect(true).toBe(invalid);
}
});
@@ -461,7 +461,7 @@ describe('parse', () => {
if (!invalid) {
console.error(err);
}
// eslint-disable-next-line jest/no-conditional-expect
// eslint-disable-next-line vitest/no-conditional-expect
expect(true).toBe(invalid);
}
});
+1 -1
View File
@@ -66,5 +66,5 @@ outputs:
description: 'Bake definition file with tags and labels'
runs:
using: 'node20'
using: 'node24'
main: 'dist/index.js'
+18 -9
View File
@@ -1,12 +1,13 @@
# syntax=docker/dockerfile:1
ARG NODE_VERSION=20
ARG NODE_VERSION=24
FROM node:${NODE_VERSION}-alpine AS base
RUN apk add --no-cache cpio findutils git
RUN apk add --no-cache cpio findutils git rsync
WORKDIR /src
RUN --mount=type=bind,target=.,rw \
--mount=type=cache,target=/src/.yarn/cache <<EOT
set -e
corepack enable
yarn --version
yarn config set --home enableTelemetry 0
@@ -34,18 +35,27 @@ RUN --mount=type=bind,target=.,rw <<EOT
EOT
FROM deps AS build
RUN --mount=type=bind,target=.,rw \
RUN --mount=target=/context \
--mount=type=cache,target=/src/.yarn/cache \
--mount=type=cache,target=/src/node_modules \
yarn run build && mkdir /out && cp -Rf dist /out/
--mount=type=cache,target=/src/node_modules <<EOT
set -e
rsync -a /context/. .
rm -rf dist
yarn run build
mkdir /out
cp -r dist /out
EOT
FROM scratch AS build-update
COPY --from=build /out /
FROM build AS build-validate
RUN --mount=type=bind,target=.,rw <<EOT
RUN --mount=target=/context \
--mount=target=.,type=tmpfs <<EOT
set -e
rsync -a /context/. .
git add -A
rm -rf dist
cp -rf /out/* .
if [ -n "$(git status --porcelain -- dist)" ]; then
echo >&2 'ERROR: Build result differs. Please build first with "docker buildx bake build"'
@@ -58,8 +68,7 @@ FROM deps AS format
RUN --mount=type=bind,target=.,rw \
--mount=type=cache,target=/src/.yarn/cache \
--mount=type=cache,target=/src/node_modules \
yarn run format \
&& mkdir /out && find . -name '*.ts' -not -path './node_modules/*' -not -path './.yarn/*' | cpio -pdm /out
yarn run format && mkdir /out && find . -name '*.ts' -not -path './node_modules/*' -not -path './.yarn/*' | cpio -pdm /out
FROM scratch AS format-update
COPY --from=format /out /
@@ -74,7 +83,7 @@ FROM deps AS test
RUN --mount=type=bind,target=.,rw \
--mount=type=cache,target=/src/.yarn/cache \
--mount=type=cache,target=/src/node_modules \
yarn run test --coverage --coverageDirectory=/tmp/coverage
yarn run test --coverage --coverage.reportsDirectory=/tmp/coverage
FROM scratch AS test-coverage
COPY --from=test /tmp/coverage /
Generated Vendored
+4 -5
View File
@@ -1,7 +1,6 @@
"use strict";
exports.id = 606;
exports.ids = [606];
exports.modules = {
export const id = 606;
export const ids = [606];
export const modules = {
/***/ 606:
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
@@ -296,5 +295,5 @@ const pMapSkip = Symbol('skip');
/***/ })
};
;
//# sourceMappingURL=606.index.js.map
Generated Vendored
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":"606.index.js","mappings":";;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":[".././node_modules/p-map/index.js"],"sourcesContent":["export default async function pMap(\n\titerable,\n\tmapper,\n\t{\n\t\tconcurrency = Number.POSITIVE_INFINITY,\n\t\tstopOnError = true,\n\t\tsignal,\n\t} = {},\n) {\n\treturn new Promise((resolve_, reject_) => {\n\t\tif (iterable[Symbol.iterator] === undefined && iterable[Symbol.asyncIterator] === undefined) {\n\t\t\tthrow new TypeError(`Expected \\`input\\` to be either an \\`Iterable\\` or \\`AsyncIterable\\`, got (${typeof iterable})`);\n\t\t}\n\n\t\tif (typeof mapper !== 'function') {\n\t\t\tthrow new TypeError('Mapper function is required');\n\t\t}\n\n\t\tif (!((Number.isSafeInteger(concurrency) && concurrency >= 1) || concurrency === Number.POSITIVE_INFINITY)) {\n\t\t\tthrow new TypeError(`Expected \\`concurrency\\` to be an integer from 1 and up or \\`Infinity\\`, got \\`${concurrency}\\` (${typeof concurrency})`);\n\t\t}\n\n\t\tconst result = [];\n\t\tconst errors = [];\n\t\tconst skippedIndexesMap = new Map();\n\t\tlet isRejected = false;\n\t\tlet isResolved = false;\n\t\tlet isIterableDone = false;\n\t\tlet resolvingCount = 0;\n\t\tlet currentIndex = 0;\n\t\tconst iterator = iterable[Symbol.iterator] === undefined ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator]();\n\n\t\tconst signalListener = () => {\n\t\t\treject(signal.reason);\n\t\t};\n\n\t\tconst cleanup = () => {\n\t\t\tsignal?.removeEventListener('abort', signalListener);\n\t\t};\n\n\t\tconst resolve = value => {\n\t\t\tresolve_(value);\n\t\t\tcleanup();\n\t\t};\n\n\t\tconst reject = reason => {\n\t\t\tisRejected = true;\n\t\t\tisResolved = true;\n\t\t\treject_(reason);\n\t\t\tcleanup();\n\t\t};\n\n\t\tif (signal) {\n\t\t\tif (signal.aborted) {\n\t\t\t\treject(signal.reason);\n\t\t\t}\n\n\t\t\tsignal.addEventListener('abort', signalListener, {once: true});\n\t\t}\n\n\t\tconst next = async () => {\n\t\t\tif (isResolved) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst nextItem = await iterator.next();\n\n\t\t\tconst index = currentIndex;\n\t\t\tcurrentIndex++;\n\n\t\t\t// Note: `iterator.next()` can be called many times in parallel.\n\t\t\t// This can cause multiple calls to this `next()` function to\n\t\t\t// receive a `nextItem` with `done === true`.\n\t\t\t// The shutdown logic that rejects/resolves must be protected\n\t\t\t// so it runs only one time as the `skippedIndex` logic is\n\t\t\t// non-idempotent.\n\t\t\tif (nextItem.done) {\n\t\t\t\tisIterableDone = true;\n\n\t\t\t\tif (resolvingCount === 0 && !isResolved) {\n\t\t\t\t\tif (!stopOnError && errors.length > 0) {\n\t\t\t\t\t\treject(new AggregateError(errors)); // eslint-disable-line unicorn/error-message\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tisResolved = true;\n\n\t\t\t\t\tif (skippedIndexesMap.size === 0) {\n\t\t\t\t\t\tresolve(result);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst pureResult = [];\n\n\t\t\t\t\t// Support multiple `pMapSkip`'s.\n\t\t\t\t\tfor (const [index, value] of result.entries()) {\n\t\t\t\t\t\tif (skippedIndexesMap.get(index) === pMapSkip) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tpureResult.push(value);\n\t\t\t\t\t}\n\n\t\t\t\t\tresolve(pureResult);\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tresolvingCount++;\n\n\t\t\t// Intentionally detached\n\t\t\t(async () => {\n\t\t\t\ttry {\n\t\t\t\t\tconst element = await nextItem.value;\n\n\t\t\t\t\tif (isResolved) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst value = await mapper(element, index);\n\n\t\t\t\t\t// Use Map to stage the index of the element.\n\t\tLine truncated
{"version":3,"file":"606.index.js","mappings":";;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":[".././node_modules/p-map/index.js"],"sourcesContent":["export default async function pMap(\n\titerable,\n\tmapper,\n\t{\n\t\tconcurrency = Number.POSITIVE_INFINITY,\n\t\tstopOnError = true,\n\t\tsignal,\n\t} = {},\n) {\n\treturn new Promise((resolve_, reject_) => {\n\t\tif (iterable[Symbol.iterator] === undefined && iterable[Symbol.asyncIterator] === undefined) {\n\t\t\tthrow new TypeError(`Expected \\`input\\` to be either an \\`Iterable\\` or \\`AsyncIterable\\`, got (${typeof iterable})`);\n\t\t}\n\n\t\tif (typeof mapper !== 'function') {\n\t\t\tthrow new TypeError('Mapper function is required');\n\t\t}\n\n\t\tif (!((Number.isSafeInteger(concurrency) && concurrency >= 1) || concurrency === Number.POSITIVE_INFINITY)) {\n\t\t\tthrow new TypeError(`Expected \\`concurrency\\` to be an integer from 1 and up or \\`Infinity\\`, got \\`${concurrency}\\` (${typeof concurrency})`);\n\t\t}\n\n\t\tconst result = [];\n\t\tconst errors = [];\n\t\tconst skippedIndexesMap = new Map();\n\t\tlet isRejected = false;\n\t\tlet isResolved = false;\n\t\tlet isIterableDone = false;\n\t\tlet resolvingCount = 0;\n\t\tlet currentIndex = 0;\n\t\tconst iterator = iterable[Symbol.iterator] === undefined ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator]();\n\n\t\tconst signalListener = () => {\n\t\t\treject(signal.reason);\n\t\t};\n\n\t\tconst cleanup = () => {\n\t\t\tsignal?.removeEventListener('abort', signalListener);\n\t\t};\n\n\t\tconst resolve = value => {\n\t\t\tresolve_(value);\n\t\t\tcleanup();\n\t\t};\n\n\t\tconst reject = reason => {\n\t\t\tisRejected = true;\n\t\t\tisResolved = true;\n\t\t\treject_(reason);\n\t\t\tcleanup();\n\t\t};\n\n\t\tif (signal) {\n\t\t\tif (signal.aborted) {\n\t\t\t\treject(signal.reason);\n\t\t\t}\n\n\t\t\tsignal.addEventListener('abort', signalListener, {once: true});\n\t\t}\n\n\t\tconst next = async () => {\n\t\t\tif (isResolved) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst nextItem = await iterator.next();\n\n\t\t\tconst index = currentIndex;\n\t\t\tcurrentIndex++;\n\n\t\t\t// Note: `iterator.next()` can be called many times in parallel.\n\t\t\t// This can cause multiple calls to this `next()` function to\n\t\t\t// receive a `nextItem` with `done === true`.\n\t\t\t// The shutdown logic that rejects/resolves must be protected\n\t\t\t// so it runs only one time as the `skippedIndex` logic is\n\t\t\t// non-idempotent.\n\t\t\tif (nextItem.done) {\n\t\t\t\tisIterableDone = true;\n\n\t\t\t\tif (resolvingCount === 0 && !isResolved) {\n\t\t\t\t\tif (!stopOnError && errors.length > 0) {\n\t\t\t\t\t\treject(new AggregateError(errors)); // eslint-disable-line unicorn/error-message\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tisResolved = true;\n\n\t\t\t\t\tif (skippedIndexesMap.size === 0) {\n\t\t\t\t\t\tresolve(result);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst pureResult = [];\n\n\t\t\t\t\t// Support multiple `pMapSkip`'s.\n\t\t\t\t\tfor (const [index, value] of result.entries()) {\n\t\t\t\t\t\tif (skippedIndexesMap.get(index) === pMapSkip) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tpureResult.push(value);\n\t\t\t\t\t}\n\n\t\t\t\t\tresolve(pureResult);\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tresolvingCount++;\n\n\t\t\t// Intentionally detached\n\t\t\t(async () => {\n\t\t\t\ttry {\n\t\t\t\t\tconst element = await nextItem.value;\n\n\t\t\t\t\tif (isResolved) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst value = await mapper(element, index);\n\n\t\t\t\t\t// Use Map to stage the index of the element.\n\t\t\Line truncated
Generated Vendored
+23 -111
View File
@@ -1,62 +1,4 @@
require('./sourcemap-register.js');(()=>{var r={76846:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var l=Object.getOwnPropertyDescriptor(i,a);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,l)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var l=this&&this.__exportStar||function(r,i){for(var a in r)if(a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a))c(i,r,a)};Object.defineProperty(i,"__esModule",{value:true});const p=a(64487);l(a(13776),i);l(a(45655),i);l(a(64487),i);const d=new p.DefaultArtifactClient;i["default"]=d},35592:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Timestamp=void 0;const c=a(68886);const l=a(68886);const p=a(68886);const d=a(68886);const u=a(68886);const A=a(68886);const h=a(68886);class Timestamp$Type extends h.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){const r=this.create();const i=Date.now();r.seconds=A.PbLong.from(Math.floor(i/1e3)).toString();r.nanos=i%1e3*1e6;return r}toDate(r){return new Date(A.PbLong.from(r.seconds).toNumber()*1e3+Math.ceil(r.nanos/1e6))}fromDate(r){const i=this.create();const a=r.getTime();i.seconds=A.PbLong.from(Math.floor(a/1e3)).toString();i.nanos=a%1e3*1e6;return i}internalJsonWrite(r,i){let a=A.PbLong.from(r.seconds).toNumber()*1e3;if(a<Date.parse("0001-01-01T00:00:00Z")||a>Date.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(r.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let c="Z";if(r.nanos>0){let i=(r.nanos+1e9).toString().substring(1);if(i.substring(3)==="000000")c="."+i.substring(0,3)+"Z";else if(i.substring(6)==="000")c="."+i.substring(0,6)+"Z";else c="."+i+"Z"}return new Date(a).toISOString().replace(".000Z",c)}internalJsonRead(r,i,a){if(typeof r!=="string")throw new Error("Unable to parse Timestamp from JSON "+(0,u.typeofJsonValue)(r)+".");let c=r.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!c)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let l=Date.parse(c[1]+"-"+c[2]+"-"+c[3]+"T"+c[4]+":"+c[5]+":"+c[6]+(c[8]?c[8]:"Z"));if(Number.isNaN(l))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(l<Date.parse("0001-01-01T00:00:00Z")||l>Date.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(!a)a=this.create();a.seconds=A.PbLong.from(l/1e3).toString();a.nanos=0;if(c[7])a.nanos=parseInt("1"+c[7]+"0".repeat(9-c[7].length))-1e9;return a}create(r){const i={seconds:"0",nanos:0};globalThis.Object.defineProperty(i,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,p.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,a,c){let p=c!==null&&c!==void 0?c:this.create(),d=r.pos+i;while(r.pos<d){let[i,c]=r.tag();switch(i){case 1:p.seconds=r.int64().toString();break;case 2:p.nanos=r.int32();break;default:let d=a.readUnknownField;if(d==="throw")throw new globalThis.Error(`Unknown field ${i} (wire type ${c}) for ${this.typeName}`);let u=r.skip(c);if(d!==false)(d===true?l.UnknownFieldHandler.onRead:d)(this.typeName,p,i,c,u)}}return p}internalBinaryWrite(r,i,a){if(r.seconds!=="0")i.tag(1,c.WireType.Varint).int64(r.seconds);if(r.nanos!==0)i.tag(2,c.WireType.Varint).int32(r.nanos);let p=a.writeUnknownFields;if(p!==false)(p==true?l.UnknownFieldHandler.onWrite:p)(this.typeName,r,i);return i}}i.Timestamp=new Timestamp$Type},78806:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.BytesValue=i.StringValue=i.BoolValue=i.UInt32Value=i.Int32Value=i.UInt64Value=i.Int64Value=i.FloatValue=i.DoubleValue=void 0;const c=a(68886);const l=a(68886);const p=a(68886);const d=a(68886);const u=a(68886);const A=a(68886);const h=a(68886);class DoubleValue$Type extends h.MessageType{constructor(){super("google.protobuf.DoubleValue",[{no:1,name:"value",kind:"scalar",T:1}])}internalJsonWrite(r,i){return this.refJsonWriter.scalar(2,r.value,"value",false,true)}internalJsonRead(r,i,a){if(!a)a=this.create();a.value=this.refJsonReader.scalar(r,1,undefined,"value");return a}create(r){const i={value:0};globalThis.Object.defineProperty(i,A.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,u.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,a,c){let l=c!==null&&c!==void 0?c:this.create(),p=r.pos+i;while(r.pos<p){let[i,c]=r.tag();switch(i){case 1:l.value=r.double();break;default:let p=a.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknown field ${i} (wire type ${c}) for ${this.typeName}`);let u=r.skip(c);Line truncated
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=r=>r.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=r=>r.replace(/\r?\n|\r/g,"\r\n");const c=[];const l=new Uint8Array([13,10]);g=0;let p=false;for(const[i,d]of r){if(typeof d==="string"){const r=k.encode(a+`; name="${escape(normalizeLinefeeds(i))}"`+`\r\n\r\n${normalizeLinefeeds(d)}\r\n`);c.push(r);g+=r.byteLength}else{const r=k.encode(`${a}; name="${escape(normalizeLinefeeds(i))}"`+(d.name?`; filename="${escape(d.name)}"`:"")+"\r\n"+`Content-Type: ${d.type||"application/octet-stream"}\r\n\r\n`);c.push(r,d,l);if(typeof d.size==="number"){g+=r.byteLength+d.size+l.byteLength}else{p=true}}}const d=k.encode(`--${i}--`);c.push(d);g+=d.byteLength;if(p){g=null}b=r;h=async function*(){for(const r of c){if(r.stream){yield*r.stream()}else{yield r}}};M="multipart/form-data; boundary="+i}else if(d(r)){b=r;g=r.size;if(r.type){M=r.type}}else if(typeof r[Symbol.asyncIterator]==="function"){if(i){throw new TypeError("keepalive")}if(l.isDisturbed(r)||r.locked){throw new TypeError("Response body object should not be disturbed or locked")}c=r instanceof x?r:p(r)}if(typeof b==="string"||l.isBuffer(b)){g=Buffer.byteLength(b)}if(h!=null){let i;c=new x({async start(){i=h(r)[Symbol.asyncIterator]()},async pull(r){const{value:a,done:l}=await i.next();if(l){queueMicrotask((()=>{r.close()}))}else{if(!w(c)){r.enqueue(new Uint8Array(a))}}return r.desiredSize>0},async cancel(r){await i.return()},type:undefined})}const y={stream:c,source:b,length:g};return[y,M]}function safelyExtractBody(r,i=false){if(!x){x=a(63774).ReadableStream}if(r instanceof x){v(!l.isDisturbed(r),"The body has already been consumed.");v(!r.locked,"The stream is locked.")}return extractBody(r,i)}function cloneBody(r){const[i,a]=r.stream.tee();const c=z(a,{transfer:[a]});const[,l]=c.tee();r.stream=i;return{stream:l,length:r.length,source:r.source}}async function*consumeBody(r){if(r){if(S(r)){yield r}else{const i=r.stream;if(l.isDisturbed(i)){throw new TypeError("The body has already been consumed.")}if(i.locked){throw new TypeError("The stream is locked.")}i[I]=true;yield*i}}}function throwIfAborted(r){if(r.aborted){throw new O("The operation was aborted.","AbortError")}}function bodyMixinMethods(r){const i={blob(){return specConsumeBody(this,(r=>{let i=bodyMimeType(this);if(i==="failure"){i=""}else if(i){i=q(i)}return new C([r],{type:i})}),r)},arrayBuffer(){return specConsumeBody(this,(r=>new Uint8Array(r).buffer),r)},text(){return specConsumeBody(this,utf8DecodeBytes,r)},json(){return specConsumeBody(this,parseJSONFromBytes,r)},async formData(){y.brandCheck(this,r);throwIfAborted(this[M]);const i=this.headers.get("Content-Type");if(/multipart\/form-data/.test(i)){const r={};for(const[i,a]of this.headers)r[i.toLowerCase()]=a;const i=new g;let a;try{a=new c({headers:r,preservePath:true})}catch(r){throw new O(`${r}`,"AbortError")}a.on("field",((r,a)=>{i.append(r,a)}));a.on("file",((r,a,c,l,p)=>{const d=[];if(l==="base64"||l.toLowerCase()==="base64"){let l="";a.on("data",(r=>{l+=r.toString().replace(/[\r\n]/gm,"");const i=l.length-l.length%4;d.push(Buffer.from(l.slice(0,i),"base64"));l=l.slice(i)}));a.on("end",(()=>{d.push(Buffer.from(l,"base64"));i.append(r,new T(d,c,{type:p}))}))}else{a.on("data",(r=>{d.push(r)}));a.on("end",(()=>{i.append(r,new T(d,c,{type:p}))}))}}));const l=new Promise(((r,i)=>{a.on("finish",r);a.on("error",(r=>i(new TypeError(r))))}));if(this.body!==null)for await(const r of consumeBody(this[M].body))a.write(r);a.end();await l;return i}else if(/application\/x-www-form-urlencoded/.test(i)){let r;try{let i="";const a=new TextDecoder("utf-8",{ignoreBOM:true});for await(const r of consumeBody(this[M].body)){if(!S(r)){throw new TypeError("Expected Uint8Array chunk")}i+=a.decode(r,{stream:true})}i+=a.decode();r=new URLSearchParams(i)}catch(r){throw Object.assign(new TypeError,{cause:r})}const i=new g;for(const[a,c]of r){i.append(a,c)}return i}else{await Promise.resolve();throwIfAborted(this[M]);throw y.errors.exception({header:`${r.name}.formData`,message:"Could not parse content as FormData."})}}};return i}function mixinBody(r){Object.assign(r.prototype,bodyMixinMethods(r))}async function specConsumeBody(r,i,a){y.brandCheck(r,a);throwIfAborted(r[M]);if(bodyUnusable(r[M].body)){throw new TypeError("Body is unusable")}const c=h();const errorSteps=r=>c.reject(r);const successSteps=r=>{try{c.resolve(i(r))}catch(r){errorSteps(r)}};if(r[M].body==null){successSteps(new Uint8Array);return c.promise}await b(r[M].body,successSteps,errorSteps);return c.promise}function bodyUnusable(r){return r!=null&&(r.stream.locked||l.isDisturbed(r.stream))}function utf8DecodeBytes(r){if(r.length===0){return""}if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}const i=_.decode(r);return i}function parseJSONFromBytes(r){return JSON.parse(utf8DecodeBytes(r))}function bodyMimeType(r){const{headersList:i}=r[M];const a=i.get("contentLine truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */p[l-4]=this.maskKey[0];p[l-3]=this.maskKey[1];p[l-2]=this.maskKey[2];p[l-1]=this.maskKey[3];p[1]=a;if(a===126){p.writeUInt16BE(i,2)}else if(a===127){p[2]=p[3]=0;p.writeUIntBE(i,4,6)}p[1]|=128;for(let r=0;r<i;r++){p[l+r]=this.frameData[r]^this.maskKey[r%4]}return p}}r.exports={WebsocketFrameSend:WebsocketFrameSend}},11131:(r,i,a)=>{"use strict";const{Writable:c}=a(2203);const l=a(31637);const{parserStates:p,opcodes:d,states:u,emptyBuffer:A}=a(87233);const{kReadyState:h,kSentClose:b,kResponse:g,kReceivedClose:M}=a(5933);const{isValidStatusCode:y,failWebsocketConnection:O,websocketMessageReceived:z}=a(35294);const{WebsocketFrameSend:C}=a(1709);const B={};B.ping=l.channel("undici:websocket:ping");B.pong=l.channel("undici:websocket:pong");class ByteParser extends c{#o=[];#a=0;#c=p.INFO;#l={};#p=[];constructor(r){super();this.ws=r}_write(r,i,a){this.#o.push(r);this.#a+=r.length;this.run(a)}run(r){while(true){if(this.#c===p.INFO){if(this.#a<2){return r()}const i=this.consume(2);this.#l.fin=(i[0]&128)!==0;this.#l.opcode=i[0]&15;this.#l.originalOpcode??=this.#l.opcode;this.#l.fragmented=!this.#l.fin&&this.#l.opcode!==d.CONTINUATION;if(this.#l.fragmented&&this.#l.opcode!==d.BINARY&&this.#l.opcode!==d.TEXT){O(this.ws,"Invalid frame type was fragmented.");return}const a=i[1]&127;if(a<=125){this.#l.payloadLength=a;this.#c=p.READ_DATA}else if(a===126){this.#c=p.PAYLOADLENGTH_16}else if(a===127){this.#c=p.PAYLOADLENGTH_64}if(this.#l.fragmented&&a>125){O(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#l.opcode===d.PING||this.#l.opcode===d.PONG||this.#l.opcode===d.CLOSE)&&a>125){O(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#l.opcode===d.CLOSE){if(a===1){O(this.ws,"Received close frame with a 1-byte body.");return}const r=this.consume(a);this.#l.closeInfo=this.parseCloseBody(false,r);if(!this.ws[b]){const r=Buffer.allocUnsafe(2);r.writeUInt16BE(this.#l.closeInfo.code,0);const i=new C(r);this.ws[g].socket.write(i.createFrame(d.CLOSE),(r=>{if(!r){this.ws[b]=true}}))}this.ws[h]=u.CLOSING;this.ws[M]=true;this.end();return}else if(this.#l.opcode===d.PING){const i=this.consume(a);if(!this.ws[M]){const r=new C(i);this.ws[g].socket.write(r.createFrame(d.PONG));if(B.ping.hasSubscribers){B.ping.publish({payload:i})}}this.#c=p.INFO;if(this.#a>0){continue}else{r();return}}else if(this.#l.opcode===d.PONG){const i=this.consume(a);if(B.pong.hasSubscribers){B.pong.publish({payload:i})}if(this.#a>0){continue}else{r();return}}}else if(this.#c===p.PAYLOADLENGTH_16){if(this.#a<2){return r()}const i=this.consume(2);this.#l.payloadLength=i.readUInt16BE(0);this.#c=p.READ_DATA}else if(this.#c===p.PAYLOADLENGTH_64){if(this.#a<8){return r()}const i=this.consume(8);const a=i.readUInt32BE(0);if(a>2**31-1){O(this.ws,"Received payload length > 2^31 bytes.");return}const c=i.readUInt32BE(4);this.#l.payloadLength=(a<<8)+c;this.#c=p.READ_DATA}else if(this.#c===p.READ_DATA){if(this.#a<this.#l.payloadLength){return r()}else if(this.#a>=this.#l.payloadLength){const r=this.consume(this.#l.payloadLength);this.#p.push(r);if(!this.#l.fragmented||this.#l.fin&&this.#l.opcode===d.CONTINUATION){const r=Buffer.concat(this.#p);z(this.ws,this.#l.originalOpcode,r);this.#l={};this.#p.length=0}this.#c=p.INFO}}if(this.#a>0){continue}else{r();break}}}consume(r){if(r>this.#a){return null}else if(r===0){return A}if(this.#o[0].length===r){this.#a-=this.#o[0].length;return this.#o.shift()}const i=Buffer.allocUnsafe(r);let a=0;while(a!==r){const c=this.#o[0];const{length:l}=c;if(l+a===r){i.set(this.#o.shift(),a);break}else if(l+a>r){i.set(c.subarray(0,r-a),a);this.#o[0]=c.subarray(r-a);break}else{i.set(this.#o.shift(),a);a+=c.length}}this.#a-=r;return i}parseCloseBody(r,i){let a;if(i.length>=2){a=i.readUInt16BE(0)}if(r){if(!y(a)){return null}return{code:a}}let c=i.subarray(2);if(c[0]===239&&c[1]===187&&c[2]===191){c=c.subarray(3)}if(a!==undefined&&!y(a)){return null}try{c=new TextDecoder("utf-8",{fatal:true}).decode(c)}catch{return null}return{code:a,reason:c}}get closingInfo(){return this.#l.closeInfo}}r.exports={ByteParser:ByteParser}},5933:r=>{"use strict";r.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},35294:(r,i,a)=>{"use strict";const{kReadyState:c,kController:l,kResponse:p,kBinaryType:d,kWebSocketURL:u}=a(5933);const{states:A,opcodes:h}=a(87233);const{MessageEvent:b,ErrorEvent:g}=a(32167);function isEstablished(r){return r[c]===A.OPEN}function isClosing(r){return r[c]===A.CLOSING}function isClosed(r){return r[c]===A.CLOSED}function fireEvent(r,i,a=Event,c){const l=new a(r,c);i.dispatchEvent(l)}function websocketMessageReceived(r,i,a){if(r[c]!==A.OPEN){return}let l;if(i===h.TEXT){try{l=new TextDecoder("utf-8",{fatal:true}).deLine truncated
/**
* Archiver Vending
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var c=a(50549);var l={};var vending=function(r,i){return vending.create(r,i)};vending.create=function(r,i){if(l[r]){var a=new c(r,i);a.setFormat(r);a.setModule(new l[r](i));return a}else{throw new Error("create("+r+"): format not registered")}};vending.registerFormat=function(r,i){if(l[r]){throw new Error("register("+r+"): format already registered")}if(typeof i!=="function"){throw new Error("register("+r+"): format module invalid")}if(typeof i.prototype.append!=="function"||typeof i.prototype.finalize!=="function"){throw new Error("register("+r+"): format module missing methods")}l[r]=i};vending.isRegisteredFormat=function(r){if(l[r]){return true}return false};vending.registerFormat("zip",a(22836));vending.registerFormat("tar",a(10396));vending.registerFormat("json",a(54693));r.exports=vending},50549:(r,i,a)=>{
/**
* Archiver Core
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var c=a(79896);var l=a(51364);var p=a(97329);var d=a(16928);var u=a(53296);var A=a(39023).inherits;var h=a(13110);var b=a(29963).Transform;var g=process.platform==="win32";var Archiver=function(r,i){if(!(this instanceof Archiver)){return new Archiver(r,i)}if(typeof r!=="string"){i=r;r="zip"}i=this.options=u.defaults(i,{highWaterMark:1024*1024,statConcurrency:4});b.call(this,i);this._format=false;this._module=false;this._pending=0;this._pointer=0;this._entriesCount=0;this._entriesProcessedCount=0;this._fsEntriesTotalBytes=0;this._fsEntriesProcessedBytes=0;this._queue=p.queue(this._onQueueTask.bind(this),1);this._queue.drain(this._onQueueDrain.bind(this));this._statQueue=p.queue(this._onStatQueueTask.bind(this),i.statConcurrency);this._statQueue.drain(this._onQueueDrain.bind(this));this._state={aborted:false,finalize:false,finalizing:false,finalized:false,modulePiped:false};this._streams=[]};A(Archiver,b);Archiver.prototype._abort=function(){this._state.aborted=true;this._queue.kill();this._statQueue.kill();if(this._queue.idle()){this._shutdown()}};Archiver.prototype._append=function(r,i){i=i||{};var a={source:null,filepath:r};if(!i.name){i.name=r}i.sourcePath=r;a.data=i;this._entriesCount++;if(i.stats&&i.stats instanceof c.Stats){a=this._updateQueueTaskWithStats(a,i.stats);if(a){if(i.stats.size){this._fsEntriesTotalBytes+=i.stats.size}this._queue.push(a)}}else{this._statQueue.push(a)}};Archiver.prototype._finalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}this._state.finalizing=true;this._moduleFinalize();this._state.finalizing=false;this._state.finalized=true};Archiver.prototype._maybeFinalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return false}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize();return true}return false};Archiver.prototype._moduleAppend=function(r,i,a){if(this._state.aborted){a();return}this._module.append(r,i,function(r){this._task=null;if(this._state.aborted){this._shutdown();return}if(r){this.emit("error",r);setImmediate(a);return}this.emit("entry",i);this._entriesProcessedCount++;if(i.stats&&i.stats.size){this._fsEntriesProcessedBytes+=i.stats.size}this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}});setImmediate(a)}.bind(this))};Archiver.prototype._moduleFinalize=function(){if(typeof this._module.finalize==="function"){this._module.finalize()}else if(typeof this._module.end==="function"){this._module.end()}else{this.emit("error",new h("NOENDMETHOD"))}};Archiver.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this));this._module.pipe(this);this._state.modulePiped=true};Archiver.prototype._moduleSupports=function(r){if(!this._module.supports||!this._module.supports[r]){return false}return this._module.supports[r]};Archiver.prototype._moduleUnpipe=function(){this._module.unpipe(this);this._state.modulePiped=false};Archiver.prototype._normalizeEntryData=function(r,i){r=u.defaults(r,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:false});if(i&&r.stats===false){r.stats=i}var a=r.type==="directory";if(r.name){if(typeof r.prefix==="string"&&""!==r.prefix){r.name=r.prefix+"/"+r.name;r.prefix=null}r.name=u.sanitizePath(r.name);if(r.type!=="symlink"&&r.name.slice(-1)==="/"){a=true;r.type="directory"}else if(a){r.name+="/"}}if(typeof r.mode==="number"){if(g){r.mode&=511}else{r.mode&=4095}}else if(r.stats&&r.mode===null){if(g){r.mode=r.stats.mode&511}else{r.mode=r.stats.mode&4095}if(g&&a){r.mode=493}}else if(r.mode===null){r.mode=a?493:420}if(r.stats&&r.date===null){r.date=r.stats.mtime}else{r.date=u.dateify(r.date)}return r};Archiver.prototype._onModuleError=function(r){this.emit("error",r)};Archiver.prototype._onQueueDrain=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize()}};Archiver.prototype._onQueueTask=function(r,i){var fullCallback=()=>{if(r.data.callback){r.data.callback()}i()};if(this._state.finalizing||this._state.finalized||this._state.aborted){fullCallback();return}this._task=r;this._moduleAppend(r.source,r.data,fullCallback)};Archiver.prototype._onStatQueueTask=function(r,i){if(this._state.finalizing||this._state.finalized||this._state.aborted){i();return}c.lstat(r.filepath,function(a,c){if(this._state.aborted){setImmediate(i);return}if(a){this._entriesCount--;this.emit("warning",a);setImmediate(i);return}r=this._updateQueueTaskWithStats(r,c);if(r){if(c.size){this._fsEntriesTotalBytes+=c.size}this._queue.push(r)}setImmediate(i)}.bind(this))};Archiver.prototype._shutdown=function(){this._moduleUnpipe();this.end()};Archiver.prototype._transform=function(r,i,a){if(r){this._pointer+=r.length}a(null,r)};Archiver.prototLine truncated
/**
* Archiver Core
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var c=a(39023);const l={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function ArchiverError(r,i){Error.captureStackTrace(this,this.constructor);this.message=l[r]||r;this.code=r;this.data=i}c.inherits(ArchiverError,Error);i=r.exports=ArchiverError},54693:(r,i,a)=>{
/**
* JSON Format Plugin
*
* @module plugins/json
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var c=a(39023).inherits;var l=a(29963).Transform;var p=a(84928);var d=a(53296);var Json=function(r){if(!(this instanceof Json)){return new Json(r)}r=this.options=d.defaults(r,{});l.call(this,r);this.supports={directory:true,symlink:true};this.files=[]};c(Json,l);Json.prototype._transform=function(r,i,a){a(null,r)};Json.prototype._writeStringified=function(){var r=JSON.stringify(this.files);this.write(r)};Json.prototype.append=function(r,i,a){var c=this;i.crc32=0;function onend(r,l){if(r){a(r);return}i.size=l.length||0;i.crc32=p.unsigned(l);c.files.push(i);a(null,i)}if(i.sourceType==="buffer"){onend(null,r)}else if(i.sourceType==="stream"){d.collectStream(r,onend)}};Json.prototype.finalize=function(){this._writeStringified();this.end()};r.exports=Json},10396:(r,i,a)=>{
/**
* TAR Format Plugin
*
* @module plugins/tar
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var c=a(43106);var l=a(56118);var p=a(53296);var Tar=function(r){if(!(this instanceof Tar)){return new Tar(r)}r=this.options=p.defaults(r,{gzip:false});if(typeof r.gzipOptions!=="object"){r.gzipOptions={}}this.supports={directory:true,symlink:true};this.engine=l.pack(r);this.compressor=false;if(r.gzip){this.compressor=c.createGzip(r.gzipOptions);this.compressor.on("error",this._onCompressorError.bind(this))}};Tar.prototype._onCompressorError=function(r){this.engine.emit("error",r)};Tar.prototype.append=function(r,i,a){var c=this;i.mtime=i.date;function append(r,l){if(r){a(r);return}c.engine.entry(i,l,(function(r){a(r,i)}))}if(i.sourceType==="buffer"){append(null,r)}else if(i.sourceType==="stream"&&i.stats){i.size=i.stats.size;var l=c.engine.entry(i,(function(r){a(r,i)}));r.pipe(l)}else if(i.sourceType==="stream"){p.collectStream(r,append)}};Tar.prototype.finalize=function(){this.engine.finalize()};Tar.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tar.prototype.pipe=function(r,i){if(this.compressor){return this.engine.pipe.apply(this.engine,[this.compressor]).pipe(r,i)}else{return this.engine.pipe.apply(this.engine,arguments)}};Tar.prototype.unpipe=function(){if(this.compressor){return this.compressor.unpipe.apply(this.compressor,arguments)}else{return this.engine.unpipe.apply(this.engine,arguments)}};r.exports=Tar},22836:(r,i,a)=>{
/**
* ZIP Format Plugin
*
* @module plugins/zip
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var c=a(41622);var l=a(53296);var Zip=function(r){if(!(this instanceof Zip)){return new Zip(r)}r=this.options=l.defaults(r,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=new c(r)};Zip.prototype.append=function(r,i,a){this.engine.entry(r,i,a)};Zip.prototype.finalize=function(){this.engine.finalize()};Zip.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Zip.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Zip.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};r.exports=Zip},97329:function(r,i){(function(r,a){true?a(i):0})(this,(function(r){"use strict";function apply(r,...i){return(...a)=>r(...i,...a)}function initialParams(r){return function(...i){var a=i.pop();return r.call(this,i,a)}}var i=typeof queueMicrotask==="function"&&queueMicrotask;var a=typeof setImmediate==="function"&&setImmediate;var c=typeof process==="object"&&typeof process.nextTick==="function";function fallback(r){setTimeout(r,0)}function wrap(r){return(i,...a)=>r((()=>i(...a)))}var l;if(i){l=queueMicrotask}else if(a){l=setImmediate}else if(c){l=process.nextTick}else{l=fallback}var p=wrap(l);function asyncify(r){if(isAsync(r)){return function(...i){const a=i.pop();const c=r.apply(this,i);return handlePromise(c,a)}}return initialParams((function(i,a){var c;try{c=r.apply(this,i)}catch(r){return a(r)}if(c&&typeof c.then==="function"){return handlePromise(c,a)}else{a(null,c)}}))}function handlePromise(r,i){return r.then((r=>{invokeCallback(i,null,r)}),(r=>{invokeCallback(i,r&&(r instanceof Error||r.message)?r:new Error(r))}))}function invokeCallback(r,i,a){try{r(i,a)}catch(r){p((r=>{throw r}),r)}}function isAsync(r){return r[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(r){return r[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(r){return typeof r[Symbol.asyncIterator]==="function"}function wrapAsync(r){if(typeof r!=="function")throw new Error("expected a function");return isAsync(r)?asyncify(r):r}function awaitify(r,i){if(!i)i=r.length;if(!i)throw new Error("arity is undefined");function awaitable(...a){if(typeof a[i-1]==="function"){return r.apply(this,a)}return new Promise(((c,l)=>{a[i-1]=(r,...i)=>{if(r)return l(r);c(i.length>1?i:i[0])};r.apply(this,a)}))}return awaitable}function applyEach$1(r){return function applyEach(i,...a){const c=awaitify((function(c){var l=this;return r(i,((r,i)=>{wrapAsync(r).apply(l,a.concat(i))}),c)}));return c}}function _asyncMap(r,i,a,c){i=i||[];var l=[];var p=0;var d=wrapAsync(a);return r(i,((r,i,a)=>{var c=p++;d(r,((r,i)=>{l[c]=i;a(r)}))}),(r=>{c(r,l)}))}function isArrayLike(r){return r&&typeof r.length==="number"&&r.length>=0&&r.length%1===0}const d={};var u=d;function once(r){function wrapper(...i){if(r===null)return;var a=r;r=null;a.apply(this,i)}Object.assign(wrapper,r);return wrapper}function getIterator(r){return r[Symbol.iterator]&&r[Symbol.iterator]()}function createArrayIterator(r){var i=-1;var a=r.length;return function next(){return++i<a?{value:r[i],key:i}:null}}function createES2015Iterator(r){var i=-1;return function next(){var a=r.next();if(a.done)return null;i++;return{value:a.value,key:i}}}function createObjectIterator(r){var i=r?Object.keys(r):[];var a=-1;var c=i.length;return function next(){var l=i[++a];if(l==="__proto__"){return next()}return a<c?{value:r[l],key:l}:null}}function createIterator(r){if(isArrayLike(r)){return createArrayIterator(r)}var i=getIterator(r);return i?createES2015Iterator(i):createObjectIterator(r)}function onlyOnce(r){return function(...i){if(r===null)throw new Error("Callback was already called.");var a=r;r=null;a.apply(this,i)}}function asyncEachOfLimit(r,i,a,c){let l=false;let p=false;let d=false;let A=0;let h=0;function replenish(){if(A>=i||d||l)return;d=true;r.next().then((({value:r,done:i})=>{if(p||l)return;d=false;if(i){l=true;if(A<=0){c(null)}return}A++;a(r,h,iterateeCallback);h++;replenish()})).catch(handleError)}function iterateeCallback(r,i){A-=1;if(p)return;if(r)return handleError(r);if(r===false){l=true;p=true;return}if(i===u||l&&A<=0){l=true;return c(null)}replenish()}function handleError(r){if(p)return;d=false;l=true;c(r)}replenish()}var eachOfLimit$2=r=>(i,a,c)=>{c=once(c);if(r<=0){throw new RangeError("concurrency limit cannot be less than 1")}if(!i){return c(null)}if(isAsyncGenerator(i)){return asyncEachOfLimit(i,r,a,c)}if(isAsyncIterable(i)){return asyncEachOfLimit(i[Symbol.asyncIterator](),r,a,c)}var l=createIterator(i);var p=false;var d=false;var A=0;var h=false;function iterateeCallback(r,i){if(d)return;A-=1;if(r){p=true;c(r)}else if(r===false){p=true;d=true}else if(i===u||p&&A<=0){p=true;return c(null)}else if(!h){replenish()}}function replenish(){h=true;while(A<r&&!p){var i=l();if(i===null){p=true;if(A<=0){c(null)}return}A+=1;a(i.value,i.key,onlyOnce(iterateeCallback))}h=false}replenish()};function eachOfLimit(r,i,a,c){return eachOfLimit$2(i)(r,Line truncated
/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
var a;(function(r){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){r(i)}else{}}else{r(a={})}})((function(r){r.version="1.2.2";function signed_crc_table(){var r=0,i=new Array(256);for(var a=0;a!=256;++a){r=a;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;i[a]=r}return typeof Int32Array!=="undefined"?new Int32Array(i):i}var i=signed_crc_table();function slice_by_16_tables(r){var i=0,a=0,c=0,l=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(c=0;c!=256;++c)l[c]=r[c];for(c=0;c!=256;++c){a=r[c];for(i=256+c;i<4096;i+=256)a=l[i]=a>>>8^r[a&255]}var p=[];for(c=1;c!=16;++c)p[c-1]=typeof Int32Array!=="undefined"?l.subarray(c*256,c*256+256):l.slice(c*256,c*256+256);return p}var a=slice_by_16_tables(i);var c=a[0],l=a[1],p=a[2],d=a[3],u=a[4];var A=a[5],h=a[6],b=a[7],g=a[8],M=a[9];var y=a[10],O=a[11],z=a[12],C=a[13],B=a[14];function crc32_bstr(r,a){var c=a^-1;for(var l=0,p=r.length;l<p;)c=c>>>8^i[(c^r.charCodeAt(l++))&255];return~c}function crc32_buf(r,a){var I=a^-1,v=r.length-15,w=0;for(;w<v;)I=B[r[w++]^I&255]^C[r[w++]^I>>8&255]^z[r[w++]^I>>16&255]^O[r[w++]^I>>>24]^y[r[w++]]^M[r[w++]]^g[r[w++]]^b[r[w++]]^h[r[w++]]^A[r[w++]]^u[r[w++]]^d[r[w++]]^p[r[w++]]^l[r[w++]]^c[r[w++]]^i[r[w++]];v+=15;while(w<v)I=I>>>8^i[(I^r[w++])&255];return~I}function crc32_str(r,a){var c=a^-1;for(var l=0,p=r.length,d=0,u=0;l<p;){d=r.charCodeAt(l++);if(d<128){c=c>>>8^i[(c^d)&255]}else if(d<2048){c=c>>>8^i[(c^(192|d>>6&31))&255];c=c>>>8^i[(c^(128|d&63))&255]}else if(d>=55296&&d<57344){d=(d&1023)+64;u=r.charCodeAt(l++)&1023;c=c>>>8^i[(c^(240|d>>8&7))&255];c=c>>>8^i[(c^(128|d>>2&63))&255];c=c>>>8^i[(c^(128|u>>6&15|(d&3)<<4))&255];c=c>>>8^i[(c^(128|u&63))&255]}else{c=c>>>8^i[(c^(224|d>>12&15))&255];c=c>>>8^i[(c^(128|d>>6&63))&255];c=c>>>8^i[(c^(128|d&63))&255]}}return~c}r.table=i;r.bstr=crc32_bstr;r.buf=crc32_buf;r.str=crc32_str}))},3662:(r,i,a)=>{"use strict";const{Transform:c}=a(29963);const l=a(84891);class CRC32Stream extends c{constructor(r){super(r);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0}_transform(r,i,a){if(r){this.checksum=l.buf(r,this.checksum)>>>0;this.rawSize+=r.length}a(null,r)}digest(r){const i=Buffer.allocUnsafe(4);i.writeUInt32BE(this.checksum>>>0,0);return r?i.toString(r):i}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}r.exports=CRC32Stream},76252:(r,i,a)=>{"use strict";const{DeflateRaw:c}=a(43106);const l=a(84891);class DeflateCRC32Stream extends c{constructor(r){super(r);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0;this.compressedSize=0}push(r,i){if(r){this.compressedSize+=r.length}return super.push(r,i)}_transform(r,i,a){if(r){this.checksum=l.buf(r,this.checksum)>>>0;this.rawSize+=r.length}super._transform(r,i,a)}digest(r){const i=Buffer.allocUnsafe(4);i.writeUInt32BE(this.checksum>>>0,0);return r?i.toString(r):i}hex(){return this.digest("hex").toUpperCase()}size(r=false){if(r){return this.compressedSize}else{return this.rawSize}}}r.exports=DeflateCRC32Stream},82770:(r,i,a)=>{"use strict";r.exports={CRC32Stream:a(3662),DeflateCRC32Stream:a(76252)}},6110:(r,i,a)=>{i.formatArgs=formatArgs;i.save=save;i.load=load;i.useColors=useColors;i.storage=localstorage();i.destroy=(()=>{let r=false;return()=>{if(!r){r=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();i.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgeLine truncated
/**
* @author Toru Nagashima <https://github.com/mysticatea>
* @copyright 2015 Toru Nagashima. All rights reserved.
* See LICENSE file in root directory for full license.
*/Object.defineProperty(i,"__esModule",{value:true});const a=new WeakMap;const c=new WeakMap;function pd(r){const i=a.get(r);console.assert(i!=null,"'this' is expected an Event object, but got",r);return i}function setCancelFlag(r){if(r.passiveListener!=null){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error("Unable to preventDefault inside passive event listener invocation.",r.passiveListener)}return}if(!r.event.cancelable){return}r.canceled=true;if(typeof r.event.preventDefault==="function"){r.event.preventDefault()}}function Event(r,i){a.set(this,{eventTarget:r,event:i,eventPhase:2,currentTarget:r,canceled:false,stopped:false,immediateStopped:false,passiveListener:null,timeStamp:i.timeStamp||Date.now()});Object.defineProperty(this,"isTrusted",{value:false,enumerable:true});const c=Object.keys(i);for(let r=0;r<c.length;++r){const i=c[r];if(!(i in this)){Object.defineProperty(this,i,defineRedirectDescriptor(i))}}}Event.prototype={get type(){return pd(this).event.type},get target(){return pd(this).eventTarget},get currentTarget(){return pd(this).currentTarget},composedPath(){const r=pd(this).currentTarget;if(r==null){return[]}return[r]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return pd(this).eventPhase},stopPropagation(){const r=pd(this);r.stopped=true;if(typeof r.event.stopPropagation==="function"){r.event.stopPropagation()}},stopImmediatePropagation(){const r=pd(this);r.stopped=true;r.immediateStopped=true;if(typeof r.event.stopImmediatePropagation==="function"){r.event.stopImmediatePropagation()}},get bubbles(){return Boolean(pd(this).event.bubbles)},get cancelable(){return Boolean(pd(this).event.cancelable)},preventDefault(){setCancelFlag(pd(this))},get defaultPrevented(){return pd(this).canceled},get composed(){return Boolean(pd(this).event.composed)},get timeStamp(){return pd(this).timeStamp},get srcElement(){return pd(this).eventTarget},get cancelBubble(){return pd(this).stopped},set cancelBubble(r){if(!r){return}const i=pd(this);i.stopped=true;if(typeof i.event.cancelBubble==="boolean"){i.event.cancelBubble=true}},get returnValue(){return!pd(this).canceled},set returnValue(r){if(!r){setCancelFlag(pd(this))}},initEvent(){}};Object.defineProperty(Event.prototype,"constructor",{value:Event,configurable:true,writable:true});if(typeof window!=="undefined"&&typeof window.Event!=="undefined"){Object.setPrototypeOf(Event.prototype,window.Event.prototype);c.set(window.Event.prototype,Event)}function defineRedirectDescriptor(r){return{get(){return pd(this).event[r]},set(i){pd(this).event[r]=i},configurable:true,enumerable:true}}function defineCallDescriptor(r){return{value(){const i=pd(this).event;return i[r].apply(i,arguments)},configurable:true,enumerable:true}}function defineWrapper(r,i){const a=Object.keys(i);if(a.length===0){return r}function CustomEvent(i,a){r.call(this,i,a)}CustomEvent.prototype=Object.create(r.prototype,{constructor:{value:CustomEvent,configurable:true,writable:true}});for(let c=0;c<a.length;++c){const l=a[c];if(!(l in r.prototype)){const r=Object.getOwnPropertyDescriptor(i,l);const a=typeof r.value==="function";Object.defineProperty(CustomEvent.prototype,l,a?defineCallDescriptor(l):defineRedirectDescriptor(l))}}return CustomEvent}function getWrapper(r){if(r==null||r===Object.prototype){return Event}let i=c.get(r);if(i==null){i=defineWrapper(getWrapper(Object.getPrototypeOf(r)),r);c.set(r,i)}return i}function wrapEvent(r,i){const a=getWrapper(Object.getPrototypeOf(i));return new a(r,i)}function isStopped(r){return pd(r).immediateStopped}function setEventPhase(r,i){pd(r).eventPhase=i}function setCurrentTarget(r,i){pd(r).currentTarget=i}function setPassiveListener(r,i){pd(r).passiveListener=i}const l=new WeakMap;const p=1;const d=2;const u=3;function isObject(r){return r!==null&&typeof r==="object"}function getListeners(r){const i=l.get(r);if(i==null){throw new TypeError("'this' is expected an EventTarget object, but got another value.")}return i}function defineEventAttributeDescriptor(r){return{get(){const i=getListeners(this);let a=i.get(r);while(a!=null){if(a.listenerType===u){return a.listener}a=a.next}return null},set(i){if(typeof i!=="function"&&!isObject(i)){i=null}const a=getListeners(this);let c=null;let l=a.get(r);while(l!=null){if(l.listenerType===u){if(c!==null){c.next=l.next}else if(l.next!==null){a.set(r,l.next)}else{a.delete(r)}}else{c=l}l=l.next}if(i!==null){const l={listener:i,listenerType:u,passive:false,once:false,next:null};if(c===null){a.set(r,l)}else{c.next=l}}},configurable:true,enumerable:true}}function defineEventAttribute(r,i){Object.defineProperty(r,`on${i}`,defineEventAttributeDescriptor(i))}function defineCustomEventTarget(r){function CustomEventTarget(){EventTarget.call(this)}CustomEventTarget.prototype=Object.create(EventTarget.prototype,{constructor:{value:CustomEventTarget,configurable:true,writable:true}});for(let i=0;i<r.length;++i){Line truncated
/*! https://mths.be/he v1.2.0 by @mathias | MIT license */(function(a){var c=true&&i;var l=true&&r&&r.exports==c&&r;var p=typeof global=="object"&&global;if(p.global===p||p.window===p){a=p}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;var u=/[\x01-\x7F]/g;var A=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;var h=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g;var b={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprimeLine truncated
import './sourcemap-register.cjs';import{createRequire as t}from"module";var r={23311:function(t,r){var o=this&&this.__awaiter||function(t,r,o,i){function adopt(t){return t instanceof o?t:new o((function(r){r(t)}))}return new(o||(o=Promise))((function(o,a){function fulfilled(t){try{step(i.next(t))}catch(t){a(t)}}function rejected(t){try{step(i["throw"](t))}catch(t){a(t)}}function step(t){t.done?o(t.value):adopt(t.value).then(fulfilled,rejected)}step((i=i.apply(t,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(t,r,o,i,a,c,p){this.method=t;this.requestHeaders=r;this.requests=o;this.headers=i;this.response=a;this.status=c;this.trailers=p}then(t,r){return this.promiseFinished().then((r=>t?Promise.resolve(t(r)):r),(t=>r?Promise.resolve(r(t)):Promise.reject(t)))}promiseFinished(){return o(this,void 0,void 0,(function*(){let[t,r,o,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:t,response:r,status:o,trailers:i}}))}}r.ClientStreamingCall=ClientStreamingCall},69499:(t,r)=>{Object.defineProperty(r,"__esModule",{value:true});r.Deferred=r.DeferredState=void 0;var o;(function(t){t[t["PENDING"]=0]="PENDING";t[t["REJECTED"]=1]="REJECTED";t[t["RESOLVED"]=2]="RESOLVED"})(o=r.DeferredState||(r.DeferredState={}));class Deferred{constructor(t=true){this._state=o.PENDING;this._promise=new Promise(((t,r)=>{this._resolve=t;this._reject=r}));if(t){this._promise.catch((t=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(t){if(this.state!==o.PENDING)throw new Error(`cannot resolve ${o[this.state].toLowerCase()}`);this._resolve(t);this._state=o.RESOLVED}reject(t){if(this.state!==o.PENDING)throw new Error(`cannot reject ${o[this.state].toLowerCase()}`);this._reject(t);this._state=o.REJECTED}resolvePending(t){if(this._state===o.PENDING)this.resolve(t)}rejectPending(t){if(this._state===o.PENDING)this.reject(t)}}r.Deferred=Deferred},40800:function(t,r){var o=this&&this.__awaiter||function(t,r,o,i){function adopt(t){return t instanceof o?t:new o((function(r){r(t)}))}return new(o||(o=Promise))((function(o,a){function fulfilled(t){try{step(i.next(t))}catch(t){a(t)}}function rejected(t){try{step(i["throw"](t))}catch(t){a(t)}}function step(t){t.done?o(t.value):adopt(t.value).then(fulfilled,rejected)}step((i=i.apply(t,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(t,r,o,i,a,c,p){this.method=t;this.requestHeaders=r;this.requests=o;this.headers=i;this.responses=a;this.status=c;this.trailers=p}then(t,r){return this.promiseFinished().then((r=>t?Promise.resolve(t(r)):r),(t=>r?Promise.resolve(r(t)):Promise.reject(t)))}promiseFinished(){return o(this,void 0,void 0,(function*(){let[t,r,o]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:t,status:r,trailers:o}}))}}r.DuplexStreamingCall=DuplexStreamingCall},76762:(t,r,o)=>{var i;i={value:true};var a=o(42554);Object.defineProperty(r,"C0",{enumerable:true,get:function(){return a.ServiceType}});var c=o(83402);i={enumerable:true,get:function(){return c.readMethodOptions}};i={enumerable:true,get:function(){return c.readMethodOption}};i={enumerable:true,get:function(){return c.readServiceOption}};var p=o(50422);i={enumerable:true,get:function(){return p.RpcError}};var u=o(63474);i={enumerable:true,get:function(){return u.mergeRpcOptions}};var l=o(58788);i={enumerable:true,get:function(){return l.RpcOutputStreamController}};var d=o(37816);i={enumerable:true,get:function(){return d.TestTransport}};var A=o(69499);i={enumerable:true,get:function(){return A.Deferred}};i={enumerable:true,get:function(){return A.DeferredState}};var b=o(40800);i={enumerable:true,get:function(){return b.DuplexStreamingCall}};var h=o(23311);i={enumerable:true,get:function(){return h.ClientStreamingCall}};var M=o(22715);i={enumerable:true,get:function(){return M.ServerStreamingCall}};var g=o(80738);i={enumerable:true,get:function(){return g.UnaryCall}};var z=o(84359);i={enumerable:true,get:function(){return z.stackIntercept}};i={enumerable:true,get:function(){return z.stackDuplexStreamingInterceptors}};i={enumerable:true,get:function(){return z.stackClientStreamingInterceptors}};i={enumerable:true,get:function(){return z.stackServerStreamingInterceptors}};i={enumerable:true,get:function(){return z.stackUnaryInterceptors}};var O=o(44626);i={enumerable:true,get:function(){return O.ServerCallContextController}}},83402:(t,r,o)=>{Object.defineProperty(r,"__esModule",{value:true});r.readServiceOption=r.readMethodOption=r.readMethodOptions=r.normalizeMethodInfo=void 0;const i=o(88372);function normalizeMethodInfo(t,r){var o,a,c;let p=t;p.service=r;p.localName=(o=p.localName)!==null&&o!==void 0?o:i.lowerCamelCase(p.name);p.serverStreaming=!!p.serverStreaming;p.Line truncated
/**
* @preserve
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
@@ -68,13 +10,7 @@ var a;(function(r){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){r(i)}else
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
* @see http://sites.google.com/site/murmurhash/
*/
(function(){var i;function MurmurHash3(r,a){var c=this instanceof MurmurHash3?this:i;c.reset(a);if(typeof r==="string"&&r.length>0){c.hash(r)}if(c!==this){return c}}MurmurHash3.prototype.hash=function(r){var i,a,c,l,p;p=r.length;this.len+=p;a=this.k1;c=0;switch(this.rem){case 0:a^=p>c?r.charCodeAt(c++)&65535:0;case 1:a^=p>c?(r.charCodeAt(c++)&65535)<<8:0;case 2:a^=p>c?(r.charCodeAt(c++)&65535)<<16:0;case 3:a^=p>c?(r.charCodeAt(c)&255)<<24:0;a^=p>c?(r.charCodeAt(c++)&65280)>>8:0}this.rem=p+this.rem&3;p-=this.rem;if(p>0){i=this.h1;while(1){a=a*11601+(a&65535)*3432906752&4294967295;a=a<<15|a>>>17;a=a*13715+(a&65535)*461832192&4294967295;i^=a;i=i<<13|i>>>19;i=i*5+3864292196&4294967295;if(c>=p){break}a=r.charCodeAt(c++)&65535^(r.charCodeAt(c++)&65535)<<8^(r.charCodeAt(c++)&65535)<<16;l=r.charCodeAt(c++);a^=(l&255)<<24^(l&65280)>>8}a=0;switch(this.rem){case 3:a^=(r.charCodeAt(c+2)&65535)<<16;case 2:a^=(r.charCodeAt(c+1)&65535)<<8;case 1:a^=r.charCodeAt(c)&65535}this.h1=i}this.k1=a;return this};MurmurHash3.prototype.result=function(){var r,i;r=this.k1;i=this.h1;if(r>0){r=r*11601+(r&65535)*3432906752&4294967295;r=r<<15|r>>>17;r=r*13715+(r&65535)*461832192&4294967295;i^=r}i^=this.len;i^=i>>>16;i=i*51819+(i&65535)*2246770688&4294967295;i^=i>>>13;i=i*44597+(i&65535)*3266445312&4294967295;i^=i>>>16;return i>>>0};MurmurHash3.prototype.reset=function(r){this.h1=typeof r==="number"?r:0;this.rem=this.k1=this.len=0;return this};i=new MurmurHash3;if(true){r.exports=MurmurHash3}else{}})()},39598:(r,i,a)=>{try{var c=a(39023);if(typeof c.inherits!=="function")throw"";r.exports=c.inherits}catch(i){r.exports=a(26589)}},26589:r=>{if(typeof Object.create==="function"){r.exports=function inherits(r,i){if(i){r.super_=i;r.prototype=Object.create(i.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}})}}}else{r.exports=function inherits(r,i){if(i){r.super_=i;var TempCtor=function(){};TempCtor.prototype=i.prototype;r.prototype=new TempCtor;r.prototype.constructor=r}}}},68850:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.AddressError=void 0;class AddressError extends Error{constructor(r,i){super(r);this.name="AddressError";if(i!==null){this.parseMessage=i}}}i.AddressError=AddressError},45864:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.isCorrect=i.isInSubnet=void 0;function isInSubnet(r){if(this.subnetMask<r.subnetMask){return false}if(this.mask(r.subnetMask)===r.mask()){return true}return false}i.isInSubnet=isInSubnet;function isCorrect(r){return function(){if(this.addressMinusSuffix!==this.correctForm()){return false}if(this.subnetMask===r&&!this.parsedSubnet){return true}return this.parsedSubnet===String(this.subnetMask)}}i.isCorrect=isCorrect},79253:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var l=Object.getOwnPropertyDescriptor(i,a);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,l)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.v6=i.AddressError=i.Address6=i.Address4=void 0;const d=a(17946);Object.defineProperty(i,"Address4",{enumerable:true,get:function(){return d.Address4}});const u=a(38096);Object.defineProperty(i,"Address6",{enumerable:true,get:function(){return u.Address6}});const A=a(68850);Object.defineProperty(i,"AddressError",{enumerable:true,get:function(){return A.AddressError}});const h=p(a(20339));i.v6={helpers:h}},17946:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var l=Object.getOwnPropertyDescriptor(i,a);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,l)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.Address4=void 0;const d=p(a(45864));const u=p(a(66437));const A=a(68850);const h=a(95947);const b=a(19973);class Address4{constructor(r){this.groups=u.GROUPS;this.parsedAddress=[];this.parsedSubnet="";this.subnet="/32";this.subnetMask=32;this.v4=true;this.isCorrect=d.isCorrect(u.BITS);this.isInSubnet=d.isInSubnet;this.Line truncated
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function isObject(r){return Object.prototype.toString.call(r)==="[object Object]"}function isPlainObject(r){var i,a;if(isObject(r)===false)return false;i=r.constructor;if(i===undefined)return true;a=i.prototype;if(isObject(a)===false)return false;if(a.hasOwnProperty("isPrototypeOf")===false){return false}return true}i.isPlainObject=isPlainObject},96543:r=>{"use strict";const isStream=r=>r!==null&&typeof r==="object"&&typeof r.pipe==="function";isStream.writable=r=>isStream(r)&&r.writable!==false&&typeof r._write==="function"&&typeof r._writableState==="object";isStream.readable=r=>isStream(r)&&r.readable!==false&&typeof r._read==="function"&&typeof r._readableState==="object";isStream.duplex=r=>isStream.writable(r)&&isStream.readable(r);isStream.transform=r=>isStream.duplex(r)&&typeof r._transform==="function";r.exports=isStream},82513:r=>{var i={}.toString;r.exports=Array.isArray||function(r){return i.call(r)=="[object Array]"}},95947:function(r,i){(function(){var a;var c=0xdeadbeefcafe;var l=(c&16777215)==15715070;function BigInteger(r,i,a){if(r!=null)if("number"==typeof r)this.fromNumber(r,i,a);else if(i==null&&"string"!=typeof r)this.fromString(r,256);else this.fromString(r,i)}function nbi(){return new BigInteger(null)}function am1(r,i,a,c,l,p){while(--p>=0){var d=i*this[r++]+a[c]+l;l=Math.floor(d/67108864);a[c++]=d&67108863}return l}function am2(r,i,a,c,l,p){var d=i&32767,u=i>>15;while(--p>=0){var A=this[r]&32767;var h=this[r++]>>15;var b=u*A+h*d;A=d*A+((b&32767)<<15)+a[c]+(l&1073741823);l=(A>>>30)+(b>>>15)+u*h+(l>>>30);a[c++]=A&1073741823}return l}function am3(r,i,a,c,l,p){var d=i&16383,u=i>>14;while(--p>=0){var A=this[r]&16383;var h=this[r++]>>14;var b=u*A+h*d;A=d*A+((b&16383)<<14)+a[c]+l;l=(A>>28)+(b>>14)+u*h;a[c++]=A&268435455}return l}var p=typeof navigator!=="undefined";if(p&&l&&navigator.appName=="Microsoft Internet Explorer"){BigInteger.prototype.am=am2;a=30}else if(p&&l&&navigator.appName!="Netscape"){BigInteger.prototype.am=am1;a=26}else{BigInteger.prototype.am=am3;a=28}BigInteger.prototype.DB=a;BigInteger.prototype.DM=(1<<a)-1;BigInteger.prototype.DV=1<<a;var d=52;BigInteger.prototype.FV=Math.pow(2,d);BigInteger.prototype.F1=d-a;BigInteger.prototype.F2=2*a-d;var u="0123456789abcdefghijklmnopqrstuvwxyz";var A=new Array;var h,b;h="0".charCodeAt(0);for(b=0;b<=9;++b)A[h++]=b;h="a".charCodeAt(0);for(b=10;b<36;++b)A[h++]=b;h="A".charCodeAt(0);for(b=10;b<36;++b)A[h++]=b;function int2char(r){return u.charAt(r)}function intAt(r,i){var a=A[r.charCodeAt(i)];return a==null?-1:a}function bnpCopyTo(r){for(var i=this.t-1;i>=0;--i)r[i]=this[i];r.t=this.t;r.s=this.s}function bnpFromInt(r){this.t=1;this.s=r<0?-1:0;if(r>0)this[0]=r;else if(r<-1)this[0]=r+this.DV;else this.t=0}function nbv(r){var i=nbi();i.fromInt(r);return i}function bnpFromString(r,i){var a;if(i==16)a=4;else if(i==8)a=3;else if(i==256)a=8;else if(i==2)a=1;else if(i==32)a=5;else if(i==4)a=2;else{this.fromRadix(r,i);return}this.t=0;this.s=0;var c=r.length,l=false,p=0;while(--c>=0){var d=a==8?r[c]&255:intAt(r,c);if(d<0){if(r.charAt(c)=="-")l=true;continue}l=false;if(p==0)this[this.t++]=d;else if(p+a>this.DB){this[this.t-1]|=(d&(1<<this.DB-p)-1)<<p;this[this.t++]=d>>this.DB-p}else this[this.t-1]|=d<<p;p+=a;if(p>=this.DB)p-=this.DB}if(a==8&&(r[0]&128)!=0){this.s=-1;if(p>0)this[this.t-1]|=(1<<this.DB-p)-1<<p}this.clamp();if(l)BigInteger.ZERO.subTo(this,this)}function bnpClamp(){var r=this.s&this.DM;while(this.t>0&&this[this.t-1]==r)--this.t}function bnToString(r){if(this.s<0)return"-"+this.negate().toString(r);var i;if(r==16)i=4;else if(r==8)i=3;else if(r==2)i=1;else if(r==32)i=5;else if(r==4)i=2;else return this.toRadix(r);var a=(1<<i)-1,c,l=false,p="",d=this.t;var u=this.DB-d*this.DB%i;if(d-- >0){if(u<this.DB&&(c=this[d]>>u)>0){l=true;p=int2char(c)}while(d>=0){if(u<i){c=(this[d]&(1<<u)-1)<<i-u;c|=this[--d]>>(u+=this.DB-i)}else{c=this[d]>>(u-=i)&a;if(u<=0){u+=this.DB;--d}}if(c>0)l=true;if(l)p+=int2char(c)}}return l?p:"0"}function bnNegate(){var r=nbi();BigInteger.ZERO.subTo(this,r);return r}function bnAbs(){return this.s<0?this.negate():this}function bnCompareTo(r){var i=this.s-r.s;if(i!=0)return i;var a=this.t;i=a-r.t;if(i!=0)return this.s<0?-i:i;while(--a>=0)if((i=this[a]-r[a])!=0)return i;return 0}function nbits(r){var i=1,a;if((a=r>>>16)!=0){r=a;i+=16}if((a=r>>8)!=0){r=a;i+=8}if((a=r>>4)!=0){r=a;i+=4}if((a=r>>2)!=0){r=a;i+=2}if((a=r>>1)!=0){r=a;i+=1}return i}function bnBitLength(){if(this.t<=0)return 0;return this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)}function bnpDLShiftTo(r,i){var a;for(a=this.t-1;a>=0;--a)i[a+r]=this[a];for(a=r-1;a>=0;--a)i[a]=0;i.t=this.t+r;i.s=this.s}function bnpDRShiftTo(r,i){for(var a=r;a<this.t;++a)i[a-r]=this[a];i.t=Math.max(this.t-r,0);i.s=this.s}function bnpLShiftTo(r,i){var a=r%this.DB;var c=this.DB-a;var l=(1<<c)-1;var p=Math.floor(r/this.DB),d=this.s<<a&this.DM,u;for(u=this.t-1;u>=0;--u){i[u+p+1]=this[u]>>c|d;d=(this[u]&l)<<a}for(u=p-1;u>=0;--u)i[u]=0;i[p]=d;i.t=this.t+p+1;i.s=this.s;i.clamp()}funLine truncated
(function(){var r;function MurmurHash3(t,o){var i=this instanceof MurmurHash3?this:r;i.reset(o);if(typeof t==="string"&&t.length>0){i.hash(t)}if(i!==this){return i}}MurmurHash3.prototype.hash=function(t){var r,o,i,a,c;c=t.length;this.len+=c;o=this.k1;i=0;switch(this.rem){case 0:o^=c>i?t.charCodeAt(i++)&65535:0;case 1:o^=c>i?(t.charCodeAt(i++)&65535)<<8:0;case 2:o^=c>i?(t.charCodeAt(i++)&65535)<<16:0;case 3:o^=c>i?(t.charCodeAt(i)&255)<<24:0;o^=c>i?(t.charCodeAt(i++)&65280)>>8:0}this.rem=c+this.rem&3;c-=this.rem;if(c>0){r=this.h1;while(1){o=o*11601+(o&65535)*3432906752&4294967295;o=o<<15|o>>>17;o=o*13715+(o&65535)*461832192&4294967295;r^=o;r=r<<13|r>>>19;r=r*5+3864292196&4294967295;if(i>=c){break}o=t.charCodeAt(i++)&65535^(t.charCodeAt(i++)&65535)<<8^(t.charCodeAt(i++)&65535)<<16;a=t.charCodeAt(i++);o^=(a&255)<<24^(a&65280)>>8}o=0;switch(this.rem){case 3:o^=(t.charCodeAt(i+2)&65535)<<16;case 2:o^=(t.charCodeAt(i+1)&65535)<<8;case 1:o^=t.charCodeAt(i)&65535}this.h1=r}this.k1=o;return this};MurmurHash3.prototype.result=function(){var t,r;t=this.k1;r=this.h1;if(t>0){t=t*11601+(t&65535)*3432906752&4294967295;t=t<<15|t>>>17;t=t*13715+(t&65535)*461832192&4294967295;r^=t}r^=this.len;r^=r>>>16;r=r*51819+(r&65535)*2246770688&4294967295;r^=r>>>13;r=r*44597+(r&65535)*3266445312&4294967295;r^=r>>>16;return r>>>0};MurmurHash3.prototype.reset=function(t){this.h1=typeof t==="number"?t:0;this.rem=this.k1=this.len=0;return this};r=new MurmurHash3;if(true){t.exports=MurmurHash3}else{}})()},68850:(t,r)=>{Object.defineProperty(r,"__esModule",{value:true});r.AddressError=void 0;class AddressError extends Error{constructor(t,r){super(t);this.name="AddressError";if(r!==null){this.parseMessage=r}}}r.AddressError=AddressError},45864:(t,r)=>{Object.defineProperty(r,"__esModule",{value:true});r.isCorrect=r.isInSubnet=void 0;function isInSubnet(t){if(this.subnetMask<t.subnetMask){return false}if(this.mask(t.subnetMask)===t.mask()){return true}return false}r.isInSubnet=isInSubnet;function isCorrect(t){return function(){if(this.addressMinusSuffix!==this.correctForm()){return false}if(this.subnetMask===t&&!this.parsedSubnet){return true}return this.parsedSubnet===String(this.subnetMask)}}r.isCorrect=isCorrect},79253:function(t,r,o){var i=this&&this.__createBinding||(Object.create?function(t,r,o,i){if(i===undefined)i=o;var a=Object.getOwnPropertyDescriptor(r,o);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[o]}}}Object.defineProperty(t,i,a)}:function(t,r,o,i){if(i===undefined)i=o;t[i]=r[o]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var c=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o))i(r,t,o);a(r,t);return r};Object.defineProperty(r,"__esModule",{value:true});r.v6=r.AddressError=r.Address6=r.Address4=void 0;const p=o(17946);Object.defineProperty(r,"Address4",{enumerable:true,get:function(){return p.Address4}});const u=o(38096);Object.defineProperty(r,"Address6",{enumerable:true,get:function(){return u.Address6}});const l=o(68850);Object.defineProperty(r,"AddressError",{enumerable:true,get:function(){return l.AddressError}});const d=c(o(20339));r.v6={helpers:d}},17946:function(t,r,o){var i=this&&this.__createBinding||(Object.create?function(t,r,o,i){if(i===undefined)i=o;var a=Object.getOwnPropertyDescriptor(r,o);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[o]}}}Object.defineProperty(t,i,a)}:function(t,r,o,i){if(i===undefined)i=o;t[i]=r[o]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var c=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o))i(r,t,o);a(r,t);return r};Object.defineProperty(r,"__esModule",{value:true});r.Address4=void 0;const p=c(o(45864));const u=c(o(66437));const l=o(68850);const d=o(95947);const A=o(19973);class Address4{constructor(t){this.groups=u.GROUPS;this.parsedAddress=[];this.parsedSubnet="";this.subnet="/32";this.subnetMask=32;this.v4=true;this.isCorrect=p.isCorrect(u.BITS);this.isInSubnet=p.isInSubnet;this.address=t;const r=u.RE_SUBNET_STRING.exec(t);if(r){this.parsedSubnet=r[0].replace("/","");this.subnetMask=parseInt(this.parsedSubnet,10);this.subnet=`/${this.subnetMask}`;if(this.subnetMask<0||this.subnetMask>u.BITS){throw new l.AddressError("Invalid subnet mask.")}t=t.replace(u.RE_SUBNET_STRING,"")}this.addressMinusSuffix=t;this.parsedAddress=this.parse(t)}static isValid(t){try{new Address4(t);return true}catch(t){return false}}parse(t){const r=t.split(".");if(!t.match(u.RE_ADDRESS)){throw new l.AddressError("Invalid IPv4 address.")}return r}correctForLine truncated
/**
* @license
* Copyright (c) 2010-2012 Mikeal Rogers
@@ -87,109 +23,85 @@ var a;(function(r){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){r(i)}else
* 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.
*/if(new d.URL(r.url).hostname!==u.hostname){r.headers.delete("authorization");r.headers.delete("cookie")}if(i.status===303||r.method==="POST"&&[301,302].includes(i.status)){c.method="GET";c.body=null;r.headers.delete("content-length")}c.headers={};r.headers.forEach(((r,i)=>{c.headers[i]=r}));c.counter=++r.counter;const A=new l(d.format(u),c);return{request:A,options:c}};const fetch=async(r,i)=>{const a=u.storable(r,i)?await A(r,i):await h(r,i);if(!["GET","HEAD"].includes(r.method)&&a.status>=200&&a.status<=399){await A.invalidate(r,i)}if(!canFollowRedirect(r,a,i)){return a}const c=getRedirect(r,a,i);return fetch(c.request,c.options)};r.exports=fetch},39310:(r,i,a)=>{const{FetchError:c,Headers:l,Request:p,Response:d}=a(88483);const u=a(99824);const A=a(67242);const makeFetchHappen=(r,i)=>{const a=u(i);const c=new p(r,a);return A(c,a)};makeFetchHappen.defaults=(r,i={},a=makeFetchHappen)=>{if(typeof r==="object"){i=r;r=null}const defaultedFetch=(c,l={})=>{const p=c||r;const d={...i,...l,headers:{...i.headers,...l.headers}};return a(p,d)};defaultedFetch.defaults=(r,i={})=>makeFetchHappen.defaults(r,i,defaultedFetch);return defaultedFetch};r.exports=makeFetchHappen;r.exports.FetchError=c;r.exports.Headers=l;r.exports.Request=p;r.exports.Response=d},99824:(r,i,a)=>{const c=a(72250);const l=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"];const configureOptions=r=>{const{strictSSL:i,...a}={...r};a.method=a.method?a.method.toUpperCase():"GET";if(i===undefined||i===null){a.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0"}else{a.rejectUnauthorized=i!==false}if(!a.retry){a.retry={retries:0}}else if(typeof a.retry==="string"){const r=parseInt(a.retry,10);if(isFinite(r)){a.retry={retries:r}}else{a.retry={retries:0}}}else if(typeof a.retry==="number"){a.retry={retries:a.retry}}else{a.retry={retries:0,...a.retry}}a.dns={ttl:5*60*1e3,lookup:c.lookup,...a.dns};a.cache=a.cache||"default";if(a.cache==="default"){const r=Object.keys(a.headers||{}).some((r=>l.includes(r.toLowerCase())));if(r){a.cache="no-store"}}a.cacheAdditionalHeaders=a.cacheAdditionalHeaders||[];if(a.cacheManager&&!a.cachePath){a.cachePath=a.cacheManager}return a};r.exports=configureOptions},22314:(r,i,a)=>{"use strict";const c=a(52899);class CachingMinipassPipeline extends c{#d=[];#z=new Map;constructor(r,...i){super();this.#d=r.events;if(i.length){this.push(...i)}}on(r,i){if(this.#d.includes(r)&&this.#z.has(r)){return i(...this.#z.get(r))}return super.on(r,i)}emit(r,...i){if(this.#d.includes(r)){this.#z.set(r,i)}return super.emit(r,...i)}}r.exports=CachingMinipassPipeline},20766:(r,i,a)=>{const{Minipass:c}=a(78275);const l=a(88483);const p=a(90390);const d=a(68951);const{log:u}=a(26687);const A=a(22314);const{getAgent:h}=a(57995);const b=a(96734);const g=`${b.name}/${b.version} (+https://npm.im/${b.name})`;const M=["ECONNRESET","ECONNREFUSED","EADDRINUSE","ETIMEDOUT","ECONNECTIONTIMEOUT","EIDLETIMEOUT","ERESPONSETIMEOUT","ETRANSFERTIMEOUT"];const y=["request-timeout"];const remoteFetch=(r,i)=>{const a=h(r.url,{...i,signal:undefined});if(!r.headers.has("connection")){r.headers.set("connection",a?"keep-alive":"close")}if(!r.headers.has("user-agent")){r.headers.set("user-agent",g)}const b={...i,agent:a,redirect:"manual"};return p((async(a,p)=>{const h=new l.Request(r,b);try{let r=await l(h,b);if(b.integrity&&r.status===200){const i=d.integrityStream({algorithms:b.algorithms,integrity:b.integrity,size:b.size});const a=new A({events:["integrity","size"]},r.body,i);i.on("integrity",(r=>a.emit("integrity",r)));i.on("size",(r=>a.emit("size",r)));r=new l.Response(a,r);r.body.hasIntegrityEmitter=true}r.headers.set("x-fetch-attempts",p);const g=c.isStream(h.body);const M=h.method!=="POST"&&!g&&([408,420,429].includes(r.status)||r.status>=500);if(M){if(typeof i.onRetry==="function"){i.onRetry(r)}u.http("fetch",`${h.method} ${h.url} attempt ${p} failed with ${r.status}`);return a(r)}return r}catch(r){const c=r.code==="EPROMISERETRY"?r.retried.code:r.code;const d=r.retried instanceof l.Response||M.includes(c)&&y.includes(r.type);if(h.method==="POST"||d){throw r}if(typeof i.onRetry==="function"){i.onRetry(r)}u.http("fetch",`${h.method} ${h.url} attempt ${p} failed with ${r.code}`);return a(r)}}),i.retry).catch((r=>{if(r.status>=400&&r.type!=="system"){return r}throw r}))};r.exports=remoteFetch},99829:(r,i,a)=>{
/*!
* mime-db
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015-2022 Douglas Christopher Wilson
* MIT Licensed
*/
r.exports=a(81813)},14096:(r,i,a)=>{"use strict";
/*!
* mime-types
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/var c=a(99829);var l=a(16928).extname;var p=/^\s*([^;\s]*)(?:;|\s|$)/;var d=/^text\//i;i.charset=charset;i.charsets={lookup:charset};i.contentType=contentType;i.extension=extension;i.extensions=Object.create(null);i.lookup=lookup;i.types=Object.create(null);populateMaps(i.extensions,i.types);function charset(r){if(!r||typeof r!=="string"){return false}var i=p.exec(r);var a=i&&c[i[1].toLowerCase()];if(a&&a.charset){return a.charset}if(i&&d.test(i[1])){return"UTF-8"}return false}function contentType(r){if(!r||typeof r!=="string"){return false}var a=r.indexOf("/")===-1?i.lookup(r):r;if(!a){return false}if(a.indexOf("charset")===-1){var c=i.charset(a);if(c)a+="; charset="+c.toLowerCase()}return a}function extension(r){if(!r||typeof r!=="string"){return false}var a=p.exec(r);var c=a&&i.extensions[a[1].toLowerCase()];if(!c||!c.length){return false}return c[0]}function lookup(r){if(!r||typeof r!=="string"){return false}var a=l("x."+r).toLowerCase().substr(1);if(!a){return false}return i.types[a]||false}function populateMaps(r,i){var a=["nginx","apache",undefined,"iana"];Object.keys(c).forEach((function forEachMimeType(l){var p=c[l];var d=p.extensions;if(!d||!d.length){return}r[l]=d;for(var u=0;u<d.length;u++){var A=d[u];if(i[A]){var h=a.indexOf(c[i[A]].source);var b=a.indexOf(p.source);if(i[A]!=="application/octet-stream"&&(h>b||h===b&&i[A].substr(0,12)==="application/")){continue}}i[A]=l}}))}},43772:(r,i,a)=>{r.exports=minimatch;minimatch.Minimatch=Minimatch;var c=function(){try{return a(16928)}catch(r){}}()||{sep:"/"};minimatch.sep=c.sep;var l=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var p=a(73783);var d={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var u="[^/]";var A=u+"*?";var h="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var b="(?:(?!(?:\\/|^)\\.).)*?";var g=charSet("().*{}+?[]^$\\!");function charSet(r){return r.split("").reduce((function(r,i){r[i]=true;return r}),{})}var M=/\/+/;minimatch.filter=filter;function filter(r,i){i=i||{};return function(a,c,l){return minimatch(a,r,i)}}function ext(r,i){i=i||{};var a={};Object.keys(r).forEach((function(i){a[i]=r[i]}));Object.keys(i).forEach((function(r){a[r]=i[r]}));return a}minimatch.defaults=function(r){if(!r||typeof r!=="object"||!Object.keys(r).length){return minimatch}var i=minimatch;var a=function minimatch(a,c,l){return i(a,c,ext(r,l))};a.Minimatch=function Minimatch(a,c){return new i.Minimatch(a,ext(r,c))};a.Minimatch.defaults=function defaults(a){return i.defaults(ext(r,a)).Minimatch};a.filter=function filter(a,c){return i.filter(a,ext(r,c))};a.defaults=function defaults(a){return i.defaults(ext(r,a))};a.makeRe=function makeRe(a,c){return i.makeRe(a,ext(r,c))};a.braceExpand=function braceExpand(a,c){return i.braceExpand(a,ext(r,c))};a.match=function(a,c,l){return i.match(a,c,ext(r,l))};return a};Minimatch.defaults=function(r){return minimatch.defaults(r).Minimatch};function minimatch(r,i,a){assertValidPattern(i);if(!a)a={};if(!a.nocomment&&i.charAt(0)==="#"){return false}return new Minimatch(i,a).match(r)}function Minimatch(r,i){if(!(this instanceof Minimatch)){return new Minimatch(r,i)}assertValidPattern(r);if(!i)i={};r=r.trim();if(!i.allowWindowsEscape&&c.sep!=="/"){r=r.split(c.sep).join("/")}this.options=i;this.set=[];this.pattern=r;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!i.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var r=this.pattern;var i=this.options;if(!i.nocomment&&r.charAt(0)==="#"){this.comment=true;return}if(!r){this.empty=true;return}this.parseNegate();var a=this.globSet=this.braceExpand();if(i.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,a);a=this.globParts=a.map((function(r){return r.split(M)}));this.debug(this.pattern,a);a=a.map((function(r,i,a){return r.map(this.parse,this)}),this);this.debug(this.pattern,a);a=a.filter((function(r){return r.indexOf(false)===-1}));this.debug(this.pattern,a);this.set=a}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var r=this.pattern;var i=false;var a=this.options;var c=0;if(a.nonegate)return;for(var l=0,p=r.length;l<p&&r.charAt(l)==="!";l++){i=!i;c++}if(c)this.pattern=r.substr(c);this.negate=i}minimatch.braceExpand=function(r,i){return braceExpand(r,i)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(r,i){if(!i){if(this instanceof Minimatch){i=this.options}else{i={}}}r=typeof r==="undefined"?this.pattern:r;assertValidPattern(r);if(i.nobrace||!/\{(?:(?!\{).)*\}/.test(r)){return[r]}return p(r)}var y=1024*64;var assertValidPattern=function(r){if(typeof r!=="string"){throw new TypeError("invalid pattern")}if(r.length>y){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var O={};function parse(r,i){assertValidPattern(r);var a=this.options;if(r==="**"){if(!a.noglobstar)return l;else r=Line truncated
*/if(new p.URL(t.url).hostname!==u.hostname){t.headers.delete("authorization");t.headers.delete("cookie")}if(r.status===303||t.method==="POST"&&[301,302].includes(r.status)){i.method="GET";i.body=null;t.headers.delete("content-length")}i.headers={};t.headers.forEach(((t,r)=>{i.headers[r]=t}));i.counter=++t.counter;const l=new a(p.format(u),i);return{request:l,options:i}};const fetch=async(t,r)=>{const o=u.storable(t,r)?await l(t,r):await d(t,r);if(!["GET","HEAD"].includes(t.method)&&o.status>=200&&o.status<=399){await l.invalidate(t,r)}if(!canFollowRedirect(t,o,r)){return o}const i=getRedirect(t,o,r);return fetch(i.request,i.options)};t.exports=fetch},39310:(t,r,o)=>{const{FetchError:i,Headers:a,Request:c,Response:p}=o(88483);const u=o(99824);const l=o(67242);const makeFetchHappen=(t,r)=>{const o=u(r);const i=new c(t,o);return l(i,o)};makeFetchHappen.defaults=(t,r={},o=makeFetchHappen)=>{if(typeof t==="object"){r=t;t=null}const defaultedFetch=(i,a={})=>{const c=i||t;const p={...r,...a,headers:{...r.headers,...a.headers}};return o(c,p)};defaultedFetch.defaults=(t,r={})=>makeFetchHappen.defaults(t,r,defaultedFetch);return defaultedFetch};t.exports=makeFetchHappen;t.exports.FetchError=i;t.exports.Headers=a;t.exports.Request=c;t.exports.Response=p},99824:(t,r,o)=>{const i=o(72250);const a=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"];const configureOptions=t=>{const{strictSSL:r,...o}={...t};o.method=o.method?o.method.toUpperCase():"GET";if(r===undefined||r===null){o.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0"}else{o.rejectUnauthorized=r!==false}if(!o.retry){o.retry={retries:0}}else if(typeof o.retry==="string"){const t=parseInt(o.retry,10);if(isFinite(t)){o.retry={retries:t}}else{o.retry={retries:0}}}else if(typeof o.retry==="number"){o.retry={retries:o.retry}}else{o.retry={retries:0,...o.retry}}o.dns={ttl:5*60*1e3,lookup:i.lookup,...o.dns};o.cache=o.cache||"default";if(o.cache==="default"){const t=Object.keys(o.headers||{}).some((t=>a.includes(t.toLowerCase())));if(t){o.cache="no-store"}}o.cacheAdditionalHeaders=o.cacheAdditionalHeaders||[];if(o.cacheManager&&!o.cachePath){o.cachePath=o.cacheManager}return o};t.exports=configureOptions},22314:(t,r,o)=>{const i=o(52899);class CachingMinipassPipeline extends i{#d=[];#A=new Map;constructor(t,...r){super();this.#d=t.events;if(r.length){this.push(...r)}}on(t,r){if(this.#d.includes(t)&&this.#A.has(t)){return r(...this.#A.get(t))}return super.on(t,r)}emit(t,...r){if(this.#d.includes(t)){this.#A.set(t,r)}return super.emit(t,...r)}}t.exports=CachingMinipassPipeline},20766:(t,r,o)=>{const{Minipass:i}=o(78275);const a=o(88483);const{promiseRetry:c}=o(49498);const p=o(45457);const{log:u}=o(26687);const l=o(22314);const{getAgent:d}=o(57995);const A=o(96734);const b=`${A.name}/${A.version} (+https://npm.im/${A.name})`;const h=["ECONNRESET","ECONNREFUSED","EADDRINUSE","ETIMEDOUT","ECONNECTIONTIMEOUT","EIDLETIMEOUT","ERESPONSETIMEOUT","ETRANSFERTIMEOUT"];const M=["request-timeout"];const remoteFetch=(t,r)=>{const o=d(t.url,{...r,signal:undefined});if(!t.headers.has("connection")){t.headers.set("connection",o?"keep-alive":"close")}if(!t.headers.has("user-agent")){t.headers.set("user-agent",b)}const A={...r,agent:o,redirect:"manual"};return c((async(o,c)=>{const d=new a.Request(t,A);try{let t=await a(d,A);if(A.integrity&&t.status===200){const r=p.integrityStream({algorithms:A.algorithms,integrity:A.integrity,size:A.size});const o=new l({events:["integrity","size"]},t.body,r);r.on("integrity",(t=>o.emit("integrity",t)));r.on("size",(t=>o.emit("size",t)));t=new a.Response(o,t);t.body.hasIntegrityEmitter=true}t.headers.set("x-fetch-attempts",c);const b=i.isStream(d.body);const h=d.method!=="POST"&&!b&&([408,420,429].includes(t.status)||t.status>=500);if(h){if(typeof r.onRetry==="function"){r.onRetry(t)}u.http("fetch",`${d.method} ${d.url} attempt ${c} failed with ${t.status}`);return o(t)}return t}catch(t){const i=t.code==="EPROMISERETRY"?t.retried.code:t.code;const p=t.retried instanceof a.Response||h.includes(i)&&M.includes(t.type);if(d.method==="POST"||p){throw t}if(typeof r.onRetry==="function"){r.onRetry(t)}u.http("fetch",`${d.method} ${d.url} attempt ${c} failed with ${t.code}`);return o(t)}}),r.retry).catch((t=>{if(t.status>=400&&t.type!=="system"){return t}throw t}))};t.exports=remoteFetch},45457:(t,r,o)=>{const i=o(76982);const{Minipass:a}=o(78275);const c=["sha512","sha384","sha256"];const p=["sha512"];const u=i.getHashes();const l=/^[a-z0-9+/]+(?:=?=?)$/i;const d=/^([a-z0-9]+)-([^?]+)(\?[?\S*]*)?$/;const A=/^([a-z0-9]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)?$/;const b=/^[\x21-\x7E]+$/;const h=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter((t=>u.includes(t)));const getOptString=t=>t?.length?`?${t.join("?")}`:"";class IntegrityStream extends a{#a;#c;#p;constructor(t){super();this.size=0;this.opts=t;this.#u();if(t?. Line truncated
//! moment-timezone.js
//! version : 0.6.0
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
(function(i,c){"use strict";if(true&&r.exports){r.exports=c(a(93350))}else if(typeof define==="function"&&define.amd){define(["moment"],c)}else{c(i.moment)}})(this,(function(r){"use strict";if(r.version===undefined&&r.default){r=r.default}var i="0.6.0",a={},c={},l={},p={},d={},u;if(!r||typeof r.version!=="string"){logError("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/")}var A=r.version.split("."),h=+A[0],b=+A[1];if(h<2||h===2&&b<6){logError("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+r.version+". See momentjs.com")}function charCodeToInt(r){if(r>96){return r-87}else if(r>64){return r-29}return r-48}function unpackBase60(r){var i=0,a=r.split("."),c=a[0],l=a[1]||"",p=1,d,u=0,A=1;if(r.charCodeAt(0)===45){i=1;A=-1}for(i;i<c.length;i++){d=charCodeToInt(c.charCodeAt(i));u=60*u+d}for(i=0;i<l.length;i++){p=p/60;d=charCodeToInt(l.charCodeAt(i));u+=d*p}return u*A}function arrayToInt(r){for(var i=0;i<r.length;i++){r[i]=unpackBase60(r[i])}}function intToUntil(r,i){for(var a=0;a<i;a++){r[a]=Math.round((r[a-1]||0)+r[a]*6e4)}r[i-1]=Infinity}function mapIndices(r,i){var a=[],c;for(c=0;c<i.length;c++){a[c]=r[i[c]]}return a}function unpack(r){var i=r.split("|"),a=i[2].split(" "),c=i[3].split(""),l=i[4].split(" ");arrayToInt(a);arrayToInt(c);arrayToInt(l);intToUntil(l,c.length);return{name:i[0],abbrs:mapIndices(i[1].split(" "),c),offsets:mapIndices(a,c),untils:l,population:i[5]|0}}function Zone(r){if(r){this._set(unpack(r))}}function closest(r,i){var a=i.length;if(r<i[0]){return 0}else if(a>1&&i[a-1]===Infinity&&r>=i[a-2]){return a-1}else if(r>=i[a-1]){return-1}var c;var l=0;var p=a-1;while(p-l>1){c=Math.floor((l+p)/2);if(i[c]<=r){l=c}else{p=c}}return p}Zone.prototype={_set:function(r){this.name=r.name;this.abbrs=r.abbrs;this.untils=r.untils;this.offsets=r.offsets;this.population=r.population},_index:function(r){var i=+r,a=this.untils,c;c=closest(i,a);if(c>=0){return c}},countries:function(){var r=this.name;return Object.keys(l).filter((function(i){return l[i].zones.indexOf(r)!==-1}))},parse:function(r){var i=+r,a=this.offsets,c=this.untils,l=c.length-1,p,d,u,A;for(A=0;A<l;A++){p=a[A];d=a[A+1];u=a[A?A-1:A];if(p<d&&tz.moveAmbiguousForward){p=d}else if(p>u&&tz.moveInvalidForward){p=u}if(i<c[A]-p*6e4){return a[A]}}return a[l]},abbr:function(r){return this.abbrs[this._index(r)]},offset:function(r){logError("zone.offset has been deprecated in favor of zone.utcOffset");return this.offsets[this._index(r)]},utcOffset:function(r){return this.offsets[this._index(r)]}};function Country(r,i){this.name=r;this.zones=i}function OffsetAt(r){var i=r.toTimeString();var a=i.match(/\([a-z ]+\)/i);if(a&&a[0]){a=a[0].match(/[A-Z]/g);a=a?a.join(""):undefined}else{a=i.match(/[A-Z]{3,5}/g);a=a?a[0]:undefined}if(a==="GMT"){a=undefined}this.at=+r;this.abbr=a;this.offset=r.getTimezoneOffset()}function ZoneScore(r){this.zone=r;this.offsetScore=0;this.abbrScore=0}ZoneScore.prototype.scoreOffsetAt=function(r){this.offsetScore+=Math.abs(this.zone.utcOffset(r.at)-r.offset);if(this.zone.abbr(r.at).replace(/[^A-Z]/g,"")!==r.abbr){this.abbrScore++}};function findChange(r,i){var a,c;while(c=((i.at-r.at)/12e4|0)*6e4){a=new OffsetAt(new Date(r.at+c));if(a.offset===r.offset){r=a}else{i=a}}return r}function userOffsets(){var r=(new Date).getFullYear()-2,i=new OffsetAt(new Date(r,0,1)),a=i.offset,c=[i],l,p,d,u;for(u=1;u<48;u++){d=new Date(r,u,1).getTimezoneOffset();if(d!==a){p=new OffsetAt(new Date(r,u,1));l=findChange(i,p);c.push(l);c.push(new OffsetAt(new Date(l.at+6e4)));i=p;a=d}}for(u=0;u<4;u++){c.push(new OffsetAt(new Date(r+u,0,1)));c.push(new OffsetAt(new Date(r+u,6,1)))}return c}function sortZoneScores(r,i){if(r.offsetScore!==i.offsetScore){return r.offsetScore-i.offsetScore}if(r.abbrScore!==i.abbrScore){return r.abbrScore-i.abbrScore}if(r.zone.population!==i.zone.population){return i.zone.population-r.zone.population}return i.zone.name.localeCompare(r.zone.name)}function addToGuesses(r,i){var a,c;arrayToInt(i);for(a=0;a<i.length;a++){c=i[a];d[c]=d[c]||{};d[c][r]=true}}function guessesForUserOffsets(r){var i=r.length,a={},c=[],l={},u,A,h,b;for(u=0;u<i;u++){h=r[u].offset;if(l.hasOwnProperty(h)){continue}b=d[h]||{};for(A in b){if(b.hasOwnProperty(A)){a[A]=true}}l[h]=true}for(u in a){if(a.hasOwnProperty(u)){c.push(p[u])}}return c}function rebuildGuess(){try{var r=Intl.DateTimeFormat().resolvedOptions().timeZone;if(r&&r.length>3){var i=p[normalizeName(r)];if(i){return i}logError("Moment Timezone found "+r+" from the Intl api, but did not have that data loaded.")}}catch(r){}var a=userOffsets(),c=a.length,l=guessesForUserOffsets(a),d=[],u,A,h;for(A=0;A<l.length;A++){u=new ZoneScore(getZone(l[A]),c);for(h=0;h<c;h++){u.scoreOffsetAt(a[h])}d.push(u)}d.sort(sortZoneScores);return d.length>0?d[0].zone.name:undefined}function guess(r){if(!u||r){u=rebuildGuess()}return u}function normalizeName(r){return(r||"").toLowerCase().replace(/\//g,"_")}function addZone(r){var i,c,l,d;if(typeof r==="string"Line truncated
(function(r,i){"use strict";if(true&&t.exports){t.exports=i(o(93350))}else if(typeof define==="function"&&define.amd){define(["moment"],i)}else{i(r.moment)}})(this,(function(t){"use strict";if(t.version===undefined&&t.default){t=t.default}var r="0.6.0",o={},i={},a={},c={},p={},u;if(!t||typeof t.version!=="string"){logError("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/")}var l=t.version.split("."),d=+l[0],A=+l[1];if(d<2||d===2&&A<6){logError("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+t.version+". See momentjs.com")}function charCodeToInt(t){if(t>96){return t-87}else if(t>64){return t-29}return t-48}function unpackBase60(t){var r=0,o=t.split("."),i=o[0],a=o[1]||"",c=1,p,u=0,l=1;if(t.charCodeAt(0)===45){r=1;l=-1}for(r;r<i.length;r++){p=charCodeToInt(i.charCodeAt(r));u=60*u+p}for(r=0;r<a.length;r++){c=c/60;p=charCodeToInt(a.charCodeAt(r));u+=p*c}return u*l}function arrayToInt(t){for(var r=0;r<t.length;r++){t[r]=unpackBase60(t[r])}}function intToUntil(t,r){for(var o=0;o<r;o++){t[o]=Math.round((t[o-1]||0)+t[o]*6e4)}t[r-1]=Infinity}function mapIndices(t,r){var o=[],i;for(i=0;i<r.length;i++){o[i]=t[r[i]]}return o}function unpack(t){var r=t.split("|"),o=r[2].split(" "),i=r[3].split(""),a=r[4].split(" ");arrayToInt(o);arrayToInt(i);arrayToInt(a);intToUntil(a,i.length);return{name:r[0],abbrs:mapIndices(r[1].split(" "),i),offsets:mapIndices(o,i),untils:a,population:r[5]|0}}function Zone(t){if(t){this._set(unpack(t))}}function closest(t,r){var o=r.length;if(t<r[0]){return 0}else if(o>1&&r[o-1]===Infinity&&t>=r[o-2]){return o-1}else if(t>=r[o-1]){return-1}var i;var a=0;var c=o-1;while(c-a>1){i=Math.floor((a+c)/2);if(r[i]<=t){a=i}else{c=i}}return c}Zone.prototype={_set:function(t){this.name=t.name;this.abbrs=t.abbrs;this.untils=t.untils;this.offsets=t.offsets;this.population=t.population},_index:function(t){var r=+t,o=this.untils,i;i=closest(r,o);if(i>=0){return i}},countries:function(){var t=this.name;return Object.keys(a).filter((function(r){return a[r].zones.indexOf(t)!==-1}))},parse:function(t){var r=+t,o=this.offsets,i=this.untils,a=i.length-1,c,p,u,l;for(l=0;l<a;l++){c=o[l];p=o[l+1];u=o[l?l-1:l];if(c<p&&tz.moveAmbiguousForward){c=p}else if(c>u&&tz.moveInvalidForward){c=u}if(r<i[l]-c*6e4){return o[l]}}return o[a]},abbr:function(t){return this.abbrs[this._index(t)]},offset:function(t){logError("zone.offset has been deprecated in favor of zone.utcOffset");return this.offsets[this._index(t)]},utcOffset:function(t){return this.offsets[this._index(t)]}};function Country(t,r){this.name=t;this.zones=r}function OffsetAt(t){var r=t.toTimeString();var o=r.match(/\([a-z ]+\)/i);if(o&&o[0]){o=o[0].match(/[A-Z]/g);o=o?o.join(""):undefined}else{o=r.match(/[A-Z]{3,5}/g);o=o?o[0]:undefined}if(o==="GMT"){o=undefined}this.at=+t;this.abbr=o;this.offset=t.getTimezoneOffset()}function ZoneScore(t){this.zone=t;this.offsetScore=0;this.abbrScore=0}ZoneScore.prototype.scoreOffsetAt=function(t){this.offsetScore+=Math.abs(this.zone.utcOffset(t.at)-t.offset);if(this.zone.abbr(t.at).replace(/[^A-Z]/g,"")!==t.abbr){this.abbrScore++}};function findChange(t,r){var o,i;while(i=((r.at-t.at)/12e4|0)*6e4){o=new OffsetAt(new Date(t.at+i));if(o.offset===t.offset){t=o}else{r=o}}return t}function userOffsets(){var t=(new Date).getFullYear()-2,r=new OffsetAt(new Date(t,0,1)),o=r.offset,i=[r],a,c,p,u;for(u=1;u<48;u++){p=new Date(t,u,1).getTimezoneOffset();if(p!==o){c=new OffsetAt(new Date(t,u,1));a=findChange(r,c);i.push(a);i.push(new OffsetAt(new Date(a.at+6e4)));r=c;o=p}}for(u=0;u<4;u++){i.push(new OffsetAt(new Date(t+u,0,1)));i.push(new OffsetAt(new Date(t+u,6,1)))}return i}function sortZoneScores(t,r){if(t.offsetScore!==r.offsetScore){return t.offsetScore-r.offsetScore}if(t.abbrScore!==r.abbrScore){return t.abbrScore-r.abbrScore}if(t.zone.population!==r.zone.population){return r.zone.population-t.zone.population}return r.zone.name.localeCompare(t.zone.name)}function addToGuesses(t,r){var o,i;arrayToInt(r);for(o=0;o<r.length;o++){i=r[o];p[i]=p[i]||{};p[i][t]=true}}function guessesForUserOffsets(t){var r=t.length,o={},i=[],a={},u,l,d,A;for(u=0;u<r;u++){d=t[u].offset;if(a.hasOwnProperty(d)){continue}A=p[d]||{};for(l in A){if(A.hasOwnProperty(l)){o[l]=true}}a[d]=true}for(u in o){if(o.hasOwnProperty(u)){i.push(c[u])}}return i}function rebuildGuess(){try{var t=Intl.DateTimeFormat().resolvedOptions().timeZone;if(t&&t.length>3){var r=c[normalizeName(t)];if(r){return r}logError("Moment Timezone found "+t+" from the Intl api, but did not have that data loaded.")}}catch(t){}var o=userOffsets(),i=o.length,a=guessesForUserOffsets(o),p=[],u,l,d;for(l=0;l<a.length;l++){u=new ZoneScore(getZone(a[l]),i);for(d=0;d<i;d++){u.scoreOffsetAt(o[d])}p.push(u)}p.sort(sortZoneScores);return p.length>0?p[0].zone.name:undefined}function guess(t){if(!u||t){u=rebuildGuess()}return u}function normalizeName(t){return(t||"").toLowerCase().replace(/\//g,"_")}function addZone(t){var r,i,a,p;if(typeof t==="string"Line truncated
//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function(i,a){true?r.exports=a():0})(this,(function(){"use strict";var i;function hooks(){return i.apply(null,arguments)}function setHookCallback(r){i=r}function isArray(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function isObject(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function hasOwnProp(r,i){return Object.prototype.hasOwnProperty.call(r,i)}function isObjectEmpty(r){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(r).length===0}else{var i;for(i in r){if(hasOwnProp(r,i)){return false}}return true}}function isUndefined(r){return r===void 0}function isNumber(r){return typeof r==="number"||Object.prototype.toString.call(r)==="[object Number]"}function isDate(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function map(r,i){var a=[],c,l=r.length;for(c=0;c<l;++c){a.push(i(r[c],c))}return a}function extend(r,i){for(var a in i){if(hasOwnProp(i,a)){r[a]=i[a]}}if(hasOwnProp(i,"toString")){r.toString=i.toString}if(hasOwnProp(i,"valueOf")){r.valueOf=i.valueOf}return r}function createUTC(r,i,a,c){return createLocalOrUTC(r,i,a,c,true).utc()}function defaultParsingFlags(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function getParsingFlags(r){if(r._pf==null){r._pf=defaultParsingFlags()}return r._pf}var a;if(Array.prototype.some){a=Array.prototype.some}else{a=function(r){var i=Object(this),a=i.length>>>0,c;for(c=0;c<a;c++){if(c in i&&r.call(this,i[c],c,i)){return true}}return false}}function isValid(r){var i=null,c=false,l=r._d&&!isNaN(r._d.getTime());if(l){i=getParsingFlags(r);c=a.call(i.parsedDateParts,(function(r){return r!=null}));l=i.overflow<0&&!i.empty&&!i.invalidEra&&!i.invalidMonth&&!i.invalidWeekday&&!i.weekdayMismatch&&!i.nullInput&&!i.invalidFormat&&!i.userInvalidated&&(!i.meridiem||i.meridiem&&c);if(r._strict){l=l&&i.charsLeftOver===0&&i.unusedTokens.length===0&&i.bigHour===undefined}}if(Object.isFrozen==null||!Object.isFrozen(r)){r._isValid=l}else{return l}return r._isValid}function createInvalid(r){var i=createUTC(NaN);if(r!=null){extend(getParsingFlags(i),r)}else{getParsingFlags(i).userInvalidated=true}return i}var c=hooks.momentProperties=[],l=false;function copyConfig(r,i){var a,l,p,d=c.length;if(!isUndefined(i._isAMomentObject)){r._isAMomentObject=i._isAMomentObject}if(!isUndefined(i._i)){r._i=i._i}if(!isUndefined(i._f)){r._f=i._f}if(!isUndefined(i._l)){r._l=i._l}if(!isUndefined(i._strict)){r._strict=i._strict}if(!isUndefined(i._tzm)){r._tzm=i._tzm}if(!isUndefined(i._isUTC)){r._isUTC=i._isUTC}if(!isUndefined(i._offset)){r._offset=i._offset}if(!isUndefined(i._pf)){r._pf=getParsingFlags(i)}if(!isUndefined(i._locale)){r._locale=i._locale}if(d>0){for(a=0;a<d;a++){l=c[a];p=i[l];if(!isUndefined(p)){r[l]=p}}}return r}function Moment(r){copyConfig(this,r);this._d=new Date(r._d!=null?r._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN)}if(l===false){l=true;hooks.updateOffset(this);l=false}}function isMoment(r){return r instanceof Moment||r!=null&&r._isAMomentObject!=null}function warn(r){if(hooks.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn){console.warn("Deprecation warning: "+r)}}function deprecate(r,i){var a=true;return extend((function(){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(null,r)}if(a){var c=[],l,p,d,u=arguments.length;for(p=0;p<u;p++){l="";if(typeof arguments[p]==="object"){l+="\n["+p+"] ";for(d in arguments[0]){if(hasOwnProp(arguments[0],d)){l+=d+": "+arguments[0][d]+", "}}l=l.slice(0,-2)}else{l=arguments[p]}c.push(l)}warn(r+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack);a=false}return i.apply(this,arguments)}),i)}var p={};function deprecateSimple(r,i){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(r,i)}if(!p[r]){warn(i);p[r]=true}}hooks.suppressDeprecationWarnings=false;hooks.deprecationHandler=null;function isFunction(r){return typeof Function!=="undefined"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}function set(r){var i,a;for(a in r){if(hasOwnProp(r,a)){i=r[a];if(isFunction(i)){this[a]=i}else{this["_"+a]=i}}}this._config=r;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(r,i){var a=extend({},r),c;for(c in i){if(hasOwnProp(i,c)){if(isObject(r[c])&&isObject(i[c])){a[c]={};extend(a[c],r[c]);extend(a[c],i[c])}else if(i[c]!=null){a[c]=i[c]}else{delete a[c]}}}for(c in r){if(hasOwnProp(r,c)&&!hasOwnProp(i,c)&&isObject(r[c])){a[c]=extend({},a[c])}}return a}function Locale(r){if(r!=null){this.set(r)}}var d;if(Object.keys){d=Object.keys}else{d=function(r){var i,a=[];for(i in r){if(hasOwnProp(r,i)){a.push(i)}}return a}}var u={sLine truncated
(function(t,o){true?r.exports=o():0})(this,(function(){"use strict";var o;function hooks(){return o.apply(null,arguments)}function setHookCallback(t){o=t}function isArray(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function isObject(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function hasOwnProp(t,r){return Object.prototype.hasOwnProperty.call(t,r)}function isObjectEmpty(t){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(t).length===0}else{var r;for(r in t){if(hasOwnProp(t,r)){return false}}return true}}function isUndefined(t){return t===void 0}function isNumber(t){return typeof t==="number"||Object.prototype.toString.call(t)==="[object Number]"}function isDate(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function map(t,r){var o=[],i,a=t.length;for(i=0;i<a;++i){o.push(r(t[i],i))}return o}function extend(t,r){for(var o in r){if(hasOwnProp(r,o)){t[o]=r[o]}}if(hasOwnProp(r,"toString")){t.toString=r.toString}if(hasOwnProp(r,"valueOf")){t.valueOf=r.valueOf}return t}function createUTC(t,r,o,i){return createLocalOrUTC(t,r,o,i,true).utc()}function defaultParsingFlags(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function getParsingFlags(t){if(t._pf==null){t._pf=defaultParsingFlags()}return t._pf}var i;if(Array.prototype.some){i=Array.prototype.some}else{i=function(t){var r=Object(this),o=r.length>>>0,i;for(i=0;i<o;i++){if(i in r&&t.call(this,r[i],i,r)){return true}}return false}}function isValid(t){var r=null,o=false,a=t._d&&!isNaN(t._d.getTime());if(a){r=getParsingFlags(t);o=i.call(r.parsedDateParts,(function(t){return t!=null}));a=r.overflow<0&&!r.empty&&!r.invalidEra&&!r.invalidMonth&&!r.invalidWeekday&&!r.weekdayMismatch&&!r.nullInput&&!r.invalidFormat&&!r.userInvalidated&&(!r.meridiem||r.meridiem&&o);if(t._strict){a=a&&r.charsLeftOver===0&&r.unusedTokens.length===0&&r.bigHour===undefined}}if(Object.isFrozen==null||!Object.isFrozen(t)){t._isValid=a}else{return a}return t._isValid}function createInvalid(t){var r=createUTC(NaN);if(t!=null){extend(getParsingFlags(r),t)}else{getParsingFlags(r).userInvalidated=true}return r}var a=hooks.momentProperties=[],c=false;function copyConfig(t,r){var o,i,c,p=a.length;if(!isUndefined(r._isAMomentObject)){t._isAMomentObject=r._isAMomentObject}if(!isUndefined(r._i)){t._i=r._i}if(!isUndefined(r._f)){t._f=r._f}if(!isUndefined(r._l)){t._l=r._l}if(!isUndefined(r._strict)){t._strict=r._strict}if(!isUndefined(r._tzm)){t._tzm=r._tzm}if(!isUndefined(r._isUTC)){t._isUTC=r._isUTC}if(!isUndefined(r._offset)){t._offset=r._offset}if(!isUndefined(r._pf)){t._pf=getParsingFlags(r)}if(!isUndefined(r._locale)){t._locale=r._locale}if(p>0){for(o=0;o<p;o++){i=a[o];c=r[i];if(!isUndefined(c)){t[i]=c}}}return t}function Moment(t){copyConfig(this,t);this._d=new Date(t._d!=null?t._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN)}if(c===false){c=true;hooks.updateOffset(this);c=false}}function isMoment(t){return t instanceof Moment||t!=null&&t._isAMomentObject!=null}function warn(t){if(hooks.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn){console.warn("Deprecation warning: "+t)}}function deprecate(t,r){var o=true;return extend((function(){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(null,t)}if(o){var i=[],a,c,p,u=arguments.length;for(c=0;c<u;c++){a="";if(typeof arguments[c]==="object"){a+="\n["+c+"] ";for(p in arguments[0]){if(hasOwnProp(arguments[0],p)){a+=p+": "+arguments[0][p]+", "}}a=a.slice(0,-2)}else{a=arguments[c]}i.push(a)}warn(t+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack);o=false}return r.apply(this,arguments)}),r)}var p={};function deprecateSimple(t,r){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(t,r)}if(!p[t]){warn(r);p[t]=true}}hooks.suppressDeprecationWarnings=false;hooks.deprecationHandler=null;function isFunction(t){return typeof Function!=="undefined"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function set(t){var r,o;for(o in t){if(hasOwnProp(t,o)){r=t[o];if(isFunction(r)){this[o]=r}else{this["_"+o]=r}}}this._config=t;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(t,r){var o=extend({},t),i;for(i in r){if(hasOwnProp(r,i)){if(isObject(t[i])&&isObject(r[i])){o[i]={};extend(o[i],t[i]);extend(o[i],r[i])}else if(r[i]!=null){o[i]=r[i]}else{delete o[i]}}}for(i in t){if(hasOwnProp(t,i)&&!hasOwnProp(r,i)&&isObject(t[i])){o[i]=extend({},o[i])}}return o}function Locale(t){if(t!=null){this.set(t)}}var u;if(Object.keys){u=Object.keys}else{u=function(t){var r,o=[];for(r in t){if(hasOwnProp(t,r)){o.push(r)}}return o}}var l={sLine truncated
//! moment.js
hooks.version="2.30.1";setHookCallback(createLocal);hooks.fn=Ze;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=Ze;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};return hooks}))},70744:r=>{var i=1e3;var a=i*60;var c=a*60;var l=c*24;var p=l*7;var d=l*365.25;r.exports=function(r,i){i=i||{};var a=typeof r;if(a==="string"&&r.length>0){return parse(r)}else if(a==="number"&&isFinite(r)){return i.long?fmtLong(r):fmtShort(r)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function parse(r){r=String(r);if(r.length>100){return}var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r);if(!u){return}var A=parseFloat(u[1]);var h=(u[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return A*d;case"weeks":case"week":case"w":return A*p;case"days":case"day":case"d":return A*l;case"hours":case"hour":case"hrs":case"hr":case"h":return A*c;case"minutes":case"minute":case"mins":case"min":case"m":return A*a;case"seconds":case"second":case"secs":case"sec":case"s":return A*i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return A;default:return undefined}}function fmtShort(r){var p=Math.abs(r);if(p>=l){return Math.round(r/l)+"d"}if(p>=c){return Math.round(r/c)+"h"}if(p>=a){return Math.round(r/a)+"m"}if(p>=i){return Math.round(r/i)+"s"}return r+"ms"}function fmtLong(r){var p=Math.abs(r);if(p>=l){return plural(r,p,l,"day")}if(p>=c){return plural(r,p,c,"hour")}if(p>=a){return plural(r,p,a,"minute")}if(p>=i){return plural(r,p,i,"second")}return r+" ms"}function plural(r,i,a,c){var l=i>=a*1.5;return Math.round(r/a)+" "+c+(l?"s":"")}},60668:(r,i,a)=>{"use strict";
hooks.version="2.30.1";setHookCallback(createLocal);hooks.fn=Ke;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=Ke;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};return hooks}))},70744:t=>{var r=1e3;var o=r*60;var i=o*60;var a=i*24;var c=a*7;var p=a*365.25;t.exports=function(t,r){r=r||{};var o=typeof t;if(o==="string"&&t.length>0){return parse(t)}else if(o==="number"&&isFinite(t)){return r.long?fmtLong(t):fmtShort(t)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function parse(t){t=String(t);if(t.length>100){return}var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!u){return}var l=parseFloat(u[1]);var d=(u[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return l*p;case"weeks":case"week":case"w":return l*c;case"days":case"day":case"d":return l*a;case"hours":case"hour":case"hrs":case"hr":case"h":return l*i;case"minutes":case"minute":case"mins":case"min":case"m":return l*o;case"seconds":case"second":case"secs":case"sec":case"s":return l*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return undefined}}function fmtShort(t){var c=Math.abs(t);if(c>=a){return Math.round(t/a)+"d"}if(c>=i){return Math.round(t/i)+"h"}if(c>=o){return Math.round(t/o)+"m"}if(c>=r){return Math.round(t/r)+"s"}return t+"ms"}function fmtLong(t){var c=Math.abs(t);if(c>=a){return plural(t,c,a,"day")}if(c>=i){return plural(t,c,i,"hour")}if(c>=o){return plural(t,c,o,"minute")}if(c>=r){return plural(t,c,r,"second")}return t+" ms"}function plural(t,r,o,i){var a=r>=o*1.5;return Math.round(t/o)+" "+i+(a?"s":"")}},60668:(t,r,o)=>{
/*!
* negotiator
* Copyright(c) 2012 Federico Romero
* Copyright(c) 2012-2014 Isaac Z. Schlueter
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/var c=a(79168);var l=a(25111);var p=a(56008);var d=a(53672);r.exports=Negotiator;r.exports.Negotiator=Negotiator;function Negotiator(r){if(!(this instanceof Negotiator)){return new Negotiator(r)}this.request=r}Negotiator.prototype.charset=function charset(r){var i=this.charsets(r);return i&&i[0]};Negotiator.prototype.charsets=function charsets(r){return c(this.request.headers["accept-charset"],r)};Negotiator.prototype.encoding=function encoding(r,i){var a=this.encodings(r,i);return a&&a[0]};Negotiator.prototype.encodings=function encodings(r,i){var a=i||{};return l(this.request.headers["accept-encoding"],r,a.preferred)};Negotiator.prototype.language=function language(r){var i=this.languages(r);return i&&i[0]};Negotiator.prototype.languages=function languages(r){return p(this.request.headers["accept-language"],r)};Negotiator.prototype.mediaType=function mediaType(r){var i=this.mediaTypes(r);return i&&i[0]};Negotiator.prototype.mediaTypes=function mediaTypes(r){return d(this.request.headers.accept,r)};Negotiator.prototype.preferredCharset=Negotiator.prototype.charset;Negotiator.prototype.preferredCharsets=Negotiator.prototype.charsets;Negotiator.prototype.preferredEncoding=Negotiator.prototype.encoding;Negotiator.prototype.preferredEncodings=Negotiator.prototype.encodings;Negotiator.prototype.preferredLanguage=Negotiator.prototype.language;Negotiator.prototype.preferredLanguages=Negotiator.prototype.languages;Negotiator.prototype.preferredMediaType=Negotiator.prototype.mediaType;Negotiator.prototype.preferredMediaTypes=Negotiator.prototype.mediaTypes},79168:r=>{"use strict";r.exports=preferredCharsets;r.exports.preferredCharsets=preferredCharsets;var i=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function parseAcceptCharset(r){var i=r.split(",");for(var a=0,c=0;a<i.length;a++){var l=parseCharset(i[a].trim(),a);if(l){i[c++]=l}}i.length=c;return i}function parseCharset(r,a){var c=i.exec(r);if(!c)return null;var l=c[1];var p=1;if(c[2]){var d=c[2].split(";");for(var u=0;u<d.length;u++){var A=d[u].trim().split("=");if(A[0]==="q"){p=parseFloat(A[1]);break}}}return{charset:l,q:p,i:a}}function getCharsetPriority(r,i,a){var c={o:-1,q:0,s:0};for(var l=0;l<i.length;l++){var p=specify(r,i[l],a);if(p&&(c.s-p.s||c.q-p.q||c.o-p.o)<0){c=p}}return c}function specify(r,i,a){var c=0;if(i.charset.toLowerCase()===r.toLowerCase()){c|=1}else if(i.charset!=="*"){return null}return{i:a,o:i.i,q:i.q,s:c}}function preferredCharsets(r,i){var a=parseAcceptCharset(r===undefined?"*":r||"");if(!i){return a.filter(isQuality).sort(compareSpecs).map(getFullCharset)}var c=i.map((function getPriority(r,i){return getCharsetPriority(r,a,i)}));return c.filter(isQuality).sort(compareSpecs).map((function getCharset(r){return i[c.indexOf(r)]}))}function compareSpecs(r,i){return i.q-r.q||i.s-r.s||r.o-i.o||r.i-i.i||0}function getFullCharset(r){return r.charset}function isQuality(r){return r.q>0}},25111:r=>{"use strict";r.exports=preferredEncodings;r.exports.preferredEncodings=preferredEncodings;var i=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function parseAcceptEncoding(r){var i=r.split(",");var a=false;var c=1;for(var l=0,p=0;l<i.length;l++){var d=parseEncoding(i[l].trim(),l);if(d){i[p++]=d;a=a||specify("identity",d);c=Math.min(c,d.q||1)}}if(!a){i[p++]={encoding:"identity",q:c,i:l}}i.length=p;return i}function parseEncoding(r,a){var c=i.exec(r);if(!c)return null;var l=c[1];var p=1;if(c[2]){var d=c[2].split(";");for(var u=0;u<d.length;u++){var A=d[u].trim().split("=");if(A[0]==="q"){p=parseFloat(A[1]);break}}}return{encoding:l,q:p,i:a}}function getEncodingPriority(r,i,a){var c={encoding:r,o:-1,q:0,s:0};for(var l=0;l<i.length;l++){var p=specify(r,i[l],a);if(p&&(c.s-p.s||c.q-p.q||c.o-p.o)<0){c=p}}return c}function specify(r,i,a){var c=0;if(i.encoding.toLowerCase()===r.toLowerCase()){c|=1}else if(i.encoding!=="*"){return null}return{encoding:r,i:a,o:i.i,q:i.q,s:c}}function preferredEncodings(r,i,a){var c=parseAcceptEncoding(r||"");var l=a?function comparator(r,i){if(r.q!==i.q){return i.q-r.q}var c=a.indexOf(r.encoding);var l=a.indexOf(i.encoding);if(c===-1&&l===-1){return i.s-r.s||r.o-i.o||r.i-i.i}if(c!==-1&&l!==-1){return c-l}return c===-1?1:-1}:compareSpecs;if(!i){return c.filter(isQuality).sort(l).map(getFullEncoding)}var p=i.map((function getPriority(r,i){return getEncodingPriority(r,c,i)}));return p.filter(isQuality).sort(l).map((function getEncoding(r){return i[p.indexOf(r)]}))}function compareSpecs(r,i){return i.q-r.q||i.s-r.s||r.o-i.o||r.i-i.i}function getFullEncoding(r){return r.encoding}function isQuality(r){return r.q>0}},56008:r=>{"use strict";r.exports=preferredLanguages;r.exports.preferredLanguages=preferredLanguages;var i=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function parseAcceptLanguage(r){var i=r.split(",");for(var a=0,c=0;a<i.length;a++){var l=parseLanguage(i[a].trim(),a);if(l){i[c++]=l}}i.length=c;return i}function parseLanguage(r,a){var c=i.exec(r);if(!c)return null;var l=c[1];var p=c[2];var d=l;if(p)d+="-"+p;var u=1;if(c[3]){var A=c[3].split(";");forLine truncated
/*!
* normalize-path <https://github.com/jonschlinkert/normalize-path>
*
* Copyright (c) 2014-2018, Jon Schlinkert.
* Released under the MIT License.
*/
r.exports=function(r,i){if(typeof r!=="string"){throw new TypeError("expected path to be a string")}if(r==="\\"||r==="/")return"/";var a=r.length;if(a<=1)return r;var c="";if(a>4&&r[3]==="\\"){var l=r[2];if((l==="?"||l===".")&&r.slice(0,2)==="\\\\"){r=r.slice(2);c="//"}}var p=r.split(/[/\\]+/);if(i!==false&&p[p.length-1]===""){p.pop()}return c+p.join("/")}},55560:(r,i,a)=>{var c=a(58264);r.exports=c(once);r.exports.strict=c(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(r){var f=function(){if(f.called)return f.value;f.called=true;return f.value=r.apply(this,arguments)};f.called=false;return f}function onceStrict(r){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=r.apply(this,arguments)};var i=r.name||"Function wrapped with `once`";f.onceError=i+" shouldn't be called more than once";f.called=false;return f}},26687:r=>{const i=Symbol("proc-log.meta");r.exports={META:i,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...r){return process.emit("output","standard",...r)},error:function(...r){return process.emit("output","error",...r)},buffer:function(...r){return process.emit("output","buffer",...r)},flush:function(...r){return process.emit("output","flush",...r)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...r){return process.emit("log","error",...r)},notice:function(...r){return process.emit("log","notice",...r)},warn:function(...r){return process.emit("log","warn",...r)},info:function(...r){return process.emit("log","info",...r)},verbose:function(...r){return process.emit("log","verbose",...r)},http:function(...r){return process.emit("log","http",...r)},silly:function(...r){return process.emit("log","silly",...r)},timing:function(...r){return process.emit("log","timing",...r)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(r,i){process.emit("time","start",r);function end(){return process.emit("time","end",r)}if(typeof i==="function"){const r=i();if(r&&r.finally){return r.finally(end)}end();return r}return end},end:function(r){return process.emit("time","end",r)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(r){process.emit("input","start");function end(){return process.emit("input","end")}if(typeof r==="function"){const i=r();if(i&&i.finally){return i.finally(end)}end();return i}return end},end:function(){return process.emit("input","end")},read:function(...r){let i,a;const c=new Promise(((r,c)=>{i=r;a=c}));process.emit("input","read",i,a,...r);return c}}}},41564:r=>{"use strict";if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){r.exports={nextTick:nextTick}}else{r.exports=process}function nextTick(r,i,a,c){if(typeof r!=="function"){throw new TypeError('"callback" argument must be a function')}var l=arguments.length;var p,d;switch(l){case 0:case 1:return process.nextTick(r);case 2:return process.nextTick((function afterTickOne(){r.call(null,i)}));case 3:return process.nextTick((function afterTickTwo(){r.call(null,i,a)}));case 4:return process.nextTick((function afterTickThree(){r.call(null,i,a,c)}));default:p=new Array(l-1);d=0;while(d<p.length){p[d++]=arguments[d]}return process.nextTick((function afterTick(){r.apply(null,p)}))}}},7945:r=>{r.exports=global.process},90390:(r,i,a)=>{"use strict";var c=a(14339);var l=a(5546);var p=Object.prototype.hasOwnProperty;function isRetryError(r){return r&&r.code==="EPROMISERETRY"&&p.call(r,"retried")}function promiseRetry(r,i){var a;var p;if(typeof r==="object"&&typeof i==="function"){a=i;i=r;r=a}p=l.operation(i);return new Promise((function(i,a){p.attempt((function(l){Promise.resolve().then((function(){return r((function(r){if(isRetryError(r)){r=r.retried}throw c(new Error("Retrying"),"EPROMISERETRY",{retried:r})}),l)})).then(i,(function(r){if(isRetryError(r)){r=r.retried;if(p.retry(r||new Error)){return}}a(r)}))}))}))}r.exports=promiseRetry},5506:(r,i,a)=>{r.exports=typeof process!=="undefined"&&typeof process.nextTick==="function"?process.nextTick.bind(process):a(36828)},36828:r=>{r.exports=typeof queueMicrotask==="function"?queueMicrotask:r=>Promise.resolve().then(r)},80652:(r,i,a)=>{"use strict";const{SymbolDispose:c}=a(50999);const{AbortError:l,codes:p}=a(69220);const{isNodeStream:d,isWebStream:u,kLine truncated
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */if(!String.fromCodePoint){(function(){var r=String.fromCharCode;var i=Math.floor;var fromCodePoint=function(){var a=16384;var c=[];var l;var p;var d=-1;var u=arguments.length;if(!u){return""}var A="";while(++d<u){var h=Number(arguments[d]);if(!isFinite(h)||h<0||h>1114111||i(h)!==h){throw RangeError("Invalid code point: "+h)}if(h<=65535){c.push(h)}else{h-=65536;l=(h>>10)+55296;p=h%1024+56320;c.push(l,p)}if(d+1===u||c.length>a){A+=r.apply(null,c);c.length=0}}return A};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:fromCodePoint,configurable:true,writable:true})}else{String.fromCodePoint=fromCodePoint}})()}})(false?0:i)},89379:(r,i,a)=>{"use strict";const c=Symbol("SemVer ANY");class Comparator{static get ANY(){return c}constructor(r,i){i=l(i);if(r instanceof Comparator){if(r.loose===!!i.loose){return r}else{r=r.value}}r=r.trim().split(/\s+/).join(" ");A("comparator",r,i);this.options=i;this.loose=!!i.loose;this.parse(r);if(this.semver===c){this.value=""}else{this.value=this.operator+this.semver.version}A("comp",this)}parse(r){const i=this.options.loose?p[d.COMPARATORLOOSE]:p[d.COMPARATOR];const a=r.match(i);if(!a){throw new TypeError(`Invalid comparator: ${r}`)}this.operator=a[1]!==undefined?a[1]:"";if(this.operator==="="){this.operator=""}if(!a[2]){this.semver=c}else{this.semver=new h(a[2],this.options.loose)}}toString(){return this.value}test(r){A("Comparator.test",r,this.options.loose);if(this.semver===c||r===c){return true}if(typeof r==="string"){try{r=new h(r,this.options)}catch(r){return false}}return u(r,this.operator,this.semver,this.options)}intersects(r,i){if(!(r instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new b(r.value,i).test(this.value)}else if(r.operator===""){if(r.value===""){return true}return new b(this.value,i).test(r.semver)}i=l(i);if(i.includePrerelease&&(this.value==="<0.0.0-0"||r.value==="<0.0.0-0")){return false}if(!i.includePrerelease&&(this.value.startsWith("<0.0.0")||r.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&r.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&r.operator.startsWith("<")){return true}if(this.semver.version===r.semver.version&&this.operator.includes("=")&&r.operator.includes("=")){return true}if(u(this.semver,"<",r.semver,i)&&this.operator.startsWith(">")&&r.operator.startsWith("<")){return true}if(u(this.semver,">",r.semver,i)&&this.operator.startsWith("<")&&r.operator.startsWith(">")){return true}return false}}r.exports=Comparator;const l=a(70356);const{safeRe:p,t:d}=a(95471);const u=a(28646);const A=a(1159);const h=a(7163);const b=a(96782)},96782:(r,i,a)=>{"use strict";const c=/\s+/g;class Range{constructor(r,i){i=d(i);if(r instanceof Range){if(r.loose===!!i.loose&&r.includePrerelease===!!i.includePrerelease){return r}else{return new Range(r.raw,i)}}if(r instanceof u){this.raw=r.value;this.set=[[r]];this.formatted=undefined;return this}this.options=i;this.loose=!!i.loose;this.includePrerelease=!!i.includePrerelease;this.raw=r.trim().replace(c," ");this.set=this.raw.split("||").map((r=>this.parseRange(r.trim()))).filter((r=>r.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const r=this.set[0];this.set=this.set.filter((r=>!isNullSet(r[0])));if(this.set.length===0){this.set=[r]}else if(this.set.length>1){for(const r of this.set){if(r.length===1&&isAny(r[0])){this.set=[r];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let r=0;r<this.set.length;r++){if(r>0){this.formatted+="||"}const i=this.set[r];for(let r=0;r<i.length;r++){if(r>0){this.formatted+=" "}this.formatted+=i[r].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(r){const i=(this.options.includePrerelease&&z)|(this.options.loose&&C);const a=i+":"+r;const c=p.get(a);if(c){return c}const l=this.options.loose;const d=l?b[g.HYPHENRANGELOOSE]:b[g.HYPHENRANGE];r=r.replace(d,hyphenReplace(this.options.includePrerelease));A("hyphen replace",r);r=r.replace(b[g.COMPARATORTRIM],M);A("comparator trim",r);r=r.replace(b[g.TILDETRIM],y);A("tilde trim",r);r=r.replace(b[g.CARETTRIM],O);A("caret trim",r);let h=r.split(" ").map((r=>parseComparator(r,this.options))).join(" ").split(/\s+/).map((r=>replaceGTE0(r,this.options)));if(l){h=h.filter((r=>{A("loose invalid filter",r,this.options);return!!r.match(b[g.COMPARATORLOOSE])}))}A("range list",h);const B=new Map;const I=h.map((r=>new u(r,this.options)));for(const r of I){if(isNullSet(r)){return[r]}B.set(r.value,r)}if(B.size>1&&B.has("")){B.delete("")}const v=[...B.values()];p.set(a,v);return v}intersects(r,i){if(!(r instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((a=>isSatisfiable(a,i)&&r.set.some((r=>isSatisfiable(r,i)&&a.every((a=>r.every((r=>a.inteLine truncated
var i=o(79168);var a=o(25111);var c=o(56008);var p=o(53672);t.exports=Negotiator;t.exports.Negotiator=Negotiator;function Negotiator(t){if(!(this instanceof Negotiator)){return new Negotiator(t)}this.request=t}Negotiator.prototype.charset=function charset(t){var r=this.charsets(t);return r&&r[0]};Negotiator.prototype.charsets=function charsets(t){return i(this.request.headers["accept-charset"],t)};Negotiator.prototype.encoding=function encoding(t,r){var o=this.encodings(t,r);return o&&o[0]};Negotiator.prototype.encodings=function encodings(t,r){var o=r||{};return a(this.request.headers["accept-encoding"],t,o.preferred)};Negotiator.prototype.language=function language(t){var r=this.languages(t);return r&&r[0]};Negotiator.prototype.languages=function languages(t){return c(this.request.headers["accept-language"],t)};Negotiator.prototype.mediaType=function mediaType(t){var r=this.mediaTypes(t);return r&&r[0]};Negotiator.prototype.mediaTypes=function mediaTypes(t){return p(this.request.headers.accept,t)};Negotiator.prototype.preferredCharset=Negotiator.prototype.charset;Negotiator.prototype.preferredCharsets=Negotiator.prototype.charsets;Negotiator.prototype.preferredEncoding=Negotiator.prototype.encoding;Negotiator.prototype.preferredEncodings=Negotiator.prototype.encodings;Negotiator.prototype.preferredLanguage=Negotiator.prototype.language;Negotiator.prototype.preferredLanguages=Negotiator.prototype.languages;Negotiator.prototype.preferredMediaType=Negotiator.prototype.mediaType;Negotiator.prototype.preferredMediaTypes=Negotiator.prototype.mediaTypes},79168:t=>{t.exports=preferredCharsets;t.exports.preferredCharsets=preferredCharsets;var r=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function parseAcceptCharset(t){var r=t.split(",");for(var o=0,i=0;o<r.length;o++){var a=parseCharset(r[o].trim(),o);if(a){r[i++]=a}}r.length=i;return r}function parseCharset(t,o){var i=r.exec(t);if(!i)return null;var a=i[1];var c=1;if(i[2]){var p=i[2].split(";");for(var u=0;u<p.length;u++){var l=p[u].trim().split("=");if(l[0]==="q"){c=parseFloat(l[1]);break}}}return{charset:a,q:c,i:o}}function getCharsetPriority(t,r,o){var i={o:-1,q:0,s:0};for(var a=0;a<r.length;a++){var c=specify(t,r[a],o);if(c&&(i.s-c.s||i.q-c.q||i.o-c.o)<0){i=c}}return i}function specify(t,r,o){var i=0;if(r.charset.toLowerCase()===t.toLowerCase()){i|=1}else if(r.charset!=="*"){return null}return{i:o,o:r.i,q:r.q,s:i}}function preferredCharsets(t,r){var o=parseAcceptCharset(t===undefined?"*":t||"");if(!r){return o.filter(isQuality).sort(compareSpecs).map(getFullCharset)}var i=r.map((function getPriority(t,r){return getCharsetPriority(t,o,r)}));return i.filter(isQuality).sort(compareSpecs).map((function getCharset(t){return r[i.indexOf(t)]}))}function compareSpecs(t,r){return r.q-t.q||r.s-t.s||t.o-r.o||t.i-r.i||0}function getFullCharset(t){return t.charset}function isQuality(t){return t.q>0}},25111:t=>{t.exports=preferredEncodings;t.exports.preferredEncodings=preferredEncodings;var r=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function parseAcceptEncoding(t){var r=t.split(",");var o=false;var i=1;for(var a=0,c=0;a<r.length;a++){var p=parseEncoding(r[a].trim(),a);if(p){r[c++]=p;o=o||specify("identity",p);i=Math.min(i,p.q||1)}}if(!o){r[c++]={encoding:"identity",q:i,i:a}}r.length=c;return r}function parseEncoding(t,o){var i=r.exec(t);if(!i)return null;var a=i[1];var c=1;if(i[2]){var p=i[2].split(";");for(var u=0;u<p.length;u++){var l=p[u].trim().split("=");if(l[0]==="q"){c=parseFloat(l[1]);break}}}return{encoding:a,q:c,i:o}}function getEncodingPriority(t,r,o){var i={encoding:t,o:-1,q:0,s:0};for(var a=0;a<r.length;a++){var c=specify(t,r[a],o);if(c&&(i.s-c.s||i.q-c.q||i.o-c.o)<0){i=c}}return i}function specify(t,r,o){var i=0;if(r.encoding.toLowerCase()===t.toLowerCase()){i|=1}else if(r.encoding!=="*"){return null}return{encoding:t,i:o,o:r.i,q:r.q,s:i}}function preferredEncodings(t,r,o){var i=parseAcceptEncoding(t||"");var a=o?function comparator(t,r){if(t.q!==r.q){return r.q-t.q}var i=o.indexOf(t.encoding);var a=o.indexOf(r.encoding);if(i===-1&&a===-1){return r.s-t.s||t.o-r.o||t.i-r.i}if(i!==-1&&a!==-1){return i-a}return i===-1?1:-1}:compareSpecs;if(!r){return i.filter(isQuality).sort(a).map(getFullEncoding)}var c=r.map((function getPriority(t,r){return getEncodingPriority(t,i,r)}));return c.filter(isQuality).sort(a).map((function getEncoding(t){return r[c.indexOf(t)]}))}function compareSpecs(t,r){return r.q-t.q||r.s-t.s||t.o-r.o||t.i-r.i}function getFullEncoding(t){return t.encoding}function isQuality(t){return t.q>0}},56008:t=>{t.exports=preferredLanguages;t.exports.preferredLanguages=preferredLanguages;var r=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function parseAcceptLanguage(t){var r=t.split(",");for(var o=0,i=0;o<r.length;o++){var a=parseLanguage(r[o].trim(),o);if(a){r[i++]=a}}r.length=i;return r}function parseLanguage(t,o){var i=r.exec(t);if(!i)return null;var a=i[1];var c=i[2];var p=a;if(c)p+="-"+c;var u=1;if(i[3]){var l=i[3].split(";");for(var d=0;d<l.length;d++){var A=l[d].split(Line truncated
/*!
* Tmp
*
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
*/
const c=a(79896);const l=a(70857);const p=a(16928);const d=a(76982);const u={fs:c.constants,os:l.constants};const A="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",h=/XXXXXX/,b=3,g=(u.O_CREAT||u.fs.O_CREAT)|(u.O_EXCL||u.fs.O_EXCL)|(u.O_RDWR||u.fs.O_RDWR),M=l.platform()==="win32",y=u.EBADF||u.os.errno.EBADF,O=u.ENOENT||u.os.errno.ENOENT,z=448,C=384,B="exit",I=[],v=c.rmdirSync.bind(c);let w=false;function rimraf(r,i){return c.rm(r,{recursive:true},i)}function FN_RIMRAF_SYNC(r){return c.rmSync(r,{recursive:true})}function tmpName(r,i){const a=_parseArguments(r,i),l=a[0],p=a[1];_assertAndSanitizeOptions(l,(function(r,i){if(r)return p(r);let a=i.tries;(function _getUniqueName(){try{const r=_generateTmpName(i);c.stat(r,(function(i){if(!i){if(a-- >0)return _getUniqueName();return p(new Error("Could not get a unique tmp filename, max tries reached "+r))}p(null,r)}))}catch(r){p(r)}})()}))}function tmpNameSync(r){const i=_parseArguments(r),a=i[0];const l=_assertAndSanitizeOptionsSync(a);let p=l.tries;do{const r=_generateTmpName(l);try{c.statSync(r)}catch(i){return r}}while(p-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(r,i){const a=_parseArguments(r,i),l=a[0],p=a[1];tmpName(l,(function _tmpNameCreated(r,i){if(r)return p(r);c.open(i,g,l.mode||C,(function _fileCreated(r,a){if(r)return p(r);if(l.discardDescriptor){return c.close(a,(function _discardCallback(r){return p(r,i,undefined,_prepareTmpFileRemoveCallback(i,-1,l,false))}))}else{const r=l.discardDescriptor||l.detachDescriptor;p(null,i,a,_prepareTmpFileRemoveCallback(i,r?-1:a,l,false))}}))}))}function fileSync(r){const i=_parseArguments(r),a=i[0];const l=a.discardDescriptor||a.detachDescriptor;const p=tmpNameSync(a);let d=c.openSync(p,g,a.mode||C);if(a.discardDescriptor){c.closeSync(d);d=undefined}return{name:p,fd:d,removeCallback:_prepareTmpFileRemoveCallback(p,l?-1:d,a,true)}}function dir(r,i){const a=_parseArguments(r,i),l=a[0],p=a[1];tmpName(l,(function _tmpNameCreated(r,i){if(r)return p(r);c.mkdir(i,l.mode||z,(function _dirCreated(r){if(r)return p(r);p(null,i,_prepareTmpDirRemoveCallback(i,l,false))}))}))}function dirSync(r){const i=_parseArguments(r),a=i[0];const l=tmpNameSync(a);c.mkdirSync(l,a.mode||z);return{name:l,removeCallback:_prepareTmpDirRemoveCallback(l,a,true)}}function _removeFileAsync(r,i){const _handler=function(r){if(r&&!_isENOENT(r)){return i(r)}i()};if(0<=r[0])c.close(r[0],(function(){c.unlink(r[1],_handler)}));else c.unlink(r[1],_handler)}function _removeFileSync(r){let i=null;try{if(0<=r[0])c.closeSync(r[0])}catch(r){if(!_isEBADF(r)&&!_isENOENT(r))throw r}finally{try{c.unlinkSync(r[1])}catch(r){if(!_isENOENT(r))i=r}}if(i!==null){throw i}}function _prepareTmpFileRemoveCallback(r,i,a,c){const l=_prepareRemoveCallback(_removeFileSync,[i,r],c);const p=_prepareRemoveCallback(_removeFileAsync,[i,r],c,l);if(!a.keep)I.unshift(l);return c?l:p}function _prepareTmpDirRemoveCallback(r,i,a){const l=i.unsafeCleanup?rimraf:c.rmdir.bind(c);const p=i.unsafeCleanup?FN_RIMRAF_SYNC:v;const d=_prepareRemoveCallback(p,r,a);const u=_prepareRemoveCallback(l,r,a,d);if(!i.keep)I.unshift(d);return a?d:u}function _prepareRemoveCallback(r,i,a,c){let l=false;return function _cleanupCallback(p){if(!l){const d=c||_cleanupCallback;const u=I.indexOf(d);if(u>=0)I.splice(u,1);l=true;if(a||r===v||r===FN_RIMRAF_SYNC){return r(i)}else{return r(i,p||function(){})}}}}function _garbageCollector(){if(!w)return;while(I.length){try{I[0]()}catch(r){}}}function _randomChars(r){let i=[],a=null;try{a=d.randomBytes(r)}catch(i){a=d.pseudoRandomBytes(r)}for(let c=0;c<r;c++){i.push(A[a[c]%A.length])}return i.join("")}function _isUndefined(r){return typeof r==="undefined"}function _parseArguments(r,i){if(typeof r==="function"){return[{},r]}if(_isUndefined(r)){return[{},i]}const a={};for(const i of Object.getOwnPropertyNames(r)){a[i]=r[i]}return[a,i]}function _resolvePath(r,i,a){const l=p.isAbsolute(r)?r:p.join(i,r);c.stat(l,(function(r){if(r){c.realpath(p.dirname(l),(function(r,i){if(r)return a(r);a(null,p.join(i,p.basename(l)))}))}else{c.realpath(l,a)}}))}function _resolvePathSync(r,i){const a=p.isAbsolute(r)?r:p.join(i,r);try{c.statSync(a);return c.realpathSync(a)}catch(r){const i=c.realpathSync(p.dirname(a));return p.join(i,p.basename(a))}}function _generateTmpName(r){const i=r.tmpdir;if(!_isUndefined(r.name)){return p.join(i,r.dir,r.name)}if(!_isUndefined(r.template)){return p.join(i,r.dir,r.template).replace(h,_randomChars(6))}const a=[r.prefix?r.prefix:"tmp","-",process.pid,"-",_randomChars(12),r.postfix?"-"+r.postfix:""].join("");return p.join(i,r.dir,a)}function _assertOptionsBase(r){if(!_isUndefined(r.name)){const i=r.name;if(p.isAbsolute(i))throw new Error(`name option must not contain an absolute path, found "${i}".`);const a=p.basename(i);if(a===".."||a==="."||a!==i)throw new Error(`name option must not contain a path, found "${i}".`)}if(!_isUndefined(r.template)&&!r.template.match(h)){throw new Error(`Invalid templ Line truncated
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=r=>r.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=r=>r.replace(/\r?\n|\r/g,"\r\n");const c=[];const l=new Uint8Array([13,10]);g=0;let p=false;for(const[i,d]of r){if(typeof d==="string"){const r=_.encode(a+`; name="${escape(normalizeLinefeeds(i))}"`+`\r\n\r\n${normalizeLinefeeds(d)}\r\n`);c.push(r);g+=r.byteLength}else{const r=_.encode(`${a}; name="${escape(normalizeLinefeeds(i))}"`+(d.name?`; filename="${escape(d.name)}"`:"")+"\r\n"+`Content-Type: ${d.type||"application/octet-stream"}\r\n\r\n`);c.push(r,d,l);if(typeof d.size==="number"){g+=r.byteLength+d.size+l.byteLength}else{p=true}}}const d=_.encode(`--${i}--`);c.push(d);g+=d.byteLength;if(p){g=null}b=r;h=async function*(){for(const r of c){if(r.stream){yield*r.stream()}else{yield r}}};M="multipart/form-data; boundary="+i}else if(d(r)){b=r;g=r.size;if(r.type){M=r.type}}else if(typeof r[Symbol.asyncIterator]==="function"){if(i){throw new TypeError("keepalive")}if(l.isDisturbed(r)||r.locked){throw new TypeError("Response body object should not be disturbed or locked")}c=r instanceof T?r:p(r)}if(typeof b==="string"||l.isBuffer(b)){g=Buffer.byteLength(b)}if(h!=null){let i;c=new T({async start(){i=h(r)[Symbol.asyncIterator]()},async pull(r){const{value:a,done:l}=await i.next();if(l){queueMicrotask((()=>{r.close()}))}else{if(!w(c)){r.enqueue(new Uint8Array(a))}}return r.desiredSize>0},async cancel(r){await i.return()},type:undefined})}const y={stream:c,source:b,length:g};return[y,M]}function safelyExtractBody(r,i=false){if(!T){T=a(63774).ReadableStream}if(r instanceof T){v(!l.isDisturbed(r),"The body has already been consumed.");v(!r.locked,"The stream is locked.")}return extractBody(r,i)}function cloneBody(r){const[i,a]=r.stream.tee();const c=z(a,{transfer:[a]});const[,l]=c.tee();r.stream=i;return{stream:l,length:r.length,source:r.source}}async function*consumeBody(r){if(r){if(S(r)){yield r}else{const i=r.stream;if(l.isDisturbed(i)){throw new TypeError("The body has already been consumed.")}if(i.locked){throw new TypeError("The stream is locked.")}i[I]=true;yield*i}}}function throwIfAborted(r){if(r.aborted){throw new O("The operation was aborted.","AbortError")}}function bodyMixinMethods(r){const i={blob(){return specConsumeBody(this,(r=>{let i=bodyMimeType(this);if(i==="failure"){i=""}else if(i){i=q(i)}return new C([r],{type:i})}),r)},arrayBuffer(){return specConsumeBody(this,(r=>new Uint8Array(r).buffer),r)},text(){return specConsumeBody(this,utf8DecodeBytes,r)},json(){return specConsumeBody(this,parseJSONFromBytes,r)},async formData(){y.brandCheck(this,r);throwIfAborted(this[M]);const i=this.headers.get("Content-Type");if(/multipart\/form-data/.test(i)){const r={};for(const[i,a]of this.headers)r[i.toLowerCase()]=a;const i=new g;let a;try{a=new c({headers:r,preservePath:true})}catch(r){throw new O(`${r}`,"AbortError")}a.on("field",((r,a)=>{i.append(r,a)}));a.on("file",((r,a,c,l,p)=>{const d=[];if(l==="base64"||l.toLowerCase()==="base64"){let l="";a.on("data",(r=>{l+=r.toString().replace(/[\r\n]/gm,"");const i=l.length-l.length%4;d.push(Buffer.from(l.slice(0,i),"base64"));l=l.slice(i)}));a.on("end",(()=>{d.push(Buffer.from(l,"base64"));i.append(r,new k(d,c,{type:p}))}))}else{a.on("data",(r=>{d.push(r)}));a.on("end",(()=>{i.append(r,new k(d,c,{type:p}))}))}}));const l=new Promise(((r,i)=>{a.on("finish",r);a.on("error",(r=>i(new TypeError(r))))}));if(this.body!==null)for await(const r of consumeBody(this[M].body))a.write(r);a.end();await l;return i}else if(/application\/x-www-form-urlencoded/.test(i)){let r;try{let i="";const a=new TextDecoder("utf-8",{ignoreBOM:true});for await(const r of consumeBody(this[M].body)){if(!S(r)){throw new TypeError("Expected Uint8Array chunk")}i+=a.decode(r,{stream:true})}i+=a.decode();r=new URLSearchParams(i)}catch(r){throw Object.assign(new TypeError,{cause:r})}const i=new g;for(const[a,c]of r){i.append(a,c)}return i}else{await Promise.resolve();throwIfAborted(this[M]);throw y.errors.exception({header:`${r.name}.formData`,message:"Could not parse content as FormData."})}}};return i}function mixinBody(r){Object.assign(r.prototype,bodyMixinMethods(r))}async function specConsumeBody(r,i,a){y.brandCheck(r,a);throwIfAborted(r[M]);if(bodyUnusable(r[M].body)){throw new TypeError("Body is unusable")}const c=h();const errorSteps=r=>c.reject(r);const successSteps=r=>{try{c.resolve(i(r))}catch(r){errorSteps(r)}};if(r[M].body==null){successSteps(new Uint8Array);return c.promise}await b(r[M].body,successSteps,errorSteps);return c.promise}function bodyUnusable(r){return r!=null&&(r.stream.locked||l.isDisturbed(r.stream))}function utf8DecodeBytes(r){if(r.length===0){return""}if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}const i=L.decode(r);return i}function parseJSONFromBytes(r){return JSON.parse(utf8DecodeBytes(r))}function bodyMimeType(r){const{headersList:i}=r[M];const a=i.get("contentLine truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */p[l-4]=this.maskKey[0];p[l-3]=this.maskKey[1];p[l-2]=this.maskKey[2];p[l-1]=this.maskKey[3];p[1]=a;if(a===126){p.writeUInt16BE(i,2)}else if(a===127){p[2]=p[3]=0;p.writeUIntBE(i,4,6)}p[1]|=128;for(let r=0;r<i;r++){p[l+r]=this.frameData[r]^this.maskKey[r%4]}return p}}r.exports={WebsocketFrameSend:WebsocketFrameSend}},43171:(r,i,a)=>{"use strict";const{Writable:c}=a(2203);const l=a(31637);const{parserStates:p,opcodes:d,states:u,emptyBuffer:A}=a(45913);const{kReadyState:h,kSentClose:b,kResponse:g,kReceivedClose:M}=a(62933);const{isValidStatusCode:y,failWebsocketConnection:O,websocketMessageReceived:z}=a(3574);const{WebsocketFrameSend:C}=a(31237);const B={};B.ping=l.channel("undici:websocket:ping");B.pong=l.channel("undici:websocket:pong");class ByteParser extends c{#o=[];#a=0;#c=p.INFO;#l={};#p=[];constructor(r){super();this.ws=r}_write(r,i,a){this.#o.push(r);this.#a+=r.length;this.run(a)}run(r){while(true){if(this.#c===p.INFO){if(this.#a<2){return r()}const i=this.consume(2);this.#l.fin=(i[0]&128)!==0;this.#l.opcode=i[0]&15;this.#l.originalOpcode??=this.#l.opcode;this.#l.fragmented=!this.#l.fin&&this.#l.opcode!==d.CONTINUATION;if(this.#l.fragmented&&this.#l.opcode!==d.BINARY&&this.#l.opcode!==d.TEXT){O(this.ws,"Invalid frame type was fragmented.");return}const a=i[1]&127;if(a<=125){this.#l.payloadLength=a;this.#c=p.READ_DATA}else if(a===126){this.#c=p.PAYLOADLENGTH_16}else if(a===127){this.#c=p.PAYLOADLENGTH_64}if(this.#l.fragmented&&a>125){O(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#l.opcode===d.PING||this.#l.opcode===d.PONG||this.#l.opcode===d.CLOSE)&&a>125){O(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#l.opcode===d.CLOSE){if(a===1){O(this.ws,"Received close frame with a 1-byte body.");return}const r=this.consume(a);this.#l.closeInfo=this.parseCloseBody(false,r);if(!this.ws[b]){const r=Buffer.allocUnsafe(2);r.writeUInt16BE(this.#l.closeInfo.code,0);const i=new C(r);this.ws[g].socket.write(i.createFrame(d.CLOSE),(r=>{if(!r){this.ws[b]=true}}))}this.ws[h]=u.CLOSING;this.ws[M]=true;this.end();return}else if(this.#l.opcode===d.PING){const i=this.consume(a);if(!this.ws[M]){const r=new C(i);this.ws[g].socket.write(r.createFrame(d.PONG));if(B.ping.hasSubscribers){B.ping.publish({payload:i})}}this.#c=p.INFO;if(this.#a>0){continue}else{r();return}}else if(this.#l.opcode===d.PONG){const i=this.consume(a);if(B.pong.hasSubscribers){B.pong.publish({payload:i})}if(this.#a>0){continue}else{r();return}}}else if(this.#c===p.PAYLOADLENGTH_16){if(this.#a<2){return r()}const i=this.consume(2);this.#l.payloadLength=i.readUInt16BE(0);this.#c=p.READ_DATA}else if(this.#c===p.PAYLOADLENGTH_64){if(this.#a<8){return r()}const i=this.consume(8);const a=i.readUInt32BE(0);if(a>2**31-1){O(this.ws,"Received payload length > 2^31 bytes.");return}const c=i.readUInt32BE(4);this.#l.payloadLength=(a<<8)+c;this.#c=p.READ_DATA}else if(this.#c===p.READ_DATA){if(this.#a<this.#l.payloadLength){return r()}else if(this.#a>=this.#l.payloadLength){const r=this.consume(this.#l.payloadLength);this.#p.push(r);if(!this.#l.fragmented||this.#l.fin&&this.#l.opcode===d.CONTINUATION){const r=Buffer.concat(this.#p);z(this.ws,this.#l.originalOpcode,r);this.#l={};this.#p.length=0}this.#c=p.INFO}}if(this.#a>0){continue}else{r();break}}}consume(r){if(r>this.#a){return null}else if(r===0){return A}if(this.#o[0].length===r){this.#a-=this.#o[0].length;return this.#o.shift()}const i=Buffer.allocUnsafe(r);let a=0;while(a!==r){const c=this.#o[0];const{length:l}=c;if(l+a===r){i.set(this.#o.shift(),a);break}else if(l+a>r){i.set(c.subarray(0,r-a),a);this.#o[0]=c.subarray(r-a);break}else{i.set(this.#o.shift(),a);a+=c.length}}this.#a-=r;return i}parseCloseBody(r,i){let a;if(i.length>=2){a=i.readUInt16BE(0)}if(r){if(!y(a)){return null}return{code:a}}let c=i.subarray(2);if(c[0]===239&&c[1]===187&&c[2]===191){c=c.subarray(3)}if(a!==undefined&&!y(a)){return null}try{c=new TextDecoder("utf-8",{fatal:true}).decode(c)}catch{return null}return{code:a,reason:c}}get closingInfo(){return this.#l.closeInfo}}r.exports={ByteParser:ByteParser}},62933:r=>{"use strict";r.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(r,i,a)=>{"use strict";const{kReadyState:c,kController:l,kResponse:p,kBinaryType:d,kWebSocketURL:u}=a(62933);const{states:A,opcodes:h}=a(45913);const{MessageEvent:b,ErrorEvent:g}=a(46255);function isEstablished(r){return r[c]===A.OPEN}function isClosing(r){return r[c]===A.CLOSING}function isClosed(r){return r[c]===A.CLOSED}function fireEvent(r,i,a=Event,c){const l=new a(r,c);i.dispatchEvent(l)}function websocketMessageReceived(r,i,a){if(r[c]!==A.OPEN){return}let l;if(i===h.TEXT){try{l=new TextDecoder("utf-8",{fatal:true}).Line truncated
*/const a=o(79896);const c=o(70857);const p=o(16928);const u=o(76982);const l={fs:a.constants,os:c.constants};const d="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",A=/XXXXXX/,b=3,h=(l.O_CREAT||l.fs.O_CREAT)|(l.O_EXCL||l.fs.O_EXCL)|(l.O_RDWR||l.fs.O_RDWR),M=c.platform()==="win32",g=l.EBADF||l.os.errno.EBADF,z=l.ENOENT||l.os.errno.ENOENT,O=448,y=384,C="exit",B=[],I=a.rmdirSync.bind(a);let R=false;function rimraf(t,r){return a.rm(t,{recursive:true},r)}function FN_RIMRAF_SYNC(t){return a.rmSync(t,{recursive:true})}function tmpName(t,r){const o=_parseArguments(t,r),i=o[0],c=o[1];_assertAndSanitizeOptions(i,(function(t,r){if(t)return c(t);let o=r.tries;(function _getUniqueName(){try{const t=_generateTmpName(r);a.stat(t,(function(r){if(!r){if(o-- >0)return _getUniqueName();return c(new Error("Could not get a unique tmp filename, max tries reached "+t))}c(null,t)}))}catch(t){c(t)}})()}))}function tmpNameSync(t){const r=_parseArguments(t),o=r[0];const i=_assertAndSanitizeOptionsSync(o);let c=i.tries;do{const t=_generateTmpName(i);try{a.statSync(t)}catch(r){return t}}while(c-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(t,r){const o=_parseArguments(t,r),i=o[0],c=o[1];tmpName(i,(function _tmpNameCreated(t,r){if(t)return c(t);a.open(r,h,i.mode||y,(function _fileCreated(t,o){if(t)return c(t);if(i.discardDescriptor){return a.close(o,(function _discardCallback(t){return c(t,r,undefined,_prepareTmpFileRemoveCallback(r,-1,i,false))}))}else{const t=i.discardDescriptor||i.detachDescriptor;c(null,r,o,_prepareTmpFileRemoveCallback(r,t?-1:o,i,false))}}))}))}function fileSync(t){const r=_parseArguments(t),o=r[0];const i=o.discardDescriptor||o.detachDescriptor;const c=tmpNameSync(o);let p=a.openSync(c,h,o.mode||y);if(o.discardDescriptor){a.closeSync(p);p=undefined}return{name:c,fd:p,removeCallback:_prepareTmpFileRemoveCallback(c,i?-1:p,o,true)}}function dir(t,r){const o=_parseArguments(t,r),i=o[0],c=o[1];tmpName(i,(function _tmpNameCreated(t,r){if(t)return c(t);a.mkdir(r,i.mode||O,(function _dirCreated(t){if(t)return c(t);c(null,r,_prepareTmpDirRemoveCallback(r,i,false))}))}))}function dirSync(t){const r=_parseArguments(t),o=r[0];const i=tmpNameSync(o);a.mkdirSync(i,o.mode||O);return{name:i,removeCallback:_prepareTmpDirRemoveCallback(i,o,true)}}function _removeFileAsync(t,r){const _handler=function(t){if(t&&!_isENOENT(t)){return r(t)}r()};if(0<=t[0])a.close(t[0],(function(){a.unlink(t[1],_handler)}));else a.unlink(t[1],_handler)}function _removeFileSync(t){let r=null;try{if(0<=t[0])a.closeSync(t[0])}catch(t){if(!_isEBADF(t)&&!_isENOENT(t))throw t}finally{try{a.unlinkSync(t[1])}catch(t){if(!_isENOENT(t))r=t}}if(r!==null){throw r}}function _prepareTmpFileRemoveCallback(t,r,o,i){const a=_prepareRemoveCallback(_removeFileSync,[r,t],i);const c=_prepareRemoveCallback(_removeFileAsync,[r,t],i,a);if(!o.keep)B.unshift(a);return i?a:c}function _prepareTmpDirRemoveCallback(t,r,o){const i=r.unsafeCleanup?rimraf:a.rmdir.bind(a);const c=r.unsafeCleanup?FN_RIMRAF_SYNC:I;const p=_prepareRemoveCallback(c,t,o);const u=_prepareRemoveCallback(i,t,o,p);if(!r.keep)B.unshift(p);return o?p:u}function _prepareRemoveCallback(t,r,o,i){let a=false;return function _cleanupCallback(c){if(!a){const p=i||_cleanupCallback;const u=B.indexOf(p);if(u>=0)B.splice(u,1);a=true;if(o||t===I||t===FN_RIMRAF_SYNC){return t(r)}else{return t(r,c||function(){})}}}}function _garbageCollector(){if(!R)return;while(B.length){try{B[0]()}catch(t){}}}function _randomChars(t){let r=[],o=null;try{o=u.randomBytes(t)}catch(r){o=u.pseudoRandomBytes(t)}for(let i=0;i<t;i++){r.push(d[o[i]%d.length])}return r.join("")}function _isUndefined(t){return typeof t==="undefined"}function _parseArguments(t,r){if(typeof t==="function"){return[{},t]}if(_isUndefined(t)){return[{},r]}const o={};for(const r of Object.getOwnPropertyNames(t)){o[r]=t[r]}return[o,r]}function _resolvePath(t,r,o){const i=p.isAbsolute(t)?t:p.join(r,t);a.stat(i,(function(t){if(t){a.realpath(p.dirname(i),(function(t,r){if(t)return o(t);o(null,p.join(r,p.basename(i)))}))}else{a.realpath(i,o)}}))}function _resolvePathSync(t,r){const o=p.isAbsolute(t)?t:p.join(r,t);try{a.statSync(o);return a.realpathSync(o)}catch(t){const r=a.realpathSync(p.dirname(o));return p.join(r,p.basename(o))}}function _generateTmpName(t){const r=t.tmpdir;if(!_isUndefined(t.name)){return p.join(r,t.dir,t.name)}if(!_isUndefined(t.template)){return p.join(r,t.dir,t.template).replace(A,_randomChars(6))}const o=[t.prefix?t.prefix:"tmp","-",process.pid,"-",_randomChars(12),t.postfix?"-"+t.postfix:""].join("");return p.join(r,t.dir,o)}function _assertOptionsBase(t){if(!_isUndefined(t.name)){const r=t.name;if(p.isAbsolute(r))throw new Error(`name option must not contain an absolute path, found "${r}".`);const o=p.basename(r);if(o===".."||o==="."||o!==r)throw new Error(`name option must not contain a path, found "${r}".`)}if(!_isUndefined(t.template)&&!t.template.match(A)){throw new Error(`Invalid teLine truncated
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=t=>t.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=t=>t.replace(/\r?\n|\r/g,"\r\n");const i=[];const a=new Uint8Array([13,10]);A=0;let c=false;for(const[r,p]of t){if(typeof p==="string"){const t=q.encode(o+`; name="${escape(normalizeLinefeeds(r))}"`+`\r\n\r\n${normalizeLinefeeds(p)}\r\n`);i.push(t);A+=t.byteLength}else{const t=q.encode(`${o}; name="${escape(normalizeLinefeeds(r))}"`+(p.name?`; filename="${escape(p.name)}"`:"")+"\r\n"+`Content-Type: ${p.type||"application/octet-stream"}\r\n\r\n`);i.push(t,p,a);if(typeof p.size==="number"){A+=t.byteLength+p.size+a.byteLength}else{c=true}}}const p=q.encode(`--${r}--\r\n`);i.push(p);A+=p.byteLength;if(c){A=null}d=t;l=async function*(){for(const t of i){if(t.stream){yield*t.stream()}else{yield t}}};b=`multipart/form-data; boundary=${r}`}else if(c(t)){d=t;A=t.size;if(t.type){b=t.type}}else if(typeof t[Symbol.asyncIterator]==="function"){if(r){throw new TypeError("keepalive")}if(i.isDisturbed(t)||t.locked){throw new TypeError("Response body object should not be disturbed or locked")}o=t instanceof ReadableStream?t:a(t)}if(typeof d==="string"||i.isBuffer(d)){A=Buffer.byteLength(d)}if(l!=null){let r;o=new ReadableStream({async start(){r=l(t)[Symbol.asyncIterator]()},async pull(t){const{value:i,done:a}=await r.next();if(a){queueMicrotask((()=>{t.close();t.byobRequest?.respond(0)}))}else{if(!y(o)){const r=new Uint8Array(i);if(r.byteLength){t.enqueue(r)}}}return t.desiredSize>0},async cancel(t){await r.return()},type:"bytes"})}const h={stream:o,source:d,length:A};return[h,b]}function safelyExtractBody(t,r=false){if(t instanceof ReadableStream){O(!i.isDisturbed(t),"The body has already been consumed.");O(!t.locked,"The stream is locked.")}return extractBody(t,r)}function cloneBody(t,r){const[o,i]=r.stream.tee();r.stream=o;return{stream:i,length:r.length,source:r.source}}function throwIfAborted(t){if(t.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(t){const r={blob(){return consumeBody(this,(t=>{let r=bodyMimeType(this);if(r===null){r=""}else if(r){r=I(r)}return new z([t],{type:r})}),t)},arrayBuffer(){return consumeBody(this,(t=>new Uint8Array(t).buffer),t)},text(){return consumeBody(this,b,t)},json(){return consumeBody(this,parseJSONFromBytes,t)},formData(){return consumeBody(this,(t=>{const r=bodyMimeType(this);if(r!==null){switch(r.essence){case"multipart/form-data":{const o=R(t,r);if(o==="failure"){throw new TypeError("Failed to parse body as FormData.")}const i=new h;i[M]=o;return i}case"application/x-www-form-urlencoded":{const r=new URLSearchParams(t.toString());const o=new h;for(const[t,i]of r){o.append(t,i)}return o}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),t)},bytes(){return consumeBody(this,(t=>new Uint8Array(t)),t)}};return r}function mixinBody(t){Object.assign(t.prototype,bodyMixinMethods(t))}async function consumeBody(t,r,o){g.brandCheck(t,o);if(bodyUnusable(t)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(t[M]);const i=l();const errorSteps=t=>i.reject(t);const successSteps=t=>{try{i.resolve(r(t))}catch(t){errorSteps(t)}};if(t[M].body==null){successSteps(Buffer.allocUnsafe(0));return i.promise}await d(t[M].body,successSteps,errorSteps);return i.promise}function bodyUnusable(t){const r=t[M].body;return r!=null&&(r.stream.locked||i.isDisturbed(r.stream))}function parseJSONFromBytes(t){return JSON.parse(b(t))}function bodyMimeType(t){const r=t[M].headersList;const o=A(r);if(o==="failure"){return null}return o}t.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:N,hasFinalizationRegistry:w,bodyUnusable:bodyUnusable}},4495:t=>{const r=["GET","HEAD","POST"];const o=new Set(r);const i=[101,204,205,304];const a=[301,302,303,307,308];const c=new Set(a);const p=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"];const u=new Set(p);const l=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const d=new Set(l);const A=["follow","manual","error"];const b=["GET","HEAD","OPTIONS","TRACE"];const h=new Set(b);const M=["navigate","same-origin","no-cors","cors"];const g=["omit","same-origin","include"];const z=["default","no-store","reload","no-cache","force-cLine truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */u[p-4]=o[0];u[p-3]=o[1];u[p-2]=o[2];u[p-1]=o[3];u[1]=c;if(c===126){u.writeUInt16BE(a,2)}else if(c===127){u[2]=u[3]=0;u.writeUIntBE(a,4,6)}u[1]|=128;for(let t=0;t<a;++t){u[p+t]=r[t]^o[t&3]}return u}}t.exports={WebsocketFrameSend:WebsocketFrameSend}},19469:(t,r,o)=>{const{createInflateRaw:i,Z_DEFAULT_WINDOWBITS:a}=o(38522);const{isValidClientWindowBits:c}=o(98625);const p=Buffer.from([0,0,255,255]);const u=Symbol("kBuffer");const l=Symbol("kLength");class PerMessageDeflate{#ce;#e={};constructor(t){this.#e.serverNoContextTakeover=t.has("server_no_context_takeover");this.#e.serverMaxWindowBits=t.get("server_max_window_bits")}decompress(t,r,o){if(!this.#ce){let t=a;if(this.#e.serverMaxWindowBits){if(!c(this.#e.serverMaxWindowBits)){o(new Error("Invalid server_max_window_bits"));return}t=Number.parseInt(this.#e.serverMaxWindowBits)}this.#ce=i({windowBits:t});this.#ce[u]=[];this.#ce[l]=0;this.#ce.on("data",(t=>{this.#ce[u].push(t);this.#ce[l]+=t.length}));this.#ce.on("error",(t=>{this.#ce=null;o(t)}))}this.#ce.write(t);if(r){this.#ce.write(p)}this.#ce.flush((()=>{const t=Buffer.concat(this.#ce[u],this.#ce[l]);this.#ce[u].length=0;this.#ce[l]=0;o(null,t)}))}}t.exports={PerMessageDeflate:PerMessageDeflate}},81652:(t,r,o)=>{const{Writable:i}=o(57075);const a=o(34589);const{parserStates:c,opcodes:p,states:u,emptyBuffer:l,sentCloseFrameState:d}=o(20736);const{kReadyState:A,kSentClose:b,kResponse:h,kReceivedClose:M}=o(61216);const{channels:g}=o(42414);const{isValidStatusCode:z,isValidOpcode:O,failWebsocketConnection:y,websocketMessageReceived:C,utf8Decode:B,isControlFrame:I,isTextBinaryFrame:R,isContinuationFrame:S}=o(98625);const{WebsocketFrameSend:q}=o(3264);const{closeWebSocketConnection:w}=o(86897);const{PerMessageDeflate:N}=o(19469);class ByteParser extends i{#pe=[];#ue=0;#le=false;#T=c.INFO;#de={};#Ae=[];#fe;constructor(t,r){super();this.ws=t;this.#fe=r==null?new Map:r;if(this.#fe.has("permessage-deflate")){this.#fe.set("permessage-deflate",new N(r))}}_write(t,r,o){this.#pe.push(t);this.#ue+=t.length;this.#le=true;this.run(o)}run(t){while(this.#le){if(this.#T===c.INFO){if(this.#ue<2){return t()}const r=this.consume(2);const o=(r[0]&128)!==0;const i=r[0]&15;const a=(r[1]&128)===128;const u=!o&&i!==p.CONTINUATION;const l=r[1]&127;const d=r[0]&64;const A=r[0]&32;const b=r[0]&16;if(!O(i)){y(this.ws,"Invalid opcode received");return t()}if(a){y(this.ws,"Frame cannot be masked");return t()}if(d!==0&&!this.#fe.has("permessage-deflate")){y(this.ws,"Expected RSV1 to be clear.");return}if(A!==0||b!==0){y(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(u&&!R(i)){y(this.ws,"Invalid frame type was fragmented.");return}if(R(i)&&this.#Ae.length>0){y(this.ws,"Expected continuation frame");return}if(this.#de.fragmented&&u){y(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((l>125||u)&&I(i)){y(this.ws,"Control frame either too large or fragmented");return}if(S(i)&&this.#Ae.length===0&&!this.#de.compressed){y(this.ws,"Unexpected continuation frame");return}if(l<=125){this.#de.payloadLength=l;this.#T=c.READ_DATA}else if(l===126){this.#T=c.PAYLOADLENGTH_16}else if(l===127){this.#T=c.PAYLOADLENGTH_64}if(R(i)){this.#de.binaryType=i;this.#de.compressed=d!==0}this.#de.opcode=i;this.#de.masked=a;this.#de.fin=o;this.#de.fragmented=u}else if(this.#T===c.PAYLOADLENGTH_16){if(this.#ue<2){return t()}const r=this.consume(2);this.#de.payloadLength=r.readUInt16BE(0);this.#T=c.READ_DATA}else if(this.#T===c.PAYLOADLENGTH_64){if(this.#ue<8){return t()}const r=this.consume(8);const o=r.readUInt32BE(0);if(o>2**31-1){y(this.ws,"Received payload length > 2^31 bytes.");return}const i=r.readUInt32BE(4);this.#de.payloadLength=(o<<8)+i;this.#T=c.READ_DATA}else if(this.#T===c.READ_DATA){if(this.#ue<this.#de.payloadLength){return t()}const r=this.consume(this.#de.payloadLength);if(I(this.#de.opcode)){this.#le=this.parseControlFrame(r);this.#T=c.INFO}else{if(!this.#de.compressed){this.#Ae.push(r);if(!this.#de.fragmented&&this.#de.fin){const t=Buffer.concat(this.#Ae);C(this.ws,this.#de.binaryType,t);this.#Ae.length=0}this.#T=c.INFO}else{this.#fe.get("permessage-deflate").decompress(r,this.#de.fin,((r,o)=>{if(r){w(this.ws,1007,r.message,r.message.length);return}this.#Ae.push(o);if(!this.#de.fin){this.#T=c.INFO;this.#le=true;this.run(t);return}C(this.ws,this.#de.binaryType,Buffer.concat(this.#Ae));this.#le=true;this.#T=c.INFO;this.#Ae.length=0;this.run(t)}));this.#le=false;break}}}}}consume(t){if(t>this.#ue){throw new Error("Called consume() before buffers satiated.")}else if(t===0){return l}if(this.#pe[0].length===t){this.#ue-=this.#pe[0].length;return this.#pe.shift()}const r=Buffer.allocUnsafe(t);let o=0;while(o!==t){const i=this.#pe[0];const{length:a}=i;if(a+o===t){r.set(this.#pe.shift(),o);break}else if(a+o>t){r.set(i.subarray(0,t-o),o);this.#pe[0]=i.subarray(t-o);break}else{r.set(this.#pe.shift(),o);o+=i.length}}this.#ue-=t;return r}parseCloseBody(t){a(t.length!==1);let r;if(t.lengtLine truncated
/*!
* XRegExp.build 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
*/var h=function _default(r){var i="xregexp";var a=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;var c=r.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,a],"g",{conjunction:"or"});function deanchor(r){var i=/^(?:\(\?:\))*\^/;var a=/\$(?:\(\?:\))*$/;if(i.test(r)&&a.test(r)&&a.test(r.replace(/\\[\s\S]/g,""))){return r.replace(i,"").replace(a,"")}return r}function asXRegExp(a,c){var l=c?"x":"";return r.isRegExp(a)?a[i]&&a[i].captureNames?a:r(a.source,l):r(a,l)}function interpolate(i){return i instanceof RegExp?i:r.escape(i)}function reduceToSubpatternsObject(r,i,a){r["subpattern".concat(a)]=i;return r}function embedSubpatternAfter(r,i,a){var c=i<a.length-1;return r+(c?"{{subpattern".concat(i,"}}"):"")}r.tag=function(i){return function(a){var c,l;for(var p=arguments.length,d=new Array(p>1?p-1:0),h=1;h<p;h++){d[h-1]=arguments[h]}var b=(0,A["default"])(c=(0,u["default"])(d).call(d,interpolate)).call(c,reduceToSubpatternsObject,{});var g=(0,u["default"])(l=a.raw).call(l,embedSubpatternAfter).join("");return r.build(g,b,i)}};r.build=function(l,u,A){A=A||"";var h=(0,d["default"])(A).call(A,"x");var b=/^\(\?([\w$]+)\)/.exec(l);if(b){A=r._clipDuplicates(A+b[1])}var g={};for(var M in u){if(u.hasOwnProperty(M)){var y=asXRegExp(u[M],h);g[M]={pattern:deanchor(y.source),names:y[i].captureNames||[]}}}var O=asXRegExp(l,h);var z=0;var C;var B=0;var I=[0];var v=O[i].captureNames||[];var w=O.source.replace(c,(function(r,i,c,l,d){var u=i||c;var A;var h;var b;if(u){var M;if(!g.hasOwnProperty(u)){throw new ReferenceError("Undefined property ".concat(r))}if(i){A=v[B];I[++B]=++z;h="(?<".concat(A||u,">")}else{h="(?:"}C=z;var y=g[u].pattern.replace(a,(function(r,i,a){if(i){A=g[u].names[z-C];++z;if(A){return"(?<".concat(A,">")}}else if(a){b=+a-1;return g[u].names[b]?"\\k<".concat(g[u].names[b],">"):"\\".concat(+a+C)}return r}));return(0,p["default"])(M="".concat(h)).call(M,y,")")}if(l){A=v[B];I[++B]=++z;if(A){return"(?<".concat(A,">")}}else if(d){b=+d-1;return v[b]?"\\k<".concat(v[b],">"):"\\".concat(I[+d])}return r}));return r(w,A)}};i["default"]=h;r.exports=i.default},53938:(r,i,a)=>{"use strict";var c=a(91901);var l=a(96141);l(i,"__esModule",{value:true});i["default"]=void 0;var p=c(a(17012));var d=c(a(45492));var u=c(a(73157));
*/var d=function _default(t){var r="xregexp";var o=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;var i=t.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,o],"g",{conjunction:"or"});function deanchor(t){var r=/^(?:\(\?:\))*\^/;var o=/\$(?:\(\?:\))*$/;if(r.test(t)&&o.test(t)&&o.test(t.replace(/\\[\s\S]/g,""))){return t.replace(r,"").replace(o,"")}return t}function asXRegExp(o,i){var a=i?"x":"";return t.isRegExp(o)?o[r]&&o[r].captureNames?o:t(o.source,a):t(o,a)}function interpolate(r){return r instanceof RegExp?r:t.escape(r)}function reduceToSubpatternsObject(t,r,o){t["subpattern".concat(o)]=r;return t}function embedSubpatternAfter(t,r,o){var i=r<o.length-1;return t+(i?"{{subpattern".concat(r,"}}"):"")}t.tag=function(r){return function(o){var i,a;for(var c=arguments.length,p=new Array(c>1?c-1:0),d=1;d<c;d++){p[d-1]=arguments[d]}var A=(0,l["default"])(i=(0,u["default"])(p).call(p,interpolate)).call(i,reduceToSubpatternsObject,{});var b=(0,u["default"])(a=o.raw).call(a,embedSubpatternAfter).join("");return t.build(b,A,r)}};t.build=function(a,u,l){l=l||"";var d=(0,p["default"])(l).call(l,"x");var A=/^\(\?([\w$]+)\)/.exec(a);if(A){l=t._clipDuplicates(l+A[1])}var b={};for(var h in u){if(u.hasOwnProperty(h)){var M=asXRegExp(u[h],d);b[h]={pattern:deanchor(M.source),names:M[r].captureNames||[]}}}var g=asXRegExp(a,d);var z=0;var O;var y=0;var C=[0];var B=g[r].captureNames||[];var I=g.source.replace(i,(function(t,r,i,a,p){var u=r||i;var l;var d;var A;if(u){var h;if(!b.hasOwnProperty(u)){throw new ReferenceError("Undefined property ".concat(t))}if(r){l=B[y];C[++y]=++z;d="(?<".concat(l||u,">")}else{d="(?:"}O=z;var M=b[u].pattern.replace(o,(function(t,r,o){if(r){l=b[u].names[z-O];++z;if(l){return"(?<".concat(l,">")}}else if(o){A=+o-1;return b[u].names[A]?"\\k<".concat(b[u].names[A],">"):"\\".concat(+o+O)}return t}));return(0,c["default"])(h="".concat(d)).call(h,M,")")}if(a){l=B[y];C[++y]=++z;if(l){return"(?<".concat(l,">")}}else if(p){A=+p-1;return B[A]?"\\k<".concat(B[A],">"):"\\".concat(C[+p])}return t}));return t(I,l)}};r["default"]=d;t.exports=r.default},53938:(t,r,o)=>{var i=o(91901);var a=o(96141);a(r,"__esModule",{value:true});r["default"]=void 0;var c=i(o(17012));var p=i(o(45492));var u=i(o(73157));
/*!
* XRegExp.matchRecursive 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2009-present MIT License
*/var A=function _default(r){function row(r,i,a,c){return{name:r,value:i,start:a,end:c}}r.matchRecursive=function(i,a,c,l,A){l=l||"";A=A||{};var h=(0,u["default"])(l).call(l,"g");var b=(0,u["default"])(l).call(l,"y");var g=l.replace(/y/g,"");var M=A,y=M.escapeChar;var O=A.valueNames;var z=[];var C=0;var B=0;var I=0;var v=0;var w;var S;var R;var N;var Q;a=r(a,g);c=r(c,g);if(y){var q,x;if(y.length>1){throw new Error("Cannot use more than one escape character")}y=r.escape(y);Q=new RegExp((0,d["default"])(q=(0,d["default"])(x="(?:".concat(y,"[\\S\\s]|(?:(?!")).call(x,r.union([a,c],"",{conjunction:"or"}).source,")[^")).call(q,y,"])+)+"),l.replace(/[^imu]+/g,""))}while(true){if(y){I+=(r.exec(i,Q,I,"sticky")||[""])[0].length}R=r.exec(i,a,I);N=r.exec(i,c,I);if(R&&N){if(R.index<=N.index){N=null}else{R=null}}if(R||N){B=(R||N).index;I=B+(R||N)[0].length}else if(!C){break}if(b&&!C&&B>v){break}if(R){if(!C){w=B;S=I}++C}else if(N&&C){if(! --C){if(O){if(O[0]&&w>v){z.push(row(O[0],(0,p["default"])(i).call(i,v,w),v,w))}if(O[1]){z.push(row(O[1],(0,p["default"])(i).call(i,w,S),w,S))}if(O[2]){z.push(row(O[2],(0,p["default"])(i).call(i,S,B),S,B))}if(O[3]){z.push(row(O[3],(0,p["default"])(i).call(i,B,I),B,I))}}else{z.push((0,p["default"])(i).call(i,S,B))}v=I;if(!h){break}}}else{throw new Error("Unbalanced delimiter found in string")}if(B===I){++I}}if(h&&!b&&O&&O[0]&&i.length>v){z.push(row(O[0],(0,p["default"])(i).call(i,v),v,i.length))}return z}};i["default"]=A;r.exports=i.default},24594:(r,i,a)=>{"use strict";var c=a(91901);var l=a(96141);l(i,"__esModule",{value:true});i["default"]=void 0;var p=c(a(28187));var d=c(a(28708));var u=c(a(79285));var A=c(a(81098));var h=c(a(66300));var b=c(a(17012));var g=c(a(73157));var M=c(a(45492));var y=c(a(60167));function _createForOfIteratorHelper(r,i){var a;if(typeof A["default"]==="undefined"||(0,u["default"])(r)==null){if((0,d["default"])(r)||(a=_unsupportedIterableToArray(r))||i&&r&&typeof r.length==="number"){if(a)r=a;var c=0;var l=function F(){};return{s:l,n:function n(){if(c>=r.length)return{done:true};return{done:false,value:r[c++]}},e:function e(r){throw r},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h=true,b=false,g;return{s:function s(){a=(0,p["default"])(r)},n:function n(){var r=a.next();h=r.done;return r},e:function e(r){b=true;g=r},f:function f(){try{if(!h&&a["return"]!=null)a["return"]()}finally{if(b)throw g}}}}function _unsupportedIterableToArray(r,i){var a;if(!r)return;if(typeof r==="string")return _arrayLikeToArray(r,i);var c=(0,b["default"])(a=Object.prototype.toString.call(r)).call(a,8,-1);if(c==="Object"&&r.constructor)c=r.constructor.name;if(c==="Map"||c==="Set")return(0,h["default"])(r);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return _arrayLikeToArray(r,i)}function _arrayLikeToArray(r,i){if(i==null||i>r.length)i=r.length;for(var a=0,c=new Array(i);a<i;a++){c[a]=r[a]}return c}
*/var l=function _default(t){function row(t,r,o,i){return{name:t,value:r,start:o,end:i}}t.matchRecursive=function(r,o,i,a,l){a=a||"";l=l||{};var d=(0,u["default"])(a).call(a,"g");var A=(0,u["default"])(a).call(a,"y");var b=a.replace(/y/g,"");var h=l,M=h.escapeChar;var g=l.valueNames;var z=[];var O=0;var y=0;var C=0;var B=0;var I;var R;var S;var q;var w;o=t(o,b);i=t(i,b);if(M){var N,v;if(M.length>1){throw new Error("Cannot use more than one escape character")}M=t.escape(M);w=new RegExp((0,p["default"])(N=(0,p["default"])(v="(?:".concat(M,"[\\S\\s]|(?:(?!")).call(v,t.union([o,i],"",{conjunction:"or"}).source,")[^")).call(N,M,"])+)+"),a.replace(/[^imu]+/g,""))}while(true){if(M){C+=(t.exec(r,w,C,"sticky")||[""])[0].length}S=t.exec(r,o,C);q=t.exec(r,i,C);if(S&&q){if(S.index<=q.index){q=null}else{S=null}}if(S||q){y=(S||q).index;C=y+(S||q)[0].length}else if(!O){break}if(A&&!O&&y>B){break}if(S){if(!O){I=y;R=C}++O}else if(q&&O){if(! --O){if(g){if(g[0]&&I>B){z.push(row(g[0],(0,c["default"])(r).call(r,B,I),B,I))}if(g[1]){z.push(row(g[1],(0,c["default"])(r).call(r,I,R),I,R))}if(g[2]){z.push(row(g[2],(0,c["default"])(r).call(r,R,y),R,y))}if(g[3]){z.push(row(g[3],(0,c["default"])(r).call(r,y,C),y,C))}}else{z.push((0,c["default"])(r).call(r,R,y))}B=C;if(!d){break}}}else{throw new Error("Unbalanced delimiter found in string")}if(y===C){++C}}if(d&&!A&&g&&g[0]&&r.length>B){z.push(row(g[0],(0,c["default"])(r).call(r,B),B,r.length))}return z}};r["default"]=l;t.exports=r.default},24594:(t,r,o)=>{var i=o(91901);var a=o(96141);a(r,"__esModule",{value:true});r["default"]=void 0;var c=i(o(28187));var p=i(o(28708));var u=i(o(79285));var l=i(o(81098));var d=i(o(66300));var A=i(o(17012));var b=i(o(73157));var h=i(o(45492));var M=i(o(60167));function _createForOfIteratorHelper(t,r){var o;if(typeof l["default"]==="undefined"||(0,u["default"])(t)==null){if((0,p["default"])(t)||(o=_unsupportedIterableToArray(t))||r&&t&&typeof t.length==="number"){if(o)t=o;var i=0;var a=function F(){};return{s:a,n:function n(){if(i>=t.length)return{done:true};return{done:false,value:t[i++]}},e:function e(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var d=true,A=false,b;return{s:function s(){o=(0,c["default"])(t)},n:function n(){var t=o.next();d=t.done;return t},e:function e(t){A=true;b=t},f:function f(){try{if(!d&&o["return"]!=null)o["return"]()}finally{if(A)throw b}}}}function _unsupportedIterableToArray(t,r){var o;if(!t)return;if(typeof t==="string")return _arrayLikeToArray(t,r);var i=(0,A["default"])(o=Object.prototype.toString.call(t)).call(o,8,-1);if(i==="Object"&&t.constructor)i=t.constructor.name;if(i==="Map"||i==="Set")return(0,d["default"])(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(t,r)}function _arrayLikeToArray(t,r){if(r==null||r>t.length)r=t.length;for(var o=0,i=new Array(r);o<r;o++){i[o]=t[o]}return i}
/*!
* XRegExp Unicode Base 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2008-present MIT License
*/var O=function _default(r){var i={};var a=r._dec;var c=r._hex;var l=r._pad4;function normalize(r){return r.replace(/[- _]+/g,"").toLowerCase()}function charCode(r){var i=/^\\[xu](.+)/.exec(r);return i?a(i[1]):r.charCodeAt(r[0]==="\\"?1:0)}function invertBmp(i){var a="";var p=-1;(0,y["default"])(r).call(r,i,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,(function(r){var i=charCode(r[1]);if(i>p+1){a+="\\u".concat(l(c(p+1)));if(i>p+2){a+="-\\u".concat(l(c(i-1)))}}p=charCode(r[2]||r[1])}));if(p<65535){a+="\\u".concat(l(c(p+1)));if(p<65534){a+="-\\uFFFF"}}return a}function cacheInvertedBmp(r){var a="b!";return i[r][a]||(i[r][a]=invertBmp(i[r].bmp))}function buildAstral(r,a){var c=i[r];var l="";if(c.bmp&&!c.isBmpLast){var p;l=(0,M["default"])(p="[".concat(c.bmp,"]")).call(p,c.astral?"|":"")}if(c.astral){l+=c.astral}if(c.isBmpLast&&c.bmp){var d;l+=(0,M["default"])(d="".concat(c.astral?"|":"","[")).call(d,c.bmp,"]")}return a?"(?:(?!".concat(l,")(?:[\ud800-\udbff][\udc00-\udfff]|[\0-￿]))"):"(?:".concat(l,")")}function cacheAstral(r,a){var c=a?"a!":"a=";return i[r][c]||(i[r][c]=buildAstral(r,a))}r.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,(function(r,a,c){var l="Invalid double negation ";var p="Unknown Unicode token ";var d="Unicode token missing data ";var u="Astral mode required for Unicode token ";var A="Astral mode does not support Unicode tokens within character classes";var h=r[1]==="P"||!!r[2];var b=(0,g["default"])(c).call(c,"A");var y=normalize(r[4]||r[3]);var O=i[y];if(r[1]==="P"&&r[2]){throw new SyntaxError(l+r[0])}if(!i.hasOwnProperty(y)){throw new SyntaxError(p+r[0])}if(O.inverseOf){y=normalize(O.inverseOf);if(!i.hasOwnProperty(y)){var z;throw new ReferenceError((0,M["default"])(z="".concat(d+r[0]," -> ")).call(z,O.inverseOf))}O=i[y];h=!h}if(!(O.bmp||b)){throw new SyntaxError(u+r[0])}if(b){if(a==="class"){throw new SyntaxError(A)}return cacheAstral(y,h)}return a==="class"?h?cacheInvertedBmp(y):O.bmp:"".concat((h?"[^":"[")+O.bmp,"]")}),{scope:"all",optionalFlags:"A",leadChar:"\\"});r.addUnicodeData=function(a){var c="Unicode token requires name";var l="Unicode token has no character data ";var p=_createForOfIteratorHelper(a),d;try{for(p.s();!(d=p.n()).done;){var u=d.value;if(!u.name){throw new Error(c)}if(!(u.inverseOf||u.bmp||u.astral)){throw new Error(l+u.name)}i[normalize(u.name)]=u;if(u.alias){i[normalize(u.alias)]=u}}}catch(r){p.e(r)}finally{p.f()}r.cache.flush("patterns")};r._getUnicodeProperty=function(r){var a=normalize(r);return i[a]}};i["default"]=O;r.exports=i.default},65853:(r,i,a)=>{"use strict";var c=a(91901);var l=a(96141);l(i,"__esModule",{value:true});i["default"]=void 0;var p=c(a(38657));
*/var g=function _default(t){var r={};var o=t._dec;var i=t._hex;var a=t._pad4;function normalize(t){return t.replace(/[- _]+/g,"").toLowerCase()}function charCode(t){var r=/^\\[xu](.+)/.exec(t);return r?o(r[1]):t.charCodeAt(t[0]==="\\"?1:0)}function invertBmp(r){var o="";var c=-1;(0,M["default"])(t).call(t,r,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,(function(t){var r=charCode(t[1]);if(r>c+1){o+="\\u".concat(a(i(c+1)));if(r>c+2){o+="-\\u".concat(a(i(r-1)))}}c=charCode(t[2]||t[1])}));if(c<65535){o+="\\u".concat(a(i(c+1)));if(c<65534){o+="-\\uFFFF"}}return o}function cacheInvertedBmp(t){var o="b!";return r[t][o]||(r[t][o]=invertBmp(r[t].bmp))}function buildAstral(t,o){var i=r[t];var a="";if(i.bmp&&!i.isBmpLast){var c;a=(0,h["default"])(c="[".concat(i.bmp,"]")).call(c,i.astral?"|":"")}if(i.astral){a+=i.astral}if(i.isBmpLast&&i.bmp){var p;a+=(0,h["default"])(p="".concat(i.astral?"|":"","[")).call(p,i.bmp,"]")}return o?"(?:(?!".concat(a,")(?:[\ud800-\udbff][\udc00-\udfff]|[\0-￿]))"):"(?:".concat(a,")")}function cacheAstral(t,o){var i=o?"a!":"a=";return r[t][i]||(r[t][i]=buildAstral(t,o))}t.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,(function(t,o,i){var a="Invalid double negation ";var c="Unknown Unicode token ";var p="Unicode token missing data ";var u="Astral mode required for Unicode token ";var l="Astral mode does not support Unicode tokens within character classes";var d=t[1]==="P"||!!t[2];var A=(0,b["default"])(i).call(i,"A");var M=normalize(t[4]||t[3]);var g=r[M];if(t[1]==="P"&&t[2]){throw new SyntaxError(a+t[0])}if(!r.hasOwnProperty(M)){throw new SyntaxError(c+t[0])}if(g.inverseOf){M=normalize(g.inverseOf);if(!r.hasOwnProperty(M)){var z;throw new ReferenceError((0,h["default"])(z="".concat(p+t[0]," -> ")).call(z,g.inverseOf))}g=r[M];d=!d}if(!(g.bmp||A)){throw new SyntaxError(u+t[0])}if(A){if(o==="class"){throw new SyntaxError(l)}return cacheAstral(M,d)}return o==="class"?d?cacheInvertedBmp(M):g.bmp:"".concat((d?"[^":"[")+g.bmp,"]")}),{scope:"all",optionalFlags:"A",leadChar:"\\"});t.addUnicodeData=function(o){var i="Unicode token requires name";var a="Unicode token has no character data ";var c=_createForOfIteratorHelper(o),p;try{for(c.s();!(p=c.n()).done;){var u=p.value;if(!u.name){throw new Error(i)}if(!(u.inverseOf||u.bmp||u.astral)){throw new Error(a+u.name)}r[normalize(u.name)]=u;if(u.alias){r[normalize(u.alias)]=u}}}catch(t){c.e(t)}finally{c.f()}t.cache.flush("patterns")};t._getUnicodeProperty=function(t){var o=normalize(t);return r[o]}};r["default"]=g;t.exports=r.default},65853:(t,r,o)=>{var i=o(91901);var a=o(96141);a(r,"__esModule",{value:true});r["default"]=void 0;var c=i(o(38657));
/*!
* XRegExp Unicode Blocks 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var d=function _default(r){if(!r.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks")}r.addUnicodeData(p["default"])};i["default"]=d;r.exports=i.default},87167:(r,i,a)=>{"use strict";var c=a(91901);var l=a(96141);l(i,"__esModule",{value:true});i["default"]=void 0;var p=c(a(4219));
*/var p=function _default(t){if(!t.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks")}t.addUnicodeData(c["default"])};r["default"]=p;t.exports=r.default},87167:(t,r,o)=>{var i=o(91901);var a=o(96141);a(r,"__esModule",{value:true});r["default"]=void 0;var c=i(o(4219));
/*!
* XRegExp Unicode Categories 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var d=function _default(r){if(!r.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Categories")}r.addUnicodeData(p["default"])};i["default"]=d;r.exports=i.default},53682:(r,i,a)=>{"use strict";var c=a(91901);var l=a(96141);l(i,"__esModule",{value:true});i["default"]=void 0;var p=c(a(73862));
*/var p=function _default(t){if(!t.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Categories")}t.addUnicodeData(c["default"])};r["default"]=p;t.exports=r.default},53682:(t,r,o)=>{var i=o(91901);var a=o(96141);a(r,"__esModule",{value:true});r["default"]=void 0;var c=i(o(73862));
/*!
* XRegExp Unicode Properties 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var d=function _default(r){if(!r.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Properties")}var i=p["default"];i.push({name:"Assigned",inverseOf:"Cn"});r.addUnicodeData(i)};i["default"]=d;r.exports=i.default},57387:(r,i,a)=>{"use strict";var c=a(91901);var l=a(96141);l(i,"__esModule",{value:true});i["default"]=void 0;var p=c(a(77103));
*/var p=function _default(t){if(!t.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Properties")}var r=c["default"];r.push({name:"Assigned",inverseOf:"Cn"});t.addUnicodeData(r)};r["default"]=p;t.exports=r.default},57387:(t,r,o)=>{var i=o(91901);var a=o(96141);a(r,"__esModule",{value:true});r["default"]=void 0;var c=i(o(77103));
/*!
* XRegExp Unicode Scripts 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var d=function _default(r){if(!r.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts")}r.addUnicodeData(p["default"])};i["default"]=d;r.exports=i.default},63897:(r,i,a)=>{"use strict";var c=a(91901);var l=a(96141);l(i,"__esModule",{value:true});i["default"]=void 0;var p=c(a(1240));var d=c(a(11577));var u=c(a(53938));var A=c(a(24594));var h=c(a(65853));var b=c(a(87167));var g=c(a(53682));var M=c(a(57387));(0,d["default"])(p["default"]);(0,u["default"])(p["default"]);(0,A["default"])(p["default"]);(0,h["default"])(p["default"]);(0,b["default"])(p["default"]);(0,g["default"])(p["default"]);(0,M["default"])(p["default"]);var y=p["default"];i["default"]=y;r.exports=i.default},1240:(r,i,a)=>{"use strict";var c=a(91901);var l=a(96141);l(i,"__esModule",{value:true});i["default"]=void 0;var p=c(a(28187));var d=c(a(28708));var u=c(a(79285));var A=c(a(81098));var h=c(a(66300));var b=c(a(45492));var g=c(a(70738));var M=c(a(89756));var y=c(a(77768));var O=c(a(60167));var z=c(a(73157));var C=c(a(76115));var B=c(a(17012));var I=c(a(77764));var v=c(a(89505));function _createForOfIteratorHelper(r,i){var a;if(typeof A["default"]==="undefined"||(0,u["default"])(r)==null){if((0,d["default"])(r)||(a=_unsupportedIterableToArray(r))||i&&r&&typeof r.length==="number"){if(a)r=a;var c=0;var l=function F(){};return{s:l,n:function n(){if(c>=r.length)return{done:true};return{done:false,value:r[c++]}},e:function e(r){throw r},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h=true,b=false,g;return{s:function s(){a=(0,p["default"])(r)},n:function n(){var r=a.next();h=r.done;return r},e:function e(r){b=true;g=r},f:function f(){try{if(!h&&a["return"]!=null)a["return"]()}finally{if(b)throw g}}}}function _unsupportedIterableToArray(r,i){var a;if(!r)return;if(typeof r==="string")return _arrayLikeToArray(r,i);var c=(0,B["default"])(a=Object.prototype.toString.call(r)).call(a,8,-1);if(c==="Object"&&r.constructor)c=r.constructor.name;if(c==="Map"||c==="Set")return(0,h["default"])(r);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return _arrayLikeToArray(r,i)}function _arrayLikeToArray(r,i){if(i==null||i>r.length)i=r.length;for(var a=0,c=new Array(i);a<i;a++){c[a]=r[a]}return c}
*/var p=function _default(t){if(!t.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts")}t.addUnicodeData(c["default"])};r["default"]=p;t.exports=r.default},63897:(t,r,o)=>{var i=o(91901);var a=o(96141);a(r,"__esModule",{value:true});r["default"]=void 0;var c=i(o(1240));var p=i(o(11577));var u=i(o(53938));var l=i(o(24594));var d=i(o(65853));var A=i(o(87167));var b=i(o(53682));var h=i(o(57387));(0,p["default"])(c["default"]);(0,u["default"])(c["default"]);(0,l["default"])(c["default"]);(0,d["default"])(c["default"]);(0,A["default"])(c["default"]);(0,b["default"])(c["default"]);(0,h["default"])(c["default"]);var M=c["default"];r["default"]=M;t.exports=r.default},1240:(t,r,o)=>{var i=o(91901);var a=o(96141);a(r,"__esModule",{value:true});r["default"]=void 0;var c=i(o(28187));var p=i(o(28708));var u=i(o(79285));var l=i(o(81098));var d=i(o(66300));var A=i(o(45492));var b=i(o(70738));var h=i(o(89756));var M=i(o(77768));var g=i(o(60167));var z=i(o(73157));var O=i(o(76115));var y=i(o(17012));var C=i(o(77764));var B=i(o(89505));function _createForOfIteratorHelper(t,r){var o;if(typeof l["default"]==="undefined"||(0,u["default"])(t)==null){if((0,p["default"])(t)||(o=_unsupportedIterableToArray(t))||r&&t&&typeof t.length==="number"){if(o)t=o;var i=0;var a=function F(){};return{s:a,n:function n(){if(i>=t.length)return{done:true};return{done:false,value:t[i++]}},e:function e(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var d=true,A=false,b;return{s:function s(){o=(0,c["default"])(t)},n:function n(){var t=o.next();d=t.done;return t},e:function e(t){A=true;b=t},f:function f(){try{if(!d&&o["return"]!=null)o["return"]()}finally{if(A)throw b}}}}function _unsupportedIterableToArray(t,r){var o;if(!t)return;if(typeof t==="string")return _arrayLikeToArray(t,r);var i=(0,y["default"])(o=Object.prototype.toString.call(t)).call(o,8,-1);if(i==="Object"&&t.constructor)i=t.constructor.name;if(i==="Map"||i==="Set")return(0,d["default"])(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(t,r)}function _arrayLikeToArray(t,r){if(r==null||r>t.length)r=t.length;for(var o=0,i=new Array(r);o<r;o++){i[o]=t[o]}return i}
/*!
* XRegExp 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2007-present MIT License
*/var w="xregexp";var S={astral:false,namespacing:false};var R={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split};var N={};var Q={};var q={};var x=[];var T="default";var k="class";var _={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/};var L=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g;var D=R.exec.call(/()??/,"")[1]===undefined;var P=(0,v["default"])(/x/)!==undefined;var W={},U=W.toString;function hasNativeFlag(r){var i=true;try{new RegExp("",r);if(r==="y"){var a=function(){return"gy"}();var c=".a".replace(new RegExp("a",a),".")==="..";if(c){i=false}}}catch(r){i=false}return i}var H=hasNativeFlag("u");var j=hasNativeFlag("y");var G={g:true,i:true,m:true,u:H,y:j};function augment(r,i,a,c,l){var p;r[w]={captureNames:i};if(l){return r}if(r.__proto__){r.__proto__=XRegExp.prototype}else{for(var d in XRegExp.prototype){r[d]=XRegExp.prototype[d]}}r[w].source=a;r[w].flags=c?(0,I["default"])(p=c.split("")).call(p).join(""):c;return r}function clipDuplicates(r){return R.replace.call(r,/([\s\S])(?=[\s\S]*\1)/g,"")}function copyRegex(r,i){var a;if(!XRegExp.isRegExp(r)){throw new TypeError("Type RegExp expected")}var c=r[w]||{};var l=getNativeFlags(r);var p="";var d="";var u=null;var A=null;i=i||{};if(i.removeG){d+="g"}if(i.removeY){d+="y"}if(d){l=R.replace.call(l,new RegExp("[".concat(d,"]+"),"g"),"")}if(i.addG){p+="g"}if(i.addY){p+="y"}if(p){l=clipDuplicates(l+p)}if(!i.isInternalOnly){if(c.source!==undefined){u=c.source}if((0,v["default"])(c)!=null){A=p?clipDuplicates((0,v["default"])(c)+p):(0,v["default"])(c)}}r=augment(new RegExp(i.source||r.source,l),hasNamedCapture(r)?(0,B["default"])(a=c.captureNames).call(a,0):null,u,A,i.isInternalOnly);return r}function dec(r){return(0,C["default"])(r,16)}function getContextualTokenSeparator(r,i,a){if(r.input[r.index-1]==="("||r.input[r.index+r[0].length]===")"||r.input[r.index-1]==="|"||r.input[r.index+r[0].length]==="|"||r.index<1||r.index+r[0].length>=r.input.length||R.test.call(/^\(\?[:=!]/,r.input.substr(r.index-3,3))||isQuantifierNext(r.input,r.index+r[0].length,a)){return""}return"(?:)"}function getNativeFlags(r){return P?(0,v["default"])(r):R.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(r))[1]}function hasNamedCapture(r){return!!(r[w]&&r[w].captureNames)}function hex(r){return(0,C["default"])(r,10).toString(16)}function isQuantifierNext(r,i,a){var c="\\(\\?#[^)]*\\)";var l="#[^#\\n]*";var p="[?*+]|{\\d+(?:,\\d*)?}";return R.test.call((0,z["default"])(a).call(a,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,B["default"])(r).call(r,i))}function isType(r,i){return U.call(r)==="[object ".concat(i,"]")}function pad4(r){while(r.length<4){r="0".concat(r)}return r}function prepareFlags(r,i){if(clipDuplicates(i)!==i){throw new SyntaxError("Invalid duplicate regex flag ".concat(i))}r=R.replace.call(r,/^\(\?([\w$]+)\)/,(function(r,a){if(R.test.call(/[gy]/,a)){throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(r))}i=clipDuplicates(i+a);return""}));var a=_createForOfIteratorHelper(i),c;try{for(a.s();!(c=a.n()).done;){var l=c.value;if(!G[l]){throw new SyntaxError("Unknown regex flag ".concat(l))}}}catch(r){a.e(r)}finally{a.f()}return{pattern:r,flags:i}}function prepareOptions(r){var i={};if(isType(r,"String")){(0,O["default"])(XRegExp).call(XRegExp,r,/[^\s,]+/,(function(r){i[r]=true}));return i}return r}function registerFlag(r){if(!/^[\w$]$/.test(r)){throw new Error("Flag must be a single character A-Za-z0-9_$")}G[r]=true}function runTokens(r,i,a,c,l){var p=x.length;var d=r[a];var u=null;var A;var h;while(p--){h=x[p];if(h.leadChar&&h.leadChar!==d||h.scope!==c&&h.scope!=="all"||h.flag&&!(0,z["default"])(i).call(i,h.flag)){continue}A=XRegExp.exec(r,h.regex,a,"sticky");if(A){u={matchLength:A[0].length,output:h.handler.call(l,A,c,i),reparse:h.reparse};break}}return u}function setAstral(r){S.astral=r}function setNamespacing(r){S.namespacing=r}function toObject(r){if(r==null){throw new TypeError("Cannot convert null or undefined to object")}return r}function XRegExp(r,i){if(XRegExp.isRegExp(r)){if(i!==undefined){throw new TypeError("Cannot supply flags when copying a RegExp")}return copyRegex(r)}r=r===undefined?"":String(r);i=i===undefined?"":String(i);if(XRegExp.isInstalled("astral")&&!(0,z["default"])(i).call(i,"A")){i+="A"}if(!q[r]){q[r]={}}if(!q[r][i]){var a={hasNamedCapture:false,captureNames:[]};var c=T;var l="";var p=0;var d;var u=prepareFlags(r,i);var A=u.pattern;var h=(0,v["default"])(u);while(p<A.length){do{d=runTokens(A,h,p,c,a);if(d&&d.reparse){A=(0,B["default"])(A).call(A,0,p)+d.output+(0,B["default"])(A).call(A,p+d.matchLength)}}while(d&&d.reparsLine truncated
/**
* ZipStream
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
* @copyright (c) 2014 Chris Talkington, contributors.
*/
var c=a(39023).inherits;var l=a(47544).ZipArchiveOutputStream;var p=a(47544).ZipArchiveEntry;var d=a(53296);var u=r.exports=function(r){if(!(this instanceof u)){return new u(r)}r=this.options=r||{};r.zlib=r.zlib||{};l.call(this,r);if(typeof r.level==="number"&&r.level>=0){r.zlib.level=r.level;delete r.level}if(!r.forceZip64&&typeof r.zlib.level==="number"&&r.zlib.level===0){r.store=true}r.namePrependSlash=r.namePrependSlash||false;if(r.comment&&r.comment.length>0){this.setComment(r.comment)}};c(u,l);u.prototype._normalizeFileData=function(r){r=d.defaults(r,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var i=r.type==="directory";var a=r.type==="symlink";if(r.name){r.name=d.sanitizePath(r.name);if(!a&&r.name.slice(-1)==="/"){i=true;r.type="directory"}else if(i){r.name+="/"}}if(i||a){r.store=true}r.date=d.dateify(r.date);return r};u.prototype.entry=function(r,i,a){if(typeof a!=="function"){a=this._emitErrorCallback.bind(this)}i=this._normalizeFileData(i);if(i.type!=="file"&&i.type!=="directory"&&i.type!=="symlink"){a(new Error(i.type+" entries not currently supported"));return}if(typeof i.name!=="string"||i.name.length===0){a(new Error("entry name must be a non-empty string value"));return}if(i.type==="symlink"&&typeof i.linkname!=="string"){a(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var c=new p(i.name);c.setTime(i.date,this.options.forceLocalTime);if(i.namePrependSlash){c.setName(i.name,true)}if(i.store){c.setMethod(0)}if(i.comment.length>0){c.setComment(i.comment)}if(i.type==="symlink"&&typeof i.mode!=="number"){i.mode=40960}if(typeof i.mode==="number"){if(i.type==="symlink"){i.mode|=40960}c.setUnixMode(i.mode)}if(i.type==="symlink"&&typeof i.linkname==="string"){r=Buffer.from(i.linkname)}return l.prototype.entry.call(this,c,r,a)};u.prototype.finalize=function(){this.finish()}},40788:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var l=Object.getOwnPropertyDescriptor(i,a);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,l)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var p=this&&this.__importStar||function(){var ownKeys=function(r){ownKeys=Object.getOwnPropertyNames||function(r){var i=[];for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a))i[i.length]=a;return i};return ownKeys(r)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=ownKeys(r),p=0;p<a.length;p++)if(a[p]!=="default")c(i,r,a[p]);l(i,r);return i}}();var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(c.next(r))}catch(r){l(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.ContextSource=void 0;i.getInputs=getInputs;i.getContext=getContext;const u=p(a(37484));const A=a(23651);const h=a(21407);const b=a(36060);function getInputs(){return{context:u.getInput("context")||g.workflow,images:A.Util.getInputList("images",{ignoreComma:true,comment:"#"}),tags:A.Util.getInputList("tags",{ignoreComma:true,comment:"#"}),flavor:A.Util.getInputList("flavor",{ignoreComma:true,comment:"#"}),labels:A.Util.getInputList("labels",{ignoreComma:true,comment:"#"}),annotations:A.Util.getInputList("annotations",{ignoreComma:true,comment:"#"}),sepTags:u.getInput("sep-tags",{trimWhitespace:false})||`\n`,sepLabels:u.getInput("sep-labels",{trimWhitespace:false})||`\n`,sepAnnotations:u.getInput("sep-annotations",{trimWhitespace:false})||`\n`,bakeTarget:u.getInput("bake-target")||`docker-metadata-action`,githubToken:u.getInput("github-token")}}var g;(function(r){r["workflow"]="workflow";r["git"]="git"})(g||(i.ContextSource=g={}));function getContext(r,i){return d(this,void 0,void 0,(function*(){switch(r){case g.workflow:return yield getContextFromWorkflow(i);case g.git:return yield getContextFromGit();default:throw new Error(`Invalid context source: ${r}`)}}))}function getContextFromWorkflow(r){return d(this,void 0,void 0,(function*(){var i,a,c;const l=b.GitHub.context;if(/pull_request_target/.test(l.eventName)){l.ref=`refs/pull/${l.payload.number}/merge`}if(/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA||"")){if((/pull_request/.test(l.eventName)||/pull_request_target/.test(l.eventName))&&((c=(a=(i=l.payload)===null||i===void 0?void 0:i.pull_request)===null||a===void 0?void 0:a.head)===null||c===void 0?void 0:c.sha)!=undefined){l.sha=l.payload.pull_request.head.sha}}reLine truncated
*/var I="xregexp";var R={astral:false,namespacing:false};var S={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split};var q={};var w={};var N={};var v=[];var T="default";var W="class";var L={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/};var _=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g;var x=S.exec.call(/()??/,"")[1]===undefined;var k=(0,B["default"])(/x/)!==undefined;var Q={},D=Q.toString;function hasNativeFlag(t){var r=true;try{new RegExp("",t);if(t==="y"){var o=function(){return"gy"}();var i=".a".replace(new RegExp("a",o),".")==="..";if(i){r=false}}}catch(t){r=false}return r}var P=hasNativeFlag("u");var U=hasNativeFlag("y");var H={g:true,i:true,m:true,u:P,y:U};function augment(t,r,o,i,a){var c;t[I]={captureNames:r};if(a){return t}if(t.__proto__){t.__proto__=XRegExp.prototype}else{for(var p in XRegExp.prototype){t[p]=XRegExp.prototype[p]}}t[I].source=o;t[I].flags=i?(0,C["default"])(c=i.split("")).call(c).join(""):i;return t}function clipDuplicates(t){return S.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}function copyRegex(t,r){var o;if(!XRegExp.isRegExp(t)){throw new TypeError("Type RegExp expected")}var i=t[I]||{};var a=getNativeFlags(t);var c="";var p="";var u=null;var l=null;r=r||{};if(r.removeG){p+="g"}if(r.removeY){p+="y"}if(p){a=S.replace.call(a,new RegExp("[".concat(p,"]+"),"g"),"")}if(r.addG){c+="g"}if(r.addY){c+="y"}if(c){a=clipDuplicates(a+c)}if(!r.isInternalOnly){if(i.source!==undefined){u=i.source}if((0,B["default"])(i)!=null){l=c?clipDuplicates((0,B["default"])(i)+c):(0,B["default"])(i)}}t=augment(new RegExp(r.source||t.source,a),hasNamedCapture(t)?(0,y["default"])(o=i.captureNames).call(o,0):null,u,l,r.isInternalOnly);return t}function dec(t){return(0,O["default"])(t,16)}function getContextualTokenSeparator(t,r,o){if(t.input[t.index-1]==="("||t.input[t.index+t[0].length]===")"||t.input[t.index-1]==="|"||t.input[t.index+t[0].length]==="|"||t.index<1||t.index+t[0].length>=t.input.length||S.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||isQuantifierNext(t.input,t.index+t[0].length,o)){return""}return"(?:)"}function getNativeFlags(t){return k?(0,B["default"])(t):S.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}function hasNamedCapture(t){return!!(t[I]&&t[I].captureNames)}function hex(t){return(0,O["default"])(t,10).toString(16)}function isQuantifierNext(t,r,o){var i="\\(\\?#[^)]*\\)";var a="#[^#\\n]*";var c="[?*+]|{\\d+(?:,\\d*)?}";return S.test.call((0,z["default"])(o).call(o,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,y["default"])(t).call(t,r))}function isType(t,r){return D.call(t)==="[object ".concat(r,"]")}function pad4(t){while(t.length<4){t="0".concat(t)}return t}function prepareFlags(t,r){if(clipDuplicates(r)!==r){throw new SyntaxError("Invalid duplicate regex flag ".concat(r))}t=S.replace.call(t,/^\(\?([\w$]+)\)/,(function(t,o){if(S.test.call(/[gy]/,o)){throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(t))}r=clipDuplicates(r+o);return""}));var o=_createForOfIteratorHelper(r),i;try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!H[a]){throw new SyntaxError("Unknown regex flag ".concat(a))}}}catch(t){o.e(t)}finally{o.f()}return{pattern:t,flags:r}}function prepareOptions(t){var r={};if(isType(t,"String")){(0,g["default"])(XRegExp).call(XRegExp,t,/[^\s,]+/,(function(t){r[t]=true}));return r}return t}function registerFlag(t){if(!/^[\w$]$/.test(t)){throw new Error("Flag must be a single character A-Za-z0-9_$")}H[t]=true}function runTokens(t,r,o,i,a){var c=v.length;var p=t[o];var u=null;var l;var d;while(c--){d=v[c];if(d.leadChar&&d.leadChar!==p||d.scope!==i&&d.scope!=="all"||d.flag&&!(0,z["default"])(r).call(r,d.flag)){continue}l=XRegExp.exec(t,d.regex,o,"sticky");if(l){u={matchLength:l[0].length,output:d.handler.call(a,l,i,r),reparse:d.reparse};break}}return u}function setAstral(t){R.astral=t}function setNamespacing(t){R.namespacing=t}function toObject(t){if(t==null){throw new TypeError("Cannot convert null or undefined to object")}return t}function XRegExp(t,r){if(XRegExp.isRegExp(t)){if(r!==undefined){throw new TypeError("Cannot supply flags when copying a RegExp")}return copyRegex(t)}t=t===undefined?"":String(t);r=r===undefined?"":String(r);if(XRegExp.isInstalled("astral")&&!(0,z["default"])(r).call(r,"A")){r+="A"}if(!N[t]){N[t]={}}if(!N[t][r]){var o={hasNamedCapture:false,captureNames:[]};var i=T;var a="";var c=0;var p;var u=prepareFlags(t,r);var l=u.pattern;var d=(0,B["default"])(u);while(c<l.length){do{p=runTokens(l,d,c,i,o);if(p&&p.reparse){l=(0,y["default"])(l).call(l,0,c)+p.output+(0,y["default"])(l).call(l,c+p.matchLength)}}while(p&&p.reparsLine truncated
/* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist */if("response"in o){this.response=o.response}const i=Object.assign({},o.request);if(o.request.headers.authorization){i.headers=Object.assign({},o.request.headers,{authorization:o.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})}i.url=i.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=i}}var bf="10.0.8";var hf={headers:{"user-agent":`octokit-request.js/${bf} ${getUserAgent()}`}};function dist_bundle_isPlainObject(t){if(typeof t!=="object"||t===null)return false;if(Object.prototype.toString.call(t)!=="[object Object]")return false;const r=Object.getPrototypeOf(t);if(r===null)return true;const o=Object.prototype.hasOwnProperty.call(r,"constructor")&&r.constructor;return typeof o==="function"&&o instanceof o&&Function.prototype.call(o)===Function.prototype.call(t)}var noop=()=>"";async function fetchWrapper(t){const r=t.request?.fetch||globalThis.fetch;if(!r){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const o=t.request?.log||console;const i=t.request?.parseSuccessResponseBody!==false;const a=dist_bundle_isPlainObject(t.body)||Array.isArray(t.body)?JSONStringify(t.body):t.body;const c=Object.fromEntries(Object.entries(t.headers).map((([t,r])=>[t,String(r)])));let p;try{p=await r(t.url,{method:t.method,body:a,redirect:t.request?.redirect,headers:c,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(r){let o="Unknown Error";if(r instanceof Error){if(r.name==="AbortError"){r.status=500;throw r}o=r.message;if(r.name==="TypeError"&&"cause"in r){if(r.cause instanceof Error){o=r.cause.message}else if(typeof r.cause==="string"){o=r.cause}}}const i=new RequestError(o,500,{request:t});i.cause=r;throw i}const u=p.status;const l=p.url;const d={};for(const[t,r]of p.headers){d[t]=r}const A={url:l,status:u,headers:d,data:""};if("deprecation"in d){const r=d.link&&d.link.match(/<([^<>]+)>; rel="deprecation"/);const i=r&&r.pop();o.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${d.sunset}${i?`. See ${i}`:""}`)}if(u===204||u===205){return A}if(t.method==="HEAD"){if(u<400){return A}throw new RequestError(p.statusText,u,{response:A,request:t})}if(u===304){A.data=await getResponseData(p);throw new RequestError("Not modified",u,{response:A,request:t})}if(u>=400){A.data=await getResponseData(p);throw new RequestError(toErrorMessage(A.data),u,{response:A,request:t})}A.data=i?await getResponseData(p):p.body;return A}async function getResponseData(t){const r=t.headers.get("content-type");if(!r){return t.text().catch(noop)}const o=(0,rf.xL)(r);if(isJSONResponse(o)){let r="";try{r=await t.text();return JSONParse(r)}catch(t){return r}}else if(o.type.startsWith("text/")||o.parameters.charset?.toLowerCase()==="utf-8"){return t.text().catch(noop)}else{return t.arrayBuffer().catch((
/* v8 ignore next -- @preserve */
()=>new ArrayBuffer(0)))}}function isJSONResponse(t){return t.type==="application/json"||t.type==="application/scim+json"}function toErrorMessage(t){if(typeof t==="string"){return t}if(t instanceof ArrayBuffer){return"Unknown error"}if("message"in t){const r="documentation_url"in t?` - ${t.documentation_url}`:"";return Array.isArray(t.errors)?`${t.message}: ${t.errors.map((t=>JSON.stringify(t))).join(", ")}${r}`:`${t.message}${r}`}return`Unknown error: ${JSON.stringify(t)}`}function dist_bundle_withDefaults(t,r){const o=t.defaults(r);const newApi=function(t,r){const i=o.merge(t,r);if(!i.request||!i.request.hook){return fetchWrapper(o.parse(i))}const request2=(t,r)=>fetchWrapper(o.parse(o.merge(t,r)));Object.assign(request2,{endpoint:o,defaults:dist_bundle_withDefaults.bind(null,o)});return i.request.hook(request2,i)};return Object.assign(newApi,{endpoint:o,defaults:dist_bundle_withDefaults.bind(null,o)})}var Mf=dist_bundle_withDefaults(tf,hf);
/* v8 ignore next -- @preserve */
/* v8 ignore else -- @preserve */var mf="0.0.0-development";function _buildMessageForResponseErrors(t){return`Request failed due to following response errors:\n`+t.errors.map((t=>` - ${t.message}`)).join("\n")}var gf=class extends Error{constructor(t,r,o){super(_buildMessageForResponseErrors(o));this.request=t;this.headers=r;this.response=o;this.errors=o.errors;this.data=o.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var zf=["method","baseUrl","url","headers","request","query","mediaType","operationName"];var Of=["query","method","url"];var yf=/\/api\/v3\/?$/;function graphql(t,r,o){if(o){if(typeof r==="string"&&"query"in o){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const t in o){if(!Of.includes(t))continue;return Promise.reject(new Error(`[@octokit/graphql] "${t}" cannot be used as variable name`))}}const i=typeof r==="string"?Object.assign({query:r},o):r;const a=Object.keys(i).reduce(((t,r)=>{if(zf.includes(r)){t[r]=i[r];return t}if(!t.variables){t.variables={}}t.variables[r]=i[r];return t}),{});const c=i.baseUrl||t.endpoint.DEFAULTS.baseUrl;if(yf.test(c)){a.url=c.replace(yf,"/api/graphql")}return t(a).then((t=>{if(t.data.errors){const r={};for(const o of Object.keys(t.headers)){r[o]=t.headers[o]}throw new gf(a,r,t.data)}return t.data.data}))}function graphql_dist_bundle_withDefaults(t,r){const o=t.defaults(r);const newApi=(t,r)=>graphql(o,t,r);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,o),endpoint:o.endpoint})}var Ef=graphql_dist_bundle_withDefaults(Mf,{headers:{"user-agent":`octokit-graphql.js/${mf} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(t){return graphql_dist_bundle_withDefaults(t,{method:"POST",url:"/graphql"})}var Cf="(?:[a-zA-Z0-9_-]+)";var Bf="\\.";var If=new RegExp(`^${Cf}${Bf}${Cf}${Bf}${Cf}$`);var Rf=If.test.bind(If);async function auth(t){const r=Rf(t);const o=t.startsWith("v1.")||t.startsWith("ghs_");const i=t.startsWith("ghu_");const a=r?"app":o?"installation":i?"user-to-server":"oauth";return{type:"token",token:t,tokenType:a}}function withAuthorizationPrefix(t){if(t.split(/\./).length===3){return`bearer ${t}`}return`token ${t}`}async function hook(t,r,o,i){const a=r.endpoint.merge(o,i);a.headers.authorization=withAuthorizationPrefix(t);return r(a)}var Sf=function createTokenAuth2(t){if(!t){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof t!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}t=t.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,t),{hook:hook.bind(null,t)})};const qf="7.0.6";const dist_src_noop=()=>{};const wf=console.warn.bind(console);const Nf=console.error.bind(console);function createLogger(t={}){if(typeof t.debug!=="function"){t.debug=dist_src_noop}if(typeof t.info!=="function"){t.info=dist_src_noop}if(typeof t.warn!=="function"){t.warn=wf}if(typeof t.error!=="function"){t.error=Nf}return t}const vf=`octokit-core.js/${qf} ${getUserAgent()}`;class Octokit{static VERSION=qf;static defaults(t){const r=class extends(this){constructor(...r){const o=r[0]||{};if(typeof t==="function"){super(t(o));return}super(Object.assign({},t,o,o.userAgent&&t.userAgent?{userAgent:`${o.userAgent} ${t.userAgent}`}:null))}};return r}static plugins=[];static plugin(...t){const r=this.plugins;const o=class extends(this){static plugins=r.concat(t.filter((t=>!r.includes(t))))};return o}constructor(t={}){const r=new JA.Collection;const o={baseUrl:Mf.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},t.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};o.headers["user-agent"]=t.userAgent?`${t.userAgent} ${vf}`:vf;if(t.baseUrl){o.baseUrl=t.baseUrl}if(t.previews){o.mediaType.previews=t.previews}if(t.timeZone){o.headers["time-zone"]=t.timeZone}this.request=Mf.defaults(o);this.graphql=withCustomRequest(this.request).defaults(o);this.log=createLogger(t.log);this.hook=r;if(!t.authStrategy){if(!t.auth){this.auth=async()=>({type:"unauthenticated"})}else{const o=Sf(t.auth);r.wrap("request",o.hook);this.auth=o}}else{const{authStrategy:o,...i}=t;const a=o(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:i},t.auth));r.wrap("request",a.hook);this.auth=a}const i=this.constructor;for(let r=0;r<i.plugins.length;++r){Object.assign(this,i.plugins[r](this,t))}}request;graphql;log;hook;auth}const Tf="17.0.0";const Wf={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/{repositoLine truncated
//# sourceMappingURL=index.js.map
Generated Vendored
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":"index.js","names":["__createBinding","this","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__exportStar","exports","p","prototype","hasOwnProperty","call","value","client_1","__webpack_require__","client","DefaultArtifactClient","Timestamp","runtime_1","runtime_2","runtime_3","runtime_4","runtime_5","runtime_6","runtime_7","Timestamp$Type","MessageType","constructor","super","no","name","kind","T","now","msg","ms","Date","seconds","PbLong","from","Math","floor","toString","nanos","toDate","message","toNumber","ceil","fromDate","date","getTime","internalJsonWrite","options","parse","Error","z","nanosStr","substring","toISOString","replace","internalJsonRead","json","target","typeofJsonValue","matches","match","Number","isNaN","globalThis","parseInt","repeat","length","MESSAGE_TYPE","reflectionMergePartial","internalBinaryRead","reader","end","pos","fieldNo","wireType","tag","int64","int32","u","readUnknownField","typeName","d","skip","UnknownFieldHandler","onRead","internalBinaryWrite","writer","WireType","Varint","writeUnknownFields","onWrite","BytesValue","StringValue","BoolValue","UInt32Value","Int32Value","UInt64Value","Int64Value","FloatValue","DoubleValue","DoubleValue$Type","refJsonWriter","scalar","refJsonReader","double","Bit64","FloatValue$Type","float","Bit32","Int64Value$Type","ScalarType","INT64","LongType","STRING","UInt64Value$Type","UINT64","uint64","Int32Value$Type","UInt32Value$Type","uint32","BoolValue$Type","bool","StringValue$Type","string","LengthDelimited","BytesValue$Type","Uint8Array","bytes","ArtifactService","DeleteArtifactResponse","DeleteArtifactRequest","GetSignedArtifactURLResponse","GetSignedArtifactURLRequest","ListArtifactsResponse_MonolithArtifact","ListArtifactsResponse","ListArtifactsRequest","FinalizeArtifactResponse","FinalizeArtifactRequest","CreateArtifactResponse","CreateArtifactRequest","FinalizeMigratedArtifactResponse","FinalizeMigratedArtifactRequest","MigrateArtifactResponse","MigrateArtifactRequest","runtime_rpc_1","wrappers_1","wrappers_2","timestamp_1","MigrateArtifactRequest$Type","workflowRunBackendId","expiresAt","fork","join","MigrateArtifactResponse$Type","ok","signedUploadUrl","FinalizeMigratedArtifactRequest$Type","size","FinalizeMigratedArtifactResponse$Type","artifactId","CreateArtifactRequest$Type","workflowJobRunBackendId","version","CreateArtifactResponse$Type","FinalizeArtifactRequest$Type","hash","FinalizeArtifactResponse$Type","ListArtifactsRequest$Type","nameFilter","idFilter","ListArtifactsResponse$Type","artifacts","push","i","ListArtifactsResponse_MonolithArtifact$Type","databaseId","createdAt","digest","GetSignedArtifactURLRequest$Type","GetSignedArtifactURLResponse$Type","signedUrl","DeleteArtifactRequest$Type","DeleteArtifactResponse$Type","ServiceType","I","O","ArtifactServiceClientProtobuf","ArtifactServiceClientJSON","artifact_1","rpc","CreateArtifact","bind","FinalizeArtifact","ListArtifacts","GetSignedArtifactURL","DeleteArtifact","request","data","toJson","useProtoFieldName","emitDefaultValues","promise","then","fromJson","ignoreUnknownFields","toBinary","fromBinary","__awaiter","thisArg","_arguments","P","generator","adopt","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","apply","__rest","s","t","indexOf","getOwnPropertySymbols","propertyIsEnumerable","core_1","config_1","upload_artifact_1","download_artifact_1","delete_artifact_1","get_artifact_1","list_artifacts_1","errors_1","uploadArtifact","files","rootDirectory","isGhes","GHESNotSupportedError","error","warning","downloadArtifact","findBy","repositoryOwner","repositoryName","token","downloadOptions","downloadArtifactPublic","downloadArtifactInternal","listArtifacts","workflowRunId","listArtifactsPublic","latest","listArtifactsInternal","getArtifact","artifactName","getArtifactPublic","getArtifactInternal","deleteArtifact","deleteArtifactPublic","deleteArtifactInternal","github_1","user_agent_1","retry_options_1","utils_1","plugin_request_log_1","plugin_retry_1","artifact_twirp_client_1","util_1","generated_1","_a","retryOpts","requestOpts","getRetryOptions","defaults","opts","log","userAgent","getUserAgentString","previews","retry","github","getOctokit","requestLog","getArtifactResp","deleteArtifactResp","rest","actions","owner","repo","artifact_id","artifact","id","status","InvalidResponseError","headers","artifactClient","internalArtifactTwirpClient","getBackendIdsFromToken","listReq","listRes","ArtifactNotFoundError","sort","a","b","debug","req","res","info","__setModuleDefault","v","__importStar","ownKeys","getOwnPropertyNames","ar","mod","__importDefault","default","streamExtractExternal","promises_1","crypto","stream","core","httpClient","unzip_stream_1","scrubQueryParameters","url","parsed","URL","search","exists","path","access","code","streamExtract","directory","retryCount","setTimeout","url_1","diLine truncated
{"version":3,"file":"index.js","names":["__awaiter","this","thisArg","_arguments","P","generator","adopt","value","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","then","apply","Object","defineProperty","exports","ClientStreamingCall","constructor","method","requestHeaders","request","headers","response","status","trailers","requests","onfulfilled","onrejected","promiseFinished","reason","all","Deferred","DeferredState","preventUnhandledRejectionWarning","_state","PENDING","_promise","_resolve","_reject","catch","_","state","promise","Error","toLowerCase","RESOLVED","REJECTED","resolvePending","val","rejectPending","DuplexStreamingCall","responses","__webpack_unused_export__","service_type_1","__webpack_require__","enumerable","get","ServiceType","reflection_info_1","readMethodOptions","readMethodOption","readServiceOption","rpc_error_1","RpcError","rpc_options_1","mergeRpcOptions","rpc_output_stream_1","RpcOutputStreamController","test_transport_1","TestTransport","deferred_1","duplex_streaming_call_1","client_streaming_call_1","server_streaming_call_1","ServerStreamingCall","unary_call_1","UnaryCall","rpc_interceptor_1","stackIntercept","stackDuplexStreamingInterceptors","stackClientStreamingInterceptors","stackServerStreamingInterceptors","stackUnaryInterceptors","server_call_context_1","ServerCallContextController","normalizeMethodInfo","runtime_1","service","_a","_b","_c","m","localName","lowerCamelCase","name","serverStreaming","clientStreaming","options","idempotency","undefined","methodName","extensionName","extensionType","methods","find","i","fromJson","optionVal","message","code","meta","super","setPrototypeOf","prototype","toString","l","push","serviceName","entries","length","k","v","join","kind","transport","input","_d","tail","mtd","inp","opt","unary","curr","interceptors","filter","interceptUnary","reverse","interceptServerStreaming","interceptClientStreaming","duplex","interceptDuplex","assertNever","defaults","o","copy","key","keys","jsonOptions","mergeJsonOptions","binaryOptions","mergeBinaryOptions","concat","a","into","c","Date","getTime","Array","isArray","_lis","nxt","msg","err","cmp","_closed","_itState","q","onNext","callback","addLis","onMessage","onError","onComplete","list","indexOf","splice","clearLis","values","closed","notifyNext","error","complete","assert","notifyMessage","notifyError","notifyComplete","pushIt","forEach","Symbol","asyncIterator","p","first","shift","deadline","sendResponseHeadersFn","defaultStatus","detail","_cancelled","_listeners","_sendRH","notifyCancelled","sendResponseHeaders","data","cancelled","onCancel","typeName","map","suppressUncaughtRejections","headerDelay","responseDelay","betweenResponseDelay","afterResponseDelay","sentMessages","lastInput","TestInputStream","sent","single","sendComplete","completed","promiseHeaders","defaultHeaders","promiseSingleResponse","r","O","create","is","streamResponses","stream","abort","messages","delay","promiseStatus","promiseTrailers","defaultTrailers","maybeSuppressUncaught","mergeOptions","headersPromise","responsePromise","statusPromise","trailersPromise","outputStream","responseStreamClosedPromise","responseHeader","responseTrailer","ms","aborted","id","setTimeout","addEventListener","ev","clearTimeout","_completed","_sent","send","inputMessage","delayMs","inputComplete","assertFloat32","assertUInt32","assertInt32","condition","FLOAT32_MAX","FLOAT32_MIN","UINT32_MAX","INT32_MAX","INT32_MIN","arg","Number","isInteger","isFinite","base64encode","base64decode","encTable","split","decTable","charCodeAt","base64Str","es","bytes","Uint8Array","bytePos","groupPos","b","subarray","base64","WireType","UnknownFieldHandler","symbol","for","onRead","fieldNo","wireType","container","no","onWrite","writer","tag","raw","uf","last","slice","assign","BinaryReader","binaryReadOptions","binary_format_contract_1","pb_long_1","goog_varint_1","defaultsRead","readUnknownField","readerFactory","buf","textDecoder","varint64","varint64read","uint32","varint32read","len","pos","view","DataView","buffer","byteOffset","byteLength","TextDecoder","fatal","ignoreBOM","skip","start","Varint","Bit64","Bit32","LengthDelimited","StartGroup","t","EndGroup","assertBounds","RangeError","int32","sint32","zze","int64","PbLong","uint64","PbULong","sint64","lo","hi","s","bool","fixed32","getUint32","sfixed32","getInt32","fixed64","sfixed64","float","getFloat32","double","getFloat64","string","decode","BinaryWriter","binaryWriteOptions","assert_1","defaultsWrite","writeUnknownFields","writerFactory","textEncoder","stack","TextEncoder","chunks","finish","offset","set","fork","chunk","prev","pop","type","varint32write","encode","setFloat32","setFloat64","setUint32","setInt32","long","from","varint64write","sign","listEnumNumbers","listEnumNames","listEnumValues","isEnumObject","hasOwnProperty","num","parseInt","isNaN","nam","enumObject","number","index","arr","int64toString","int64fromString","lowBits","highBits","mLine truncated
Generated Vendored
+3
View File
@@ -0,0 +1,3 @@
{
"type": "module"
}
View File
File renamed without changes.
+52
View File
@@ -0,0 +1,52 @@
import {defineConfig} from 'eslint/config';
import js from '@eslint/js';
import tseslint from '@typescript-eslint/eslint-plugin';
import vitest from '@vitest/eslint-plugin';
import globals from 'globals';
import eslintConfigPrettier from 'eslint-config-prettier/flat';
import eslintPluginPrettier from 'eslint-plugin-prettier';
export default defineConfig([
{
ignores: ['.yarn/**/*', 'coverage/**/*', 'dist/**/*']
},
js.configs.recommended,
...tseslint.configs['flat/recommended'],
eslintConfigPrettier,
{
languageOptions: {
globals: {
...globals.node
}
}
},
{
files: ['__tests__/**'],
...vitest.configs.recommended,
languageOptions: {
globals: {
...globals.node,
...vitest.environments.env.globals
}
},
rules: {
...vitest.configs.recommended.rules,
'vitest/no-conditional-expect': 'error',
'vitest/no-disabled-tests': 0
}
},
{
plugins: {
prettier: eslintPluginPrettier
},
rules: {
'prettier/prettier': 'error',
'@typescript-eslint/no-require-imports': [
'error',
{
allowAsImport: true
}
]
}
}
]);
-31
View File
@@ -1,31 +0,0 @@
import fs from 'fs';
import os from 'os';
import path from 'path';
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-metadata-action-'));
process.env = Object.assign({}, process.env, {
TEMP: tmpDir,
GITHUB_REPOSITORY: 'docker/metadata-action',
RUNNER_TEMP: path.join(tmpDir, 'runner-temp'),
RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache')
}) as {
[key: string]: string;
};
module.exports = {
clearMocks: true,
testEnvironment: 'node',
moduleFileExtensions: ['js', 'ts'],
setupFiles: ['dotenv/config'],
testMatch: ['**/*.test.ts'],
transform: {
'^.+\\.ts$': 'ts-jest'
},
moduleNameMapper: {
'^csv-parse/sync': '<rootDir>/node_modules/csv-parse/dist/cjs/sync.cjs'
},
collectCoverageFrom: ['src/**/{!(main.ts),}.ts'],
coveragePathIgnorePatterns: ['lib/', 'node_modules/', '__mocks__/', '__tests__/'],
verbose: true
};
+23 -25
View File
@@ -1,16 +1,13 @@
{
"name": "docker-metadata-action",
"description": "GitHub Action to extract metadata (tags, labels) for Docker",
"type": "module",
"main": "src/main.ts",
"scripts": {
"build": "ncc build --source-map --minify --license licenses.txt",
"lint": "yarn run prettier && yarn run eslint",
"format": "yarn run prettier:fix && yarn run eslint:fix",
"eslint": "eslint --max-warnings=0 .",
"eslint:fix": "eslint --fix .",
"prettier": "prettier --check \"./**/*.ts\"",
"prettier:fix": "prettier --write \"./**/*.ts\"",
"test": "jest"
"lint": "eslint --max-warnings=0 .",
"format": "eslint --fix .",
"test": "vitest run"
},
"repository": {
"type": "git",
@@ -27,31 +24,32 @@
"license": "Apache-2.0",
"packageManager": "yarn@4.9.2",
"dependencies": {
"@actions/core": "^1.11.1",
"@actions/github": "^6.0.1",
"@docker/actions-toolkit": "^0.68.0",
"@actions/core": "^3.0.0",
"@actions/github": "^9.0.0",
"@docker/actions-toolkit": "^0.79.0",
"@renovate/pep440": "^1.0.0",
"csv-parse": "^6.1.0",
"handlebars": "^4.7.8",
"moment": "^2.30.1",
"moment-timezone": "^0.6.0",
"semver": "^7.7.3"
"semver": "^7.7.4"
},
"devDependencies": {
"@types/node": "^20.19.9",
"@eslint/js": "^9.39.3",
"@types/node": "^24.11.0",
"@types/semver": "^7.7.1",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vercel/ncc": "^0.38.3",
"dotenv": "^16.6.1",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.2",
"eslint-plugin-jest": "^28.14.0",
"eslint-plugin-prettier": "^5.5.4",
"jest": "^29.7.0",
"prettier": "^3.6.2",
"ts-jest": "^29.4.1",
"ts-node": "^10.9.2",
"typescript": "^5.9.2"
"@typescript-eslint/eslint-plugin": "^8.56.1",
"@typescript-eslint/parser": "^8.56.1",
"@vercel/ncc": "^0.38.4",
"@vitest/coverage-v8": "^4.0.18",
"@vitest/eslint-plugin": "^1.6.9",
"dotenv": "^17.3.1",
"eslint": "^9.39.3",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.5",
"globals": "^17.3.0",
"prettier": "^3.8.1",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
}
}
+12 -10
View File
@@ -1,9 +1,11 @@
import * as core from '@actions/core';
import {Context as GithubContext} from '@actions/github/lib/context';
import {Util} from '@docker/actions-toolkit/lib/util';
import {Git} from '@docker/actions-toolkit/lib/git';
import {GitHub} from '@docker/actions-toolkit/lib/github';
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit';
import {Util} from '@docker/actions-toolkit/lib/util.js';
import {Git} from '@docker/actions-toolkit/lib/git.js';
import {GitHub} from '@docker/actions-toolkit/lib/github/github.js';
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit.js';
type GithubContext = typeof GitHub.context;
export interface Context extends GithubContext {
commitDate: Date;
@@ -26,11 +28,11 @@ export interface Inputs {
export function getInputs(): Inputs {
return {
context: (core.getInput('context') || ContextSource.workflow) as ContextSource,
images: Util.getInputList('images', {ignoreComma: true, comment: '#'}),
tags: Util.getInputList('tags', {ignoreComma: true, comment: '#'}),
flavor: Util.getInputList('flavor', {ignoreComma: true, comment: '#'}),
labels: Util.getInputList('labels', {ignoreComma: true, comment: '#'}),
annotations: Util.getInputList('annotations', {ignoreComma: true, comment: '#'}),
images: Util.getInputList('images', {ignoreComma: true, comment: '#', commentNoInfix: true}),
tags: Util.getInputList('tags', {ignoreComma: true, comment: '#', commentNoInfix: true}),
flavor: Util.getInputList('flavor', {ignoreComma: true, comment: '#', commentNoInfix: true}),
labels: Util.getInputList('labels', {ignoreComma: true, comment: '#', commentNoInfix: true}),
annotations: Util.getInputList('annotations', {ignoreComma: true, comment: '#', commentNoInfix: true}),
sepTags: core.getInput('sep-tags', {trimWhitespace: false}) || `\n`,
sepLabels: core.getInput('sep-labels', {trimWhitespace: false}) || `\n`,
sepAnnotations: core.getInput('sep-annotations', {trimWhitespace: false}) || `\n`,
+4 -4
View File
@@ -1,11 +1,11 @@
import * as fs from 'fs';
import * as core from '@actions/core';
import * as actionsToolkit from '@docker/actions-toolkit';
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit';
import {Util} from '@docker/actions-toolkit/lib/util';
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit.js';
import {Util} from '@docker/actions-toolkit/lib/util.js';
import {getContext, getInputs, Inputs} from './context';
import {Meta, Version} from './meta';
import {getContext, getInputs, Inputs} from './context.js';
import {Meta, Version} from './meta.js';
actionsToolkit.run(
// main
+7 -7
View File
@@ -5,13 +5,13 @@ import moment from 'moment-timezone';
import * as pep440 from '@renovate/pep440';
import * as semver from 'semver';
import * as core from '@actions/core';
import {Context as ToolkitContext} from '@docker/actions-toolkit/lib/context';
import {GitHubRepo} from '@docker/actions-toolkit/lib/types/github';
import {Context as ToolkitContext} from '@docker/actions-toolkit/lib/context.js';
import {GitHubRepo} from '@docker/actions-toolkit/lib/types/github/github.js';
import {Inputs, Context} from './context';
import * as icl from './image';
import * as tcl from './tag';
import * as fcl from './flavor';
import {Inputs, Context} from './context.js';
import * as icl from './image.js';
import * as tcl from './tag.js';
import * as fcl from './flavor.js';
const defaultShortShaLength = 7;
@@ -376,7 +376,7 @@ export class Meta {
if (hp.body.length == 1 && hp.body[0].type == 'MustacheStatement') {
return hp.body[0]['path']['parts'].length == 1 && hp.body[0]['path']['parts'][0] == 'raw';
}
} catch (err) {
} catch {
return false;
}
return false;
+4 -9
View File
@@ -1,9 +1,8 @@
{
"compilerOptions": {
"module": "nodenext",
"moduleResolution": "nodenext",
"esModuleInterop": true,
"target": "es6",
"module": "commonjs",
"strict": true,
"newLine": "lf",
"outDir": "./lib",
"rootDir": "./src",
@@ -12,11 +11,7 @@
"resolveJsonModule": true,
"useUnknownInCatchVariables": false,
},
"exclude": [
"./__mocks__/**/*",
"./__tests__/**/*",
"./lib/**/*",
"node_modules",
"jest.config.ts"
"include": [
"src/**/*.ts"
]
}
+16
View File
@@ -0,0 +1,16 @@
import {defineConfig} from 'vitest/config';
export default defineConfig({
test: {
clearMocks: true,
environment: 'node',
setupFiles: ['./__tests__/setup.unit.ts'],
include: ['**/*.test.ts'],
coverage: {
provider: 'v8',
reporter: ['clover'],
include: ['src/**/*.ts'],
exclude: ['src/**/main.ts']
}
}
});
+1876 -4407
View File
File diff suppressed because it is too large. Load diff